]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Set nullable=False on tenant_id in apic_contracts table
authorHenry Gessau <gessau@cisco.com>
Mon, 21 Jul 2014 14:35:41 +0000 (10:35 -0400)
committerHenry Gessau <gessau@cisco.com>
Mon, 21 Jul 2014 19:53:21 +0000 (15:53 -0400)
commit6762acab9ca70bad843cdee542d816ad8e3cb908
tree01e19a9c9ce9877d44d81f66000b9726853a0c68
parent7dc6246cb88fd14476548948782eac2306a413b2
Set nullable=False on tenant_id in apic_contracts table

The cisco_ml2_apic_contracts table has a tenant_id field that is not nullable
since it is the primary key. The HasTenant mixin does not allow setting
nullable=False, so use sa.Column() explicitly for this.

Change-Id: If8e96e76fad0bfcf2bfd71b0223624f1da4517c9
Closes-bug: #1342756
neutron/plugins/ml2/drivers/cisco/apic/apic_model.py