Skip to content

1.12.0

Compare
Choose a tag to compare
@sqla-tester sqla-tester released this 31 Aug 17:27
· 77 commits to main since this release

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 existing
    console_scripts runner by allowing non-Python tools such as ruff to
    be used. Pull request courtesy Mihail Milushev.

    References: #1275

usecase

  • [usecase] [autogenerate] Change the default value of
    EnvironmentContext.configure.compare_type to True.
    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 PostrgreSQL
    ExcludeConstraint objects, as well as other constraint-like objects
    that may be present in third party dialects, by resolving the type_
    parameter to be None for this case. Autogenerate has also been
    enhanced to exclude the type_ parameter from rendering within this
    command when type_ is None. Pull request courtesy David Hills.

    References: #1300

  • [bug] [commmands] Fixed issue where the revision_environment directive in alembic.ini
    was ignored by the alembic merge command, leading to issues when other
    configurational elements depend upon env.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