]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Run NOT NULL alterations before foreign key adds
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Dec 2015 19:21:13 +0000 (14:21 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Dec 2015 19:24:42 +0000 (14:24 -0500)
commit0f58db9d645383db48e402f69d733b2013a6748e
tree28de2048999c6641e951d6c7f0af739914c73d4c
parent1f8e58f5385a5b4077a8c4cb160e01bb317b0cb0
Run NOT NULL alterations before foreign key adds

The "migrate resources table" migration will fail
for some MariaDB versions if the NOT NULL alteration
is applied after the foreign key constraint has been
added [1].   This patch reverses the order so that
NOT NULL is applied first.

[1] http://paste.openstack.org/show/480820/

Change-Id: Iab2b9fc7d82c739ae458ee48c1830541fb0f9579
neutron/db/migration/alembic_migrations/versions/mitaka/contract/8a6d8bdae39_migrate_neutron_resources_table.py