]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
MYSQL: added support for drop check/constraint
authorHannes Hansen <hannes.jakob.hansen@cern.ch>
Thu, 23 May 2019 20:27:21 +0000 (16:27 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 May 2019 20:57:37 +0000 (16:57 -0400)
commitc55023641d390b2b09601b10dbc5663e4bd5a466
tree72b58c77440b9247691e298c39f3c97d9b3de480
parent90882ed43cce26c069b6696b441b6ad8a7372301
MYSQL: added support for drop check/constraint

Added support for DROP CHECK constraint which is required by MySQL 8.0.16
to drop a CHECK constraint; MariaDB supports plain DROP CONSTRAINT.  The
logic distinguishes between the two syntaxes by checking the server version
string for MariaDB presence.    Alembic migrations has already worked
around this issue by implementing its own DROP for MySQL / MariaDB CHECK
constraints, however this change implements it straight in Core so that its
available for general use.   Pull request courtesy Hannes Hansen.

Fixes: #4650
Closes: #4659
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4659
Pull-request-sha: 5b654a55e23c2ca498ca3b1cae4f53859e93e8f7

Change-Id: I967710f890722f11cf1f40406adbb17464d16194
doc/build/changelog/unreleased_13/4650.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_compiler.py