cartodb-4.42/db/migrate/20150514141720_add_missing_default_values.rb
2024-04-06 05:25:13 +00:00

22 lines
433 B
Ruby

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