db: Move main DB migrations
We place these in a 'legacy_migrations' directory, as we will soon be adding alembic-based migrations in a 'migration' directory. Change-Id: Ib927e4c48f59a467a913875111ffbf64ffe0de90 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
@@ -126,7 +126,7 @@ def _get_db_driver_class(db_url):
|
||||
# Migrate
|
||||
|
||||
|
||||
MIGRATE_REPO = os.path.join(os.getcwd(), "nova/db/sqlalchemy/migrate_repo")
|
||||
MIGRATE_REPO = os.path.join(os.getcwd(), "nova/db/main/legacy_migrations")
|
||||
|
||||
|
||||
def _migrate(db_url, migration_version):
|
||||
|
||||
@@ -5,7 +5,7 @@ import glob
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
BASE = 'nova/db/sqlalchemy/migrate_repo/versions'.split('/')
|
||||
BASE = 'nova/db/main/legacy_migrations/versions'.split('/')
|
||||
API_BASE = 'nova/db/sqlalchemy/api_migrations/migrate_repo/versions'.split('/')
|
||||
|
||||
STUB = \
|
||||
|
||||
Reference in New Issue
Block a user