ubicloud/migrate/20251106_drop_index_lbp_lbvm.rb
Furkan Sahin 688889576a Add stack column to LoadBalancerVmPort - migration
We are also removing the UNIQUE index on [load_balancer_port_id,
load_balancer_vm_id] because we will have multiple of these rows per
stack for dual stack load balancers. This is why we are adding a new
index on [load_balancer_port_id, load_balancer_vm_id, stack].
2025-11-10 15:07:15 +01:00

10 lines
257 B
Ruby

# frozen_string_literal: true
Sequel.migration do
no_transaction
change do
alter_table(:load_balancer_vm_port) do
drop_index [:load_balancer_port_id, :load_balancer_vm_id], name: :lb_vm_port_unique_index, concurrently: true
end
end
end