Permalink
Browse files

Autoload schema before creating FK's (bug 1098174)

The 'service' schema must be loaded before sqlalchemy-migrate can create
ForeignKeys referencing it.

Change-Id: Icd87d40f4c01e4daec0fdb7a6ad93847958236ec
  • Loading branch information...
1 parent 2a851d8 commit 57f1e3011c05b5a853b506bb1dae4fbf75df517a @dolph dolph committed Jan 14, 2013
View
1 keystone/common/sql/migrate_repo/versions/010_endpoints_v3.py
@@ -25,6 +25,7 @@ def upgrade(migrate_engine):
legacy_table = sql.Table('endpoint', meta, autoload=True)
legacy_table.rename('endpoint_v2')
+ sql.Table('service', meta, autoload=True)
new_table = sql.Table(
'endpoint_v3',
meta,
View
1 keystone/common/sql/migrate_repo/versions/012_drop_legacy_endpoints.py
@@ -37,6 +37,7 @@ def downgrade(migrate_engine):
new_table = sql.Table('endpoint', meta, autoload=True)
new_table.rename('endpoint_v3')
+ sql.Table('service', meta, autoload=True)
legacy_table = sql.Table(
'endpoint_v2',
meta,

0 comments on commit 57f1e30

Please sign in to comment.