From de2117d3d3df78e47b42173d808f506b08287b4a Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Thu, 24 Oct 2013 10:36:58 -0400 Subject: [PATCH] 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 --- nova/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/test.py b/nova/test.py index f32ca621f..98feeafae 100644 --- a/nova/test.py +++ b/nova/test.py @@ -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)