cartodb-4.42/db/migrate/20160506152932_add_mobile_sdk_features_to_user.rb
2024-04-06 05:25:13 +00: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