summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-alembic_1.11.3.bb
Commit message (Collapse)AuthorAgeFilesLines
* python3-alembic: upgrade 1.11.3 -> 1.12.0Wang Mingyu2023-09-071-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog: =========== [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. [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. [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. [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. [bug] [autogenerate] Fixed issue where the ForeignKeyConstraint.match parameter would not be rendered in autogenerated migrations. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* python3-alembic: upgrade 1.11.2 -> 1.11.3Wang Mingyu2023-08-261-0/+19
Changelog: ========== -Improved autogenerate compare of expression based indexes on PostgreSQL to produce fewer wrong detections. -Fixed issue with NULLS NOT DISTINCT detection in postgresql that would keep detecting changes in the index or unique constraint. -Added encoding="locale" setting to the use of Python's ConfigParser.read(), so that a warning is not generated when using the recently added Python feature PYTHONWARNDEFAULTENCODING specified in PEP 597. The encoding is passed as the "locale" string under Python 3.10 and greater, which indicates that the system-level locale should be used, as was the case already here. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>