Skip to content

Commit

Permalink
Fixing migration versions
Browse files Browse the repository at this point in the history
  • Loading branch information
alaxalves committed Jun 13, 2019
1 parent e60bb83 commit 6bedcc1
Show file tree
Hide file tree
Showing 48 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20090309034933_create_tweets.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTweets < ActiveRecord::Migration
class CreateTweets < ActiveRecord::Migration[5.2]
def self.up
create_table :tweets do |t|

Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20090309220337_create_messages.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateMessages < ActiveRecord::Migration
class CreateMessages < ActiveRecord::Migration[5.2]
def self.up
create_table :messages do |t|
t.string :author
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20090323162902_add_message_id.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddMessageId < ActiveRecord::Migration
class AddMessageId < ActiveRecord::Migration[5.2]
def self.up
add_column :keyvalues, :message_id, :integer, :default => 0
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20090605191716_create_nodes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateNodes < ActiveRecord::Migration
class CreateNodes < ActiveRecord::Migration[5.2]
def self.up
create_table :nodes do |t|
t.string :color, :default => 'red'
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20090605201606_create_ways.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateWays < ActiveRecord::Migration
class CreateWays < ActiveRecord::Migration[5.2]
def self.up
create_table :ways do |t|
t.string :color, :default => 'red'
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20090611170805_create_sms.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateSms < ActiveRecord::Migration
class CreateSms < ActiveRecord::Migration[5.2]
def self.up
# create_table "frontline_actions_triggers", :id => false, :force => true do |t|
# t.integer "action_id"
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20090611204112_add_name_desc_nodes_ways.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddNameDescNodesWays < ActiveRecord::Migration
class AddNameDescNodesWays < ActiveRecord::Migration[5.2]
def self.up
add_column :ways, :name, :string, :default => ""
add_column :ways, :description, :string, :default => ""
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20090611205227_change_lat_lon_types.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeLatLonTypes < ActiveRecord::Migration
class ChangeLatLonTypes < ActiveRecord::Migration[5.2]
def self.up
drop_table :ways
drop_table :nodes
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20090612011846_add_way_complete.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddWayComplete < ActiveRecord::Migration
class AddWayComplete < ActiveRecord::Migration[5.2]
def self.up
add_column :ways, :complete, :boolean, :default => true
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20091016214109_create_maps.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateMaps < ActiveRecord::Migration
class CreateMaps < ActiveRecord::Migration[5.2]
def self.up
create_table :maps do |t|
t.string :name, :default => ''
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100301013330_create_warpables.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateWarpables < ActiveRecord::Migration
class CreateWarpables < ActiveRecord::Migration[5.2]
def self.up
create_table :warpables do |t|
t.column :parent_id, :integer
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100306184916_add_map_id.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddMapId < ActiveRecord::Migration
class AddMapId < ActiveRecord::Migration[5.2]
def self.up
add_column :warpables, :map_id, :integer, :default => 0
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100308193343_add_map_description_author.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddMapDescriptionAuthor < ActiveRecord::Migration
class AddMapDescriptionAuthor < ActiveRecord::Migration[5.2]
def self.up
add_column :maps, :description, :text, :default => ''
add_column :maps, :author, :string, :default => 'anonymous'
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100310191643_add_warper_data.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddWarperData < ActiveRecord::Migration
class AddWarperData < ActiveRecord::Migration[5.2]
def self.up
add_column :warpables, :nodes, :string, :default => ''
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100316142953_zoom_to_float.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ZoomToFloat < ActiveRecord::Migration
class ZoomToFloat < ActiveRecord::Migration[5.2]
def self.up
remove_column :maps, :zoom
add_column :maps, :zoom, :decimal, :precision => 15, :scale => 10, :default => 2
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100330233734_add_location.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddLocation < ActiveRecord::Migration
class AddLocation < ActiveRecord::Migration[5.2]
def self.up
add_column :maps, :location, :string, :default => ''
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100404061203_add_warpable_lock.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddWarpableLock < ActiveRecord::Migration
class AddWarpableLock < ActiveRecord::Migration[5.2]
def self.up
add_column :warpables, :locked, :boolean, :default => false, :null => false
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100505153420_add_warpable_deleted.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddWarpableDeleted < ActiveRecord::Migration
class AddWarpableDeleted < ActiveRecord::Migration[5.2]
def self.up
add_column :warpables, :deleted, :boolean, :default => false, :null => false
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100531175725_create_warps.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateWarps < ActiveRecord::Migration
class CreateWarps < ActiveRecord::Migration[5.2]
def self.up
create_table :warps do |t|
t.integer :parent_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100614190507_add_warp_map_id.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddWarpMapId < ActiveRecord::Migration
class AddWarpMapId < ActiveRecord::Migration[5.2]
def self.up
add_column :warps, :map_id, :integer, :default => 0, :null => false
add_column :warps, :warpable_id, :integer, :default => 0, :null => false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100709061039_add_static_data_maps.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddStaticDataMaps < ActiveRecord::Migration
class AddStaticDataMaps < ActiveRecord::Migration[5.2]
def self.up
add_column :maps, :static_data, :string, :default => ''
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20100731141421_add_warps_additional_fields.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddWarpsAdditionalFields < ActiveRecord::Migration
class AddWarpsAdditionalFields < ActiveRecord::Migration[5.2]
def self.up
drop_table :warps
create_table :exports do |t|
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20101014151404_add_vectors_tiles.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddVectorsTiles < ActiveRecord::Migration
class AddVectorsTiles < ActiveRecord::Migration[5.2]
def self.up
add_column :maps, :vectors, :boolean, :default => true, :null => false
add_column :maps, :tiles, :string, :default => '', :null => false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110701105813_change_map_tile_default.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeMapTileDefault < ActiveRecord::Migration
class ChangeMapTileDefault < ActiveRecord::Migration[5.2]
def self.up
change_column_default(:maps, :tiles, "google")
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110813004143_change_map_vector_default.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeMapVectorDefault < ActiveRecord::Migration
class ChangeMapVectorDefault < ActiveRecord::Migration[5.2]
def self.up
change_column_default(:maps, :vectors, false)
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CleanupKnitterAddMapArchiveAndUserEmail < ActiveRecord::Migration
class CleanupKnitterAddMapArchiveAndUserEmail < ActiveRecord::Migration[5.2]
def self.up
add_column :maps, :email, :string, :default => "", :null => false
add_column :maps, :archived, :boolean, :default => false, :null => false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20111005211631_add_zip_warpable_res_history.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddZipWarpableResHistory < ActiveRecord::Migration
class AddZipWarpableResHistory < ActiveRecord::Migration[5.2]
def self.up
add_column :warpables, :history, :text, :default => "", :null => false
add_column :warpables, :cm_per_pixel, :float, :default => 0, :null => false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20111006153011_add_map_tile_url.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddMapTileUrl < ActiveRecord::Migration
class AddMapTileUrl < ActiveRecord::Migration[5.2]
def self.up
add_column :maps, :tile_url, :text, :default => "", :null => false
add_column :maps, :tile_layer, :text, :default => "", :null => false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120104164144_add_export_type_bands.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddExportTypeBands < ActiveRecord::Migration
class AddExportTypeBands < ActiveRecord::Migration[5.2]
def self.up
add_column :exports, :bands_string, :text, :default => "", :null => false
add_column :exports, :export_type, :string, :default => "normal", :null => false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120229164021_add_license.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddLicense < ActiveRecord::Migration
class AddLicense < ActiveRecord::Migration[5.2]
def self.up
add_column :maps, :license, :string, :default => 'copyright'
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120525201148_create_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateUsers < ActiveRecord::Migration
class CreateUsers < ActiveRecord::Migration[5.2]
def self.up
create_table "users", :force => true do |t|
t.string :login, :limit => 40
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120525215158_add_user_role_default.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddUserRoleDefault < ActiveRecord::Migration
class AddUserRoleDefault < ActiveRecord::Migration[5.2]
def self.up
change_column_default(:users, :role, "basic")
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120601185008_remove_identity_url_limit.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RemoveIdentityUrlLimit < ActiveRecord::Migration
class RemoveIdentityUrlLimit < ActiveRecord::Migration[5.2]
def self.up
change_column :users, :identity_url, :string, :limit => 255
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120701165519_create_tags.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTags < ActiveRecord::Migration
class CreateTags < ActiveRecord::Migration[5.2]
def self.up
create_table :tags do |t|
t.string :user_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130113164917_add_node_map_id.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddNodeMapId < ActiveRecord::Migration
class AddNodeMapId < ActiveRecord::Migration[5.2]
def self.up
add_column :nodes, :map_id, :integer, :default => 0
add_column :ways, :map_id, :integer, :default => 0
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130124160539_add_way_order.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddWayOrder < ActiveRecord::Migration
class AddWayOrder < ActiveRecord::Migration[5.2]
def self.up
add_column :nodes, :way_order, :integer, :default => 0
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130128184718_add_node_and_way_body.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddNodeAndWayBody < ActiveRecord::Migration
class AddNodeAndWayBody < ActiveRecord::Migration[5.2]
def self.up
add_column :nodes, :body, :text
add_column :ways, :body, :text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddMapAnonymouslyAnnotatable < ActiveRecord::Migration
class AddMapAnonymouslyAnnotatable < ActiveRecord::Migration[5.2]
def self.up
add_column :maps, :anon_annotatable, :boolean, :default => false
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20140811184901_add_tag_index.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddTagIndex < ActiveRecord::Migration
class AddTagIndex < ActiveRecord::Migration[5.2]
def self.up
add_index :tags, :map_id
add_index :tags, :warpable_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20140811185342_create_comments.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateComments < ActiveRecord::Migration
class CreateComments < ActiveRecord::Migration[5.2]
def self.up
create_table :comments do |t|
t.string :user_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20140902182631_create_annotations.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateAnnotations < ActiveRecord::Migration
class CreateAnnotations < ActiveRecord::Migration[5.2]
def self.up
create_table :annotations do |t|
t.integer :map_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20140902201706_rename_annotation_type.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RenameAnnotationType < ActiveRecord::Migration
class RenameAnnotationType < ActiveRecord::Migration[5.2]
def self.up
rename_column :annotations, :type, :annotation_type
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20141103164503_change_warpable_columns.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeWarpableColumns < ActiveRecord::Migration
class ChangeWarpableColumns < ActiveRecord::Migration[5.2]
def up
rename_column(:warpables, :filename, :image_file_name)
rename_column(:warpables, :content_type, :image_content_type)
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20141104184417_change_openid_identity_urls.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeOpenidIdentityUrls < ActiveRecord::Migration
class ChangeOpenidIdentityUrls < ActiveRecord::Migration[5.2]
def up

users = User.find :all
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20150117041411_add_slug_field_to_maps.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddSlugFieldToMaps < ActiveRecord::Migration
class AddSlugFieldToMaps < ActiveRecord::Migration[5.2]
def change
# There are some duplicate maps, but none have images, so we can delete dupes that don't have images.
dupes = []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class MoveCurrentValuesInMapNameToSlugField < ActiveRecord::Migration
class MoveCurrentValuesInMapNameToSlugField < ActiveRecord::Migration[5.2]
def up
execute "UPDATE maps m SET m.slug = m.name"
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20150715162314_change_map_null.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeMapNull < ActiveRecord::Migration
class ChangeMapNull < ActiveRecord::Migration[5.2]
def up
change_column_null :maps, :tile_url, true
change_column_null :maps, :tile_layer, true
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20190420025012_add_remote_url_to_exports.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddRemoteUrlToExports < ActiveRecord::Migration
class AddRemoteUrlToExports < ActiveRecord::Migration[5.2]
def change
add_column :exports, :export_url, :string
end
Expand Down

0 comments on commit 6bedcc1

Please sign in to comment.