def upgrade(): # add the new network types to the enum neutron_op.alter_enum_add_value('tz_network_bindings', 'binding_type', all_tz_binding_type_enum, False) # change existing entries with type 'vxlan' to 'geneve' op.execute("UPDATE tz_network_bindings SET binding_type='geneve' " "where binding_type='vxlan'") # remove 'vxlan' from the enum op.alter_column('tz_network_bindings', 'binding_type', type_=new_tz_binding_type_enum, existing_type=all_tz_binding_type_enum, existing_nullable=False)
def upgrade(): # add the new network types to the enum neutron_op.alter_enum_add_value( 'tz_network_bindings', 'binding_type', all_tz_binding_type_enum, False) # change existing entries with type 'vxlan' to 'geneve' op.execute("UPDATE tz_network_bindings SET binding_type='geneve' " "where binding_type='vxlan'") # remove 'vxlan' from the enum op.alter_column( 'tz_network_bindings', 'binding_type', type_=new_tz_binding_type_enum, existing_type=all_tz_binding_type_enum, existing_nullable=False)
def upgrade(): migration.alter_enum_add_value(ha_port_bindings_table_name, 'state', new_enum, True, server_default='standby')