mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-11-28 00:20:26 +08:00
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].
10 lines
257 B
Ruby
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
|