]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix routerid constraint migration
authorMaru Newby <marun@redhat.com>
Fri, 10 Apr 2015 16:01:52 +0000 (16:01 +0000)
committerMaru Newby <marun@redhat.com>
Fri, 10 Apr 2015 16:01:52 +0000 (16:01 +0000)
commit2749fd41f066dd51116c2a18198f79aa3c640156
tree4ff56c4c12fa67e67218e5d53b92869062ace8fa
parent9c0f00a0a7b7b8b794b4858eb7f635fe2eba560c
Fix routerid constraint migration

The migration to add a fk constraint to the routerl3agentbindings
table could fail if orphaned records existed.  This change ensures
that binding records are properly sanitized before constraint
addition is attempted.

Change-Id: Iace190916c9c0b9be75ddd43c4ca86480f8e017f
Closes-Bug: #1442683
neutron/db/migration/alembic_migrations/versions/31d7f831a591_add_constraint_for_routerid.py