cartodb/db/migrate/20150514141720_add_missing_default_values.rb

22 lines
433 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +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