Replace DbMigrationError with DBMigrationError

because DbMigrationError is deprecated

Change-Id: I75ef338d2e22924997804632d26ae3588c4f719b
This commit is contained in:
Yaguo Zhou
2017-09-05 22:42:34 +08:00
parent a9f33467fb
commit 51dba60e01

View File

@@ -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"))