cartodb-4.29/db/migrate/20160506152932_add_mobile_sdk_features_to_user.rb
2020-06-15 10:58:47 +08:00

24 lines
850 B
Ruby

Sequel.migration do
up do
alter_table(:users) do
add_column :mobile_xamarin, :boolean, null: false, default: false
add_column :mobile_custom_watermark, :boolean, null: false, default: false
add_column :mobile_offline_maps, :boolean, null: false, default: false
add_column :mobile_gis_extension, :boolean, null: false, default: false
add_column :mobile_max_open_users, :integer, null: false, default: 0
add_column :mobile_max_private_users, :integer, null: false, default: 0
end
end
down do
alter_table(:users) do
drop_column :mobile_xamarin
drop_column :mobile_custom_watermark
drop_column :mobile_offline_maps
drop_column :mobile_gis_extension
drop_column :mobile_max_open_users
drop_column :mobile_max_private_users
end
end
end