]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Add ability to configure alembic_version table in DialectImpl
authorMaciek Bryński <maciek@brynski.pl>
Thu, 31 Oct 2024 21:29:40 +0000 (17:29 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 Nov 2024 18:02:35 +0000 (13:02 -0500)
commitffccbc7f2db1b472c01c3db293d41598d5b29f78
treef5579443b5c7dca96aeabb57b513fbfb7f86abed
parent431fd0783e2e414cac5b0d0f002d7adc71df3f02
Add ability to configure alembic_version table in DialectImpl

Added a new hook to the :class:`.DefaultImpl`
:meth:`.DefaultImpl.version_table_impl`.  This allows third party dialects
to define the exact structure of the alembic_version table, to include use
cases where the table requires special directives and/or additional columns
so that it may function correctly on a particular backend.  This is not
intended as a user-expansion hook, only a dialect implementation hook to
produce a working alembic_version table. Pull request courtesy Maciek
Bryński.

This will be 1.14 so this also version bumps

Fixes: #1560
Closes: #1563
Pull-request: https://github.com/sqlalchemy/alembic/pull/1563
Pull-request-sha: e70fdc8f4e405cabf5099c2100763d7b24da3be8

Change-Id: I5e565dff60a979526608d2a1c0c620fbca269a3f
alembic/ddl/impl.py
alembic/runtime/migration.py
docs/build/changelog.rst
docs/build/unreleased/1560.rst [new file with mode: 0644]
tests/test_version_table.py