Replace DbMigrationError with DBMigrationError

because DbMigrationError is deprecated

Change-Id: I69e208297a764b53fcf0496964ebae9112eeb905
This commit is contained in:
Yaguo Zhou 2017-09-05 22:54:15 +08:00
parent 4f5c85e654
commit 2b4053519f

View File

@ -63,7 +63,7 @@ def create_schema(config=None, engine=None):
engine = enginefacade.get_legacy_facade().get_engine()
if version(engine=engine) is not None:
raise db_exc.DbMigrationError("DB schema is already under version"
raise db_exc.DBMigrationError("DB schema is already under version"
" control. Use upgrade() instead")
models.Base.metadata.create_all(engine)