rel_1_12_0
版本发布时间: 2023-09-01 01:27:27
sqlalchemy/alembic最新发布版本:rel_1_13_2(2024-06-26 23:46:26)
1.12.0
Released: August 31, 2023
feature
-
[feature] [autogenerate] Added new feature to the "code formatter" function which allows standalone executable tools to be run against code, without going through the Python interpreter. Known as the
exec
runner, it complements the existingconsole_scripts
runner by allowing non-Python tools such asruff
to be used. Pull request courtesy Mihail Milushev.References: #1275
usecase
-
[usecase] [autogenerate] Change the default value of
EnvironmentContext.configure.compare_type
toTrue
. As Alembic's autogenerate for types was dramatically improved in version 1.4 released in 2020, the type comparison feature is now much more reliable so is now enabled by default.References: #1248
bug
-
[bug] [operations] Added support for
op.drop_constraint()
to support PostrgreSQLExcludeConstraint
objects, as well as other constraint-like objects that may be present in third party dialects, by resolving thetype_
parameter to beNone
for this case. Autogenerate has also been enhanced to exclude thetype_
parameter from rendering within this command whentype_
isNone
. Pull request courtesy David Hills.References: #1300
-
[bug] [commmands] Fixed issue where the
revision_environment
directive inalembic.ini
was ignored by thealembic merge
command, leading to issues when other configurational elements depend uponenv.py
being invoked within the command.References: #1299
-
[bug] [autogenerate] Fixed issue where the
ForeignKeyConstraint.match
parameter would not be rendered in autogenerated migrations. Pull request courtesy Asib Kamalsada.References: #1302