1.8.0
1.8.0
Released: May 31, 2022
changed
-
[changed] [installation] Alembic 1.8 now supports Python 3.7 and above.
References: #1025
-
[changed] [environment] The "Pylons" environment template has been removed as of Alembic 1.8. This
template was based on the very old pre-Pyramid Pylons web framework which
has been long superseded by Pyramid.References: #987
feature
-
[feature] [typing] PEP 484 typing annotations have been added to the
env.py
and
revision template files within migration templates. Pull request by Nikita
Sobolev.References: #764
usecase
-
[usecase] [operations] The
op.drop_table()
operation directive will now trigger the
before_drop()
andafter_drop()
DDL event hooks at the table level,
which is similar to how thebefore_create()
andafter_create()
hooks are triggered by theop.create_table()
directive. Note that as
op.drop_table()
accepts only a table name and optional schema name, the
Table
object received by the event will not have any information within
it other than the table name and schema name.References: #1037
-
[usecase] [commands] Added new token
epoch
to thefile_template
option, which will
populate the integer epoch as determined byint(create_date.timestamp())
.
Pull request courtesy Caio Carvalho.References: #1027
bug
-
[bug] [revisioning] Fixed issue where a downgrade using a relative revision would
fail in case of multiple branches with a single effectively
head due to interdependencies between revisions.References: #1026
-
[bug] [batch] Fixed issue in batch mode where CREATE INDEX would not use a new column
name in the case of a column rename.References: #1034