rel_1_7_7
版本发布时间: 2022-03-15 03:41:08
sqlalchemy/alembic最新发布版本:rel_1_13_2(2024-06-26 23:46:26)
1.7.7
Released: March 14, 2022
bug
-
[bug] [operations] Fixed issue where using
Operations.create_table()
in conjunction with aCheckConstraint
that referred to table-boundColumn
objects rather than string expressions would be added to the parent table potentially multiple times, resulting in an incorrect DDL sequence. Pull request courtesy Nicolas CANIART.References: #1004
-
[bug] [environment] The
logging.fileConfig()
line inenv.py
templates, which is used to setup Python logging for the migration run, is now conditional onConfig.config_file_name
not beingNone
. Otherwise, the line is skipped as there is no default logging configuration present.References: #986
-
[bug] [mssql] Fixed bug where an
Operations.alter_column()
operation would change a "NOT NULL" column to "NULL" by emitting an ALTER COLUMN statement that did not specify "NOT NULL". (In the absence of "NOT NULL" T-SQL was implicitly assuming "NULL"). AnOperations.alter_column()
operation that specifiesOperations.alter_column.type
should also specify include eitherOperations.alter_column.nullable
orOperations.alter_column.existing_nullable
to inform Alembic as to whether the emitted DDL should include "NULL" or "NOT NULL"; a warning is now emitted if this is missing under this scenario.References: #977