From 14b6b24c3e3950a6255333b3a01f47a819040ea0 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 14 Aug 2020 19:28:19 -0400 Subject: [PATCH] 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 --- alembic/ddl/mysql.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.47.2