Replace DbMigrationError with DBMigrationError

because DbMigrationError is deprecated

Change-Id: I56e6cbbcb2f239dc6c1346e0bc4c3beb21349ab8
This commit is contained in:
Yaguo Zhou 2017-09-05 22:59:48 +08:00
parent b26e22499c
commit 2646bcc5e5
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ def create_schema(config=None, engine=None):
# schema, it will only add the new tables, but leave
# existing as is. So we should avoid of this situation.
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)