Change cloud table creation order

This commit is contained in:
James Taylor
2009-11-18 10:43:08 -05:00
parent 1820348d81
commit d10f6f40be
@@ -132,21 +132,25 @@ def upgrade():
# Load existing tables
metadata.reflect()
CloudProvider_table.create()
CloudUserCredentials_table.create()
CloudImage_table.create()
UCI_table.create()
CloudUserCredentials_table.create()
CloudStore_table.create()
CloudSnapshot_table.create()
CloudInstance_table.create()
CloudProvider_table.create()
def downgrade():
metadata.reflect()
CloudImage_table.drop()
CloudInstance_table.drop()
CloudStore_table.drop()
CloudSnapshot_table.drop()
CloudUserCredentials_table.drop()
CloudStore_table.drop()
UCI_table.drop()
CloudProvider_table.drop()
CloudImage_table.drop()
CloudUserCredentials_table.drop()
CloudProvider_table.drop()