cinder/cinder/db/sqlalchemy
Xing Yang 71e7840795 DB migration 25->24 failed when dropping column
"cinder-manage db sync 24" failed when dropping column cgsnapshot_id
from the snapshots table.

The reason that drop column failed was because of the foreign key
constraint. MySQL cannot drop column until the foreign key constraint
is removed. So the solution is to remove the foreign key first, and
then drop the column. This affects the cgsnapshot_id column in the
snapshots table and the consistencygroup_id column in the volumes table.

Change-Id: I89d5016be450ec91c7a7b1c42803add3f62c88df
Closes-Bug: #1368213
2014-09-20 18:37:52 -04:00
..
migrate_repo DB migration 25->24 failed when dropping column 2014-09-20 18:37:52 -04:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
api.py Support Volume Backup Quota 2014-09-02 18:09:04 +08:00
migration.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
models.py Consistency Groups 2014-08-27 01:47:31 -04:00