Ensure migrate script pass on newer MySQL
MySQL 5.7 do not allow PK values defaults to NULL which fails the migration step and the following message is prompted. 'All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead' Also refer to #1567899 for more detail. Change-Id: Ia16405cd593a0a67e7c7ae68a3977b74cc673d0b
This commit is contained in:
parent
6b70244374
commit
8a31b31035
@ -40,4 +40,5 @@ def upgrade():
|
|||||||
'tz_network_bindings',
|
'tz_network_bindings',
|
||||||
'binding_type',
|
'binding_type',
|
||||||
type_=new_tz_binding_type_enum,
|
type_=new_tz_binding_type_enum,
|
||||||
existing_type=old_tz_binding_type_enum)
|
existing_type=old_tz_binding_type_enum,
|
||||||
|
existing_nullable=False)
|
||||||
|
@ -40,4 +40,5 @@ def upgrade():
|
|||||||
'nsxv_tz_network_bindings',
|
'nsxv_tz_network_bindings',
|
||||||
'binding_type',
|
'binding_type',
|
||||||
type_=new_tz_binding_type_enum,
|
type_=new_tz_binding_type_enum,
|
||||||
existing_type=tz_binding_type_enum)
|
existing_type=tz_binding_type_enum,
|
||||||
|
existing_nullable=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user