mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-06 06:41:57 +08:00
17 lines
352 B
Ruby
17 lines
352 B
Ruby
# frozen_string_literal: true
|
|
|
|
Sequel.migration do
|
|
up do
|
|
alter_table(:load_balancer) do
|
|
add_column :cert_enabled, :bool, default: false
|
|
end
|
|
|
|
run "UPDATE load_balancer SET cert_enabled = true WHERE health_check_protocol = 'https'"
|
|
end
|
|
|
|
down do
|
|
alter_table(:load_balancer) do
|
|
drop_column :cert_enabled
|
|
end
|
|
end
|
|
end
|