From 5700b385aac8fbb2c56704c048be847d6a4832fa Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 20 Sep 2014 13:37:28 -0400 Subject: [PATCH] - check SQLA version for drop w/ enums in PG --- alembic/testing/plugin/plugin_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/testing/plugin/plugin_base.py b/alembic/testing/plugin/plugin_base.py index c4c600d5..d73c50f6 100644 --- a/alembic/testing/plugin/plugin_base.py +++ b/alembic/testing/plugin/plugin_base.py @@ -360,7 +360,7 @@ def _prep_testing_database(options, file_config): schema="test_schema") )) - if against(cfg, "postgresql"): + if against(cfg, "postgresql") and util.sqla_100: from sqlalchemy.dialects import postgresql for enum in inspector.get_enums("*"): e.execute(postgresql.DropEnumType( -- 2.47.2