]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
- check SQLA version for drop w/ enums in PG
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Sep 2014 17:37:28 +0000 (13:37 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Sep 2014 17:37:28 +0000 (13:37 -0400)
alembic/testing/plugin/plugin_base.py

index c4c600d581a737a8848142994ec583b7fc5f3d92..d73c50f644dcb6a85f6f95e706c51b3d33c13e30 100644 (file)
@@ -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(