]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix downgrade in 002_quota_class.py for MySQL
authorJay S. Bryant <jsbryant@us.ibm.com>
Mon, 6 Jan 2014 18:44:26 +0000 (12:44 -0600)
committerJay S. Bryant <jsbryant@us.ibm.com>
Mon, 6 Jan 2014 19:46:15 +0000 (13:46 -0600)
commit1babca0b8ffc86918729f2d4ad604c32f0b8deeb
tree773ed13de1fdcddc3882881ef61b6de9ade83bfe
parent24d7e244133ddb46fc3de79b8222424db21672d1
Fix downgrade in 002_quota_class.py for MySQL

Downgrade in the script 002_quota_class.py is failing for MySQL
because there is an attempt to delete the quota_classes table
while the reservations table still has a foreign key defined.
The foreign key causes the delete of the quota_classes table to fail.

This change is based upon commit 8328fc46d783f4ec9286eededafa91afae89cba0
which makes a similar change to 018_add_qos_specs.py .

Change-Id: I81844a2da4fb3b831f1f9dead3634e82f54e559e
Closes-bug: 1265944
cinder/db/sqlalchemy/migrate_repo/versions/002_quota_class.py