]> 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>
Wed, 5 Nov 2014 14:10:04 +0000 (15:10 +0100)
commitb5f1cc48b877caaebc944154d56a8bb4060aa9b0
treed1513b39c8961a7b5e495062c72144db613e14d9
parent0fb5b6821bbe7a1a2dd4640c7d7b62cb44f04e26
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
neutron/db/migration/__init__.py
neutron/db/migration/alembic_migrations/versions/31d7f831a591_add_constraint_for_routerid.py