]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Bugfix missing foreign key removal for mysql
authorAlan Meadows <alan.meadows@gmail.com>
Thu, 26 Dec 2013 19:12:37 +0000 (11:12 -0800)
committerAlan Meadows <alan.meadows@gmail.com>
Thu, 26 Dec 2013 19:29:39 +0000 (11:29 -0800)
commit8328fc46d783f4ec9286eededafa91afae89cba0
treee11a4d221af06abc7d15331ca9e4fc21090f1d1c
parentf10e1db7a58d4243d1566377b59e09897439fe49
Bugfix missing foreign key removal for mysql

Downgrading the cinder schema fails when running 018_add_qos_specs.py
under MySQL. The upgrade path of this schema patch adds the foreign
key volume_types_ibfk_1 on table volume_types, and the downgrade does
not correspondingly remove it before attempting to drop the
qos_specs_id column.  This update removes the foreign key when
the engine is mysql prior to dropping the column.

Change-Id: Ibd3b35ad3b0bd41ad04ab7aeeb28c3ba7e5d255d
Closes-Bug: #1264360
cinder/db/sqlalchemy/migrate_repo/versions/018_add_qos_specs.py