cartodb-4.42/db/migrate/20161011162345_mapzen_routing_quota.rb

20 lines
755 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
Sequel.migration do
up do
add_column :users, :mapzen_routing_quota, :integer
add_column :users, :mapzen_routing_block_price, :integer
add_column :users, :soft_mapzen_routing_limit, :boolean
add_column :organizations, :mapzen_routing_quota, :integer
add_column :organizations, :mapzen_routing_block_price, :integer
add_column :user_creations, :soft_mapzen_routing_limit, :boolean
end
down do
drop_column :users, :mapzen_routing_quota
drop_column :users, :mapzen_routing_block_price
drop_column :users, :soft_mapzen_routing_limit
drop_column :organizations, :mapzen_routing_quota
drop_column :organizations, :mapzen_routing_block_price
drop_column :user_creations, :soft_mapzen_routing_limit
end
end