rel_1_8_1
版本发布时间: 2022-07-13 22:18:59
sqlalchemy/alembic最新发布版本:rel_1_13_2(2024-06-26 23:46:26)
1.8.1
Released: July 13, 2022
bug
-
[bug] [sqlite] Fixed bug where the SQLite implementation of
Operations.rename_table()
would render an explicit schema name for both the old and new table name, which while is the standard ALTER syntax, is not accepted by SQLite's syntax which doesn't support a rename across schemas. In particular, the syntax issue would prevent batch mode from working for SQLite databases that made use of attached databases (which are treated as "schemas" in SQLAlchemy).References: #1065
-
[bug] [batch] Added an error raise for the condition where
Operations.batch_alter_table()
is used in--sql
mode, where the operation requires table reflection, as is the case when running against SQLite without giving it a fixedTable
object. Previously the operation would fail with an internal error. To get a "move and copy" batch operation as a SQL script without connecting to a database, aTable
object should be passed to theOperations.batch_alter_table.copy_from
parameter so that reflection may be skipped.References: #1021