Replace DbMigrationError with DBMigrationError
because DbMigrationError is deprecated Change-Id: I50fd81be7a1aecd4bc9c76a4368f41c55ccccd00
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user