diff --git a/iotronic/db/sqlalchemy/migration.py b/iotronic/db/sqlalchemy/migration.py index a2a39f3..49a8443 100644 --- a/iotronic/db/sqlalchemy/migration.py +++ b/iotronic/db/sqlalchemy/migration.py @@ -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)