From 2b4053519f001ddd4f194fb74abaac0daf466aa9 Mon Sep 17 00:00:00 2001 From: Yaguo Zhou Date: Tue, 5 Sep 2017 22:54:15 +0800 Subject: [PATCH] Replace DbMigrationError with DBMigrationError because DbMigrationError is deprecated Change-Id: I69e208297a764b53fcf0496964ebae9112eeb905 --- cyborg/db/sqlalchemy/migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyborg/db/sqlalchemy/migration.py b/cyborg/db/sqlalchemy/migration.py index 2c8aa359..d805f77f 100644 --- a/cyborg/db/sqlalchemy/migration.py +++ b/cyborg/db/sqlalchemy/migration.py @@ -63,7 +63,7 @@ def create_schema(config=None, engine=None): engine = enginefacade.get_legacy_facade().get_engine() 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)