Hi all, I'm updating an app from SA 1.3 to 1.4 and getting a SADeprecationWarning:
The Column.copy() method is deprecated and will be removed in a future release. (deprecated since: 1.4) The code triggering the warning is based on the versioned_history example: https://docs.sqlalchemy.org/en/14/_modules/examples/versioned_history/history_meta.html ...and here's the offending function: def _col_copy(col): orig = col col = col.copy() orig.info["history_copy"] = col col.unique = False col.default = col.server_default = None col.autoincrement = False return col For the moment I've switched to calling the private _copy() method instead, but is there any recommendation of a better approach? (I did see the issue at https://github.com/sqlalchemy/sqlalchemy/issues/5953 and understand why the copy() method was deprecated) Thanks a lot, Simon -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/CAFHwexdUVb11FTq%3DzxuzNsp-FszVHrJ8KT-yDjhyNkWqhKoJnQ%40mail.gmail.com.