From 51dba60e0112fadbf74dafd009a543e3fdf72c09 Mon Sep 17 00:00:00 2001 From: Yaguo Zhou Date: Tue, 5 Sep 2017 22:42:34 +0800 Subject: [PATCH] Replace DbMigrationError with DBMigrationError because DbMigrationError is deprecated Change-Id: I75ef338d2e22924997804632d26ae3588c4f719b --- watcher/db/sqlalchemy/migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher/db/sqlalchemy/migration.py b/watcher/db/sqlalchemy/migration.py index b342945fe..415214664 100644 --- a/watcher/db/sqlalchemy/migration.py +++ b/watcher/db/sqlalchemy/migration.py @@ -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"))