cartodb-4.42/db/migrate/20160506152932_add_mobile_sdk_features_to_user.rb

24 lines
850 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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