]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Drop and recreate FK if adding new PK to routerl3bindings
authorJakub Libosvar <libosvar@redhat.com>
Fri, 31 Oct 2014 14:49:40 +0000 (15:49 +0100)
committerJakub Libosvar <libosvar@redhat.com>
Mon, 24 Nov 2014 09:37:22 +0000 (09:37 +0000)
commit467a4496cfcd74b473730d2baa667fd633e4d0b3
tree1e45f9daa6f7fb23e28b06d0275ee841427bfba9
parent8ea580e39d51ecdf796b473e6220bd3d76654511
Drop and recreate FK if adding new PK to routerl3bindings

Since MySQL 5.6 FK columns cannot be altered. As a workaround we can
drop the FK before ALTER COLUMN and then recreate it.

Change-Id: Icd1b3075cf29a6b0c477a4ddea2e6ebee91baef8
Closes-Bug: 1384555
(cherry picked from commit b5f1cc48b877caaebc944154d56a8bb4060aa9b0)
neutron/db/migration/__init__.py
neutron/db/migration/alembic_migrations/versions/31d7f831a591_add_constraint_for_routerid.py