From: Mike Bayer Date: Sat, 20 Sep 2014 17:37:28 +0000 (-0400) Subject: - check SQLA version for drop w/ enums in PG X-Git-Tag: rel_0_7_0~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5700b385aac8fbb2c56704c048be847d6a4832fa;p=thirdparty%2Fsqlalchemy%2Falembic.git - check SQLA version for drop w/ enums in PG --- 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(