]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add unique constraints in IPAvailabilityRange
authorrossella <rsblendido@suse.com>
Tue, 23 Sep 2014 16:09:09 +0000 (16:09 +0000)
committerrossella <rsblendido@suse.com>
Mon, 13 Oct 2014 19:41:37 +0000 (21:41 +0200)
commit65b57625c24d86ce632d475e2ba743069ae1d797
tree193ef34ea0dc9ed70a5c749a3c6b05a1d32d77cd
parent98f608d225818a26815fdd242d30e67b944f18fe
Add unique constraints in IPAvailabilityRange

first_ip, allocation_pool_id and last_ip, allocation_pool_id
should be unique in the table.
These constraints are essential to detect concurrent modifications
of the IpAvailabilityRange table if the SELECT ... FOR UPDATE
lock is removed

Change-Id: Iaf2288c0b6bf27e93c03691073d7f505ef24fdd3
Closes-bug: #1373015
neutron/db/migration/alembic_migrations/versions/44621190bc02_add_uniqueconstraint_ipavailability_ranges.py [new file with mode: 0644]
neutron/db/migration/alembic_migrations/versions/HEAD
neutron/db/models_v2.py