From: Mike Bayer Date: Fri, 14 Aug 2020 23:28:19 +0000 (-0400) Subject: add MariaDB placeholder impl X-Git-Tag: rel_1_4_3~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14b6b24c3e3950a6255333b3a01f47a819040ea0;p=thirdparty%2Fsqlalchemy%2Falembic.git add MariaDB placeholder impl in 599f27dcce62abac1f90a44f9c9a85e7dca885de we updated the checks for "mariadb" to match SQLAlchemy 1.4. Another change if merged will add a new dialect name "mariadb" that's basically the mysql dialect with a different name; forwards-support that as well. Change-Id: I6ba1c13304fa8d6f45dd6453f4c71d04021163ae --- diff --git a/alembic/ddl/mysql.py b/alembic/ddl/mysql.py index 02ce2536..32f04d61 100644 --- a/alembic/ddl/mysql.py +++ b/alembic/ddl/mysql.py @@ -244,6 +244,10 @@ class MySQLImpl(DefaultImpl): cnfk.onupdate = "RESTRICT" +class MariaDBImpl(MySQLImpl): + __dialect__ = "mariadb" + + class MySQLAlterDefault(AlterColumn): def __init__(self, name, column_name, default, schema=None): super(AlterColumn, self).__init__(name, schema=schema)