cartodb-4.42/db/migrate/20150514141720_add_missing_default_values.rb

22 lines
433 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
Sequel.migration do
up do
alter_table :layers do
set_column_default :options, '{}'
end
alter_table :overlays do
set_column_default :options, '{}'
set_column_default "order", 0
end
end
down do
alter_table :layers do
set_column_default :options, nil
end
alter_table :overlays do
set_column_default :options, nil
set_column_default "order", nil
end
end
end