Replace DbMigrationError with DBMigrationError
because DbMigrationError is deprecated Change-Id: I69e208297a764b53fcf0496964ebae9112eeb905
This commit is contained in:
parent
4f5c85e654
commit
2b4053519f
@ -63,7 +63,7 @@ def create_schema(config=None, engine=None):
|
|||||||
engine = enginefacade.get_legacy_facade().get_engine()
|
engine = enginefacade.get_legacy_facade().get_engine()
|
||||||
|
|
||||||
if version(engine=engine) is not None:
|
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")
|
" control. Use upgrade() instead")
|
||||||
|
|
||||||
models.Base.metadata.create_all(engine)
|
models.Base.metadata.create_all(engine)
|
||||||
|
Loading…
Reference in New Issue
Block a user