Add nova.db.migration.db_initial_version()
Updates Nova to use a new function called db_initial_version() instead of the INIT_VERSION constant. This allows us to move the top level INIT_VERSION = 132 into the sqlalchemy migration.py implementation where it belongs. Also, includes changes to do the same for the Nova baremetal migrations. Change-Id: I10dacdebb50d3121e3bfd094e40138807233aa64
This commit is contained in:
@@ -85,7 +85,7 @@ class Database(fixtures.Fixture):
|
||||
self.engine.dispose()
|
||||
conn = self.engine.connect()
|
||||
if sql_connection == "sqlite://":
|
||||
if db_migrate.db_version() > db_migrate.INIT_VERSION:
|
||||
if db_migrate.db_version() > db_migrate.db_initial_version():
|
||||
return
|
||||
else:
|
||||
testdb = paths.state_path_rel(sqlite_db)
|
||||
|
||||
Reference in New Issue
Block a user