cartodb-4.42/db/migrate/20120719104544_maps.rb

20 lines
423 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
class MapsMigration < Sequel::Migration
def up
create_table :maps do
primary_key :id
Integer :user_id, :null => false, :index => true
String :provider, :text => true
String :bounding_box_sw, :text => true
String :bounding_box_ne, :text => true
String :center, :text => true
Integer :zoom
end
end
def down
drop_table :maps
end
end