From 9c89bd53bf8493a287ad6659bd54adcc1966400c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 4 Aug 2009 13:17:29 +0000 Subject: [PATCH 1/1] Require the migration helper code in some more migrations. --- db/migrate/003_sql_session_store_setup.rb | 2 ++ db/migrate/004_user_enhancements.rb | 2 ++ db/migrate/007_add_relations.rb | 2 ++ db/migrate/010_diary_comments.rb | 2 ++ db/migrate/018_create_acls.rb | 2 ++ db/migrate/020_populate_node_tags_and_remove.rb | 2 ++ db/migrate/021_move_to_innodb.rb | 2 ++ db/migrate/024_order_relation_members.rb | 2 ++ db/migrate/025_add_end_time_to_changesets.rb | 2 ++ 9 files changed, 18 insertions(+) diff --git a/db/migrate/003_sql_session_store_setup.rb b/db/migrate/003_sql_session_store_setup.rb index 4de0dd4b1..daef768b7 100644 --- a/db/migrate/003_sql_session_store_setup.rb +++ b/db/migrate/003_sql_session_store_setup.rb @@ -1,3 +1,5 @@ +require 'lib/migrate' + class SqlSessionStoreSetup < ActiveRecord::Migration def self.up create_table "sessions", :options => innodb_option do |t| diff --git a/db/migrate/004_user_enhancements.rb b/db/migrate/004_user_enhancements.rb index a6e81d222..1c3bb5007 100644 --- a/db/migrate/004_user_enhancements.rb +++ b/db/migrate/004_user_enhancements.rb @@ -1,3 +1,5 @@ +require 'lib/migrate' + class UserEnhancements < ActiveRecord::Migration def self.up add_column "diary_entries", "latitude", :double diff --git a/db/migrate/007_add_relations.rb b/db/migrate/007_add_relations.rb index c265fc3ad..37fbd63d2 100644 --- a/db/migrate/007_add_relations.rb +++ b/db/migrate/007_add_relations.rb @@ -1,3 +1,5 @@ +require 'lib/migrate' + class AddRelations < ActiveRecord::Migration def self.up # a relation can have members much like a way can have nodes. diff --git a/db/migrate/010_diary_comments.rb b/db/migrate/010_diary_comments.rb index 43019a938..bf7319912 100644 --- a/db/migrate/010_diary_comments.rb +++ b/db/migrate/010_diary_comments.rb @@ -1,3 +1,5 @@ +require 'lib/migrate' + class DiaryComments < ActiveRecord::Migration def self.up create_table "diary_comments", myisam_table do |t| diff --git a/db/migrate/018_create_acls.rb b/db/migrate/018_create_acls.rb index 5205b99b0..d82020892 100644 --- a/db/migrate/018_create_acls.rb +++ b/db/migrate/018_create_acls.rb @@ -1,3 +1,5 @@ +require 'lib/migrate' + class CreateAcls < ActiveRecord::Migration def self.up create_table "acls", myisam_table do |t| diff --git a/db/migrate/020_populate_node_tags_and_remove.rb b/db/migrate/020_populate_node_tags_and_remove.rb index dc048f190..7d0791189 100644 --- a/db/migrate/020_populate_node_tags_and_remove.rb +++ b/db/migrate/020_populate_node_tags_and_remove.rb @@ -1,3 +1,5 @@ +require 'lib/migrate' + class PopulateNodeTagsAndRemove < ActiveRecord::Migration def self.up have_nodes = select_value("SELECT count(*) FROM current_nodes").to_i != 0 diff --git a/db/migrate/021_move_to_innodb.rb b/db/migrate/021_move_to_innodb.rb index da0488ca5..8312dec2c 100644 --- a/db/migrate/021_move_to_innodb.rb +++ b/db/migrate/021_move_to_innodb.rb @@ -1,3 +1,5 @@ +require 'lib/migrate' + class MoveToInnodb < ActiveRecord::Migration @@conv_tables = ['nodes', 'ways', 'way_tags', 'way_nodes', 'current_way_tags', 'relation_members', diff --git a/db/migrate/024_order_relation_members.rb b/db/migrate/024_order_relation_members.rb index 5500edfcf..76ec32222 100644 --- a/db/migrate/024_order_relation_members.rb +++ b/db/migrate/024_order_relation_members.rb @@ -1,3 +1,5 @@ +require 'lib/migrate' + class OrderRelationMembers < ActiveRecord::Migration def self.up # add sequence column. rails won't let us define an ordering here, diff --git a/db/migrate/025_add_end_time_to_changesets.rb b/db/migrate/025_add_end_time_to_changesets.rb index 4941b72b9..20d66719d 100644 --- a/db/migrate/025_add_end_time_to_changesets.rb +++ b/db/migrate/025_add_end_time_to_changesets.rb @@ -1,3 +1,5 @@ +require 'lib/migrate' + class AddEndTimeToChangesets < ActiveRecord::Migration def self.up # swap the boolean closed-or-not for a time when the changeset will -- 2.39.5