Replace DbMigrationError with DBMigrationError
because DbMigrationError is deprecated Change-Id: I75ef338d2e22924997804632d26ae3588c4f719b
This commit is contained in:
@@ -69,7 +69,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(
|
||||
raise db_exc.DBMigrationError(
|
||||
_("Watcher database schema is already under version control; "
|
||||
"use upgrade() instead"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user