Permalink
Browse files

reorder tables for delete

Reordered the tables in the domain downgrade script to avoid breaking i
the integrity constraints.   This only shows up when run against a
live database, as sqlite does not enforce them.

Change-Id: I00b687fb78d00c6240c8afb0efc26a9730ce4436
  • Loading branch information...
1 parent ceec5c0 commit 9089d8e866223608b8556b9bcd483035dcad96e1 Adam Young committed Jan 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 keystone/common/sql/migrate_repo/versions/007_add_domain_tables.py
@@ -77,7 +77,7 @@ def downgrade(migrate_engine):
role = sql.Table('role', meta, autoload=True)
role.drop_column('extra')
- tables = ['domain', 'user_domain_metadata', 'credential']
+ tables = ['user_domain_metadata', 'credential', 'domain']
for t in tables:
table = sql.Table(t, meta, autoload=True)
table.drop(migrate_engine, checkfirst=True)

0 comments on commit 9089d8e

Please sign in to comment.