]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix usage drop_constraint in 2a1ee2fb59e0 migration
authorAnn Kamyshnikova <akamyshnikova@mirantis.com>
Fri, 13 Feb 2015 12:52:49 +0000 (15:52 +0300)
committerAnn Kamyshnikova <akamyshnikova@mirantis.com>
Fri, 13 Feb 2015 12:56:39 +0000 (15:56 +0300)
commit77c073b743a257781b068552ca2af175c4c2cd30
tree4ae5dc6717f7246c5b6a25fd7a92ccd4fd66d5d8
parent4f5917e9e9e0d67ed314485baf9101eebf602f88
Fix usage drop_constraint in 2a1ee2fb59e0 migration

Downgrade for migration 2a1ee2fb59e0_add_mac_address_unique_constraint
fails as it gets wrong parameters name, source and local_cols,
although it expects name, source and type_.

Also as MySQL creates index for unique constraint it should be used
"with migration.remove_fks_from_table".

Closes-bug: #1421631

Change-Id: Id86b2f339a6fb33fc4fd637ffbfc2cb6e75ef4fb
neutron/db/migration/alembic_migrations/versions/2a1ee2fb59e0_add_mac_address_unique_constraint.py