]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Support DROP CONSTRAINT IF EXISTS
authorAaron Griffin <aaron@growtherapy.com>
Wed, 30 Apr 2025 12:42:49 +0000 (08:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 May 2025 17:11:00 +0000 (13:11 -0400)
commit132a2325afc6329ab55b2f20a3b5b47b9394c816
tree4cc1d4ef0a02c35929338578c405e74e36ec4e6f
parent41198bb1a84960e908d10c61f1a96bf594a33c23
Support DROP CONSTRAINT IF EXISTS

Added :paramref:`.op.drop_constraint.if_exists` parameter to
:func:`.op.drop_constraint` which will render "DROP CONSTRAINT IF EXISTS".
Pull request courtesy Aaron Griffin.

Also attempting to fix unrelated issue w/ test_stubs and python
versions which may be in a separate patch if it can't work here

Fixes: #1650
Closes: #1651
Pull-request: https://github.com/sqlalchemy/alembic/pull/1651
Pull-request-sha: 1c3c0d388d36fa60b9aaa013873a415488ed7796

Change-Id: I96378d45dd00898975f450299e6f1344bb65ccff
alembic/ddl/impl.py
alembic/ddl/mysql.py
alembic/ddl/sqlite.py
alembic/op.pyi
alembic/operations/base.py
alembic/operations/ops.py
alembic/operations/toimpl.py
alembic/util/compat.py
docs/build/unreleased/1650.rst [new file with mode: 0644]
tests/requirements.py
tests/test_op.py