]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
run drop default constraint ahead of type main
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Nov 2025 14:19:57 +0000 (09:19 -0500)
committerMichael Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Nov 2025 15:24:32 +0000 (15:24 +0000)
commitdcba64415a3ef898078f04890712add7a8d18789
treedc5c4f84c997129a580388e7ed7bbc1d5f66cfc6
parent3edfb0f70e0d4f46905ac9db4f6067dc7e12402e
run drop default constraint ahead of type

Fixed issue in SQL Server dialect where the DROP that's automatically
emitted for existing default constraints during an ALTER COLUMN needs to
take place before not just the modification of the column's default, but
also before the column's type is changed.

also vendor sqlalchemy's metadata fixture which otherwise does not
integrate with alembic's version of the connection fixture

Fixes: #1744
Change-Id: Ia756da024297354449f53e9f3254820dec542bef
alembic/ddl/mssql.py
alembic/testing/fixtures.py
docs/build/unreleased/1744.rst [new file with mode: 0644]
tests/test_mssql.py