summaryrefslogtreecommitdiff
path: root/oslo_db/sqlalchemy/provision.py
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2016-03-14 21:50:22 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2016-03-14 22:59:31 +0800
commit09c531b389eb27410ed4758ff9a38c2529453fa1 (patch)
tree0b86bb77bde1bc9f812e57544506705c1265ea16 /oslo_db/sqlalchemy/provision.py
parent045a6fb9fb9441daf806c9b58049f28d184d6aa0 (diff)
downloadoslo-db-09c531b389eb27410ed4758ff9a38c2529453fa1.tar.gz
Remove sqlalchemy < 1.0.0 compatible layer
We bump sqlalchemy >=1.0.10, so don't need compatible layer in master branch now. Change-Id: Ib3974669893d2f7b059eab38468f127ee2c790af
Diffstat (limited to 'oslo_db/sqlalchemy/provision.py')
-rw-r--r--oslo_db/sqlalchemy/provision.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/oslo_db/sqlalchemy/provision.py b/oslo_db/sqlalchemy/provision.py
index 410d04f..ff6ebc0 100644
--- a/oslo_db/sqlalchemy/provision.py
+++ b/oslo_db/sqlalchemy/provision.py
@@ -31,7 +31,6 @@ import testresources
from oslo_db._i18n import _LI
from oslo_db import exception
-from oslo_db.sqlalchemy.compat import utils as compat_utils
from oslo_db.sqlalchemy import session
from oslo_db.sqlalchemy import utils
@@ -530,7 +529,7 @@ class PostgresqlBackendImpl(BackendImpl):
conn.execute("DROP DATABASE %s" % ident)
def drop_additional_objects(self, conn):
- enums = compat_utils.get_postgresql_enums(conn)
+ enums = [e['name'] for e in sqlalchemy.inspect(conn).get_enums()]
for e in enums:
conn.execute("DROP TYPE %s" % e)