]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Replace nullable from primary keys in tz_network_bindings with default
authorJakub Libosvar <libosvar@redhat.com>
Tue, 22 Jul 2014 13:22:24 +0000 (15:22 +0200)
committerJakub Libosvar <libosvar@redhat.com>
Wed, 30 Jul 2014 12:39:58 +0000 (14:39 +0200)
commite416a5420f45391c180f84098f4d2c02ecf857b9
tree7efc3b339f4b482a5121f80d84840366cbce2880
parent984132d848bc58f4a265557788ed77109085af19
Replace nullable from primary keys in tz_network_bindings with default

Columns vlan_id and phy_uuid were both nullable and primary keys.
Primary keys cannot be nulls. This situation caused problems in
autogenerating scripts creating always migration that set these columns
to nullable.

Instead of having primary keys nullable this patch creates a default
values.

Change-Id: I04642f6d6ad232997a593bff8ca44f9a7a803ffd
Closes-bug: #1346900
neutron/plugins/vmware/dbexts/models.py