forked from OpenNeo/impress
Oops, should've used migration version 4.2
Oh I didn't realize the lowest version Rails had for this is 4.2. I wish running `rake db:migrate` checked this, but I'm running into it on another branch when I try to create a *new* migration which for some reason leads it to inspect the old migrations and notice the issue. Weird!
This commit is contained in:
parent
60284a87cc
commit
b2a027fbbf
57 changed files with 57 additions and 57 deletions
db/migrate
20101109021049_create_outfits.rb20101109021147_create_item_outfit_relationships.rb20101110213044_add_name_and_starred_to_outfits.rb20101125153424_treat_sold_in_mall_as_a_boolean.rb20101125154435_allow_null_for_some_objects_fields.rb20101125160843_add_swf_assets_type_and_id_index.rb20110126180835_users_devise.rb20110210222230_guest_outfits.rb20110514145602_add_has_image_to_swf_assets.rb20110515134542_add_image_requested_to_swf_assets.rb20110626202605_add_image_mode_tester_to_users.rb20110712232259_create_closet_hangers.rb20110713162012_set_closet_hangers_quantity_default_to_zero.rb20110720183722_add_neopets_username_to_users.rb20110722180616_add_owned_to_closet_hangers.rb20110726231143_create_closet_lists.rb20110730174148_add_closet_hangers_visibility_to_users.rb20110731021808_add_visibility_to_closet_lists.rb20110804134432_add_timestamps_to_items.rb20110807212936_add_conversion_timestamps_to_swf_assets.rb20120112204234_rename_swf_assets_id_to_remote_id.rb20120308205324_add_image_to_outfits.rb20120321214802_index_associations.rb20120321222001_index_closet_hanger_query.rb20120321231507_index_closet_hanger_query2.rb20120521164652_add_female_and_mood_and_unconverted_and_labeled_to_pet_states.rb20120716193946_add_image_layers_hash_to_outfit.rb20120725232903_add_image_enqueued_to_outfits.rb20121006010446_add_explicitly_body_specific_to_objects.rb20130111213346_translate_items.rb20130121193957_create_species.rb20130121205607_create_colors.rb20130121221226_create_zones.rb20130128065543_remove_translated_fields_from_items.rb20130427151327_add_glitched_to_pet_states.rb20131016203607_add_image_manual_to_swf_assets.rb20140117171729_create_neopets_connections.rb20140119040646_add_contact_neopets_connection_id_to_users.rb20140125202515_add_prank_to_colors.rb20140331034031_add_artist_neopets_username_to_pet_state.rb20140403034558_create_wardrobe_tips.rb20140910014231_create_donations.rb20140910030549_create_donation_features.rb20140910181819_add_email_to_donations.rb20140910204019_create_campaigns.rb20140910204043_add_campaign_id_to_donation.rb20150225194522_add_advertised_to_campaign.rb20150728192329_add_description_to_campaigns.rb20150728195029_add_name_to_campaigns.rb20150802202909_add_theme_id_to_campaigns.rb20150905181350_add_basic_image_hash_to_pet_types.rb20150923052017_add_thanks_to_campaign.rb20150927033046_create_news_posts.rb20170105205222_add_purpose_to_campaigns.rb20180509210338_add_manual_special_color_id_to_items.rb20230729181111_drop_news_posts.rb20230802195548_drop_wardrobe_tips.rb
|
@ -1,4 +1,4 @@
|
|||
class CreateOutfits < ActiveRecord::Migration[3.2]
|
||||
class CreateOutfits < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :outfits do |t|
|
||||
t.integer :pet_state_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateItemOutfitRelationships < ActiveRecord::Migration[3.2]
|
||||
class CreateItemOutfitRelationships < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :item_outfit_relationships do |t|
|
||||
t.integer :item_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNameAndStarredToOutfits < ActiveRecord::Migration[3.2]
|
||||
class AddNameAndStarredToOutfits < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :outfits, :name, :string, :null => false
|
||||
add_column :outfits, :starred, :boolean, :default => false, :null => false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class TreatSoldInMallAsABoolean < ActiveRecord::Migration[3.2]
|
||||
class TreatSoldInMallAsABoolean < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
change_column :objects, :sold_in_mall, :boolean, :null => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AllowNullForSomeObjectsFields < ActiveRecord::Migration[3.2]
|
||||
class AllowNullForSomeObjectsFields < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
change_column :objects, :category, :string, :limit => 50, :null => true
|
||||
change_column :objects, :type, :string, :limit => 50, :null => true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddSwfAssetsTypeAndIdIndex < ActiveRecord::Migration[3.2]
|
||||
class AddSwfAssetsTypeAndIdIndex < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_index "swf_assets", ["type", "id"], :name => "swf_assets_type_and_id"
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class UsersDevise < ActiveRecord::Migration[3.2]
|
||||
class UsersDevise < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
change_table :users do |t|
|
||||
t.rememberable
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class GuestOutfits < ActiveRecord::Migration[3.2]
|
||||
class GuestOutfits < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
change_column :outfits, :name, :string, :null => true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddHasImageToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
class AddHasImageToSwfAssets < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :swf_assets, :has_image, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageRequestedToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
class AddImageRequestedToSwfAssets < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :swf_assets, :image_requested, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageModeTesterToUsers < ActiveRecord::Migration[3.2]
|
||||
class AddImageModeTesterToUsers < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :users, :image_mode_tester, :boolean, :default => false, :null => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateClosetHangers < ActiveRecord::Migration[3.2]
|
||||
class CreateClosetHangers < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :closet_hangers do |t|
|
||||
t.integer :item_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class SetClosetHangersQuantityDefaultToZero < ActiveRecord::Migration[3.2]
|
||||
class SetClosetHangersQuantityDefaultToZero < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
end
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNeopetsUsernameToUsers < ActiveRecord::Migration[3.2]
|
||||
class AddNeopetsUsernameToUsers < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :users, :neopets_username, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddOwnedToClosetHangers < ActiveRecord::Migration[3.2]
|
||||
class AddOwnedToClosetHangers < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :closet_hangers, :owned, :boolean, :null => false, :default => true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateClosetLists < ActiveRecord::Migration[3.2]
|
||||
class CreateClosetLists < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :closet_lists do |t|
|
||||
t.string :name
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddClosetHangersVisibilityToUsers < ActiveRecord::Migration[3.2]
|
||||
class AddClosetHangersVisibilityToUsers < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :users, :owned_closet_hangers_visibility, :integer, :null => false, :default => 1
|
||||
add_column :users, :wanted_closet_hangers_visibility, :integer, :null => false, :default => 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddVisibilityToClosetLists < ActiveRecord::Migration[3.2]
|
||||
class AddVisibilityToClosetLists < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :closet_lists, :visibility, :integer, :null => false, :default => 1
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddTimestampsToItems < ActiveRecord::Migration[3.2]
|
||||
class AddTimestampsToItems < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_timestamps :objects
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddConversionTimestampsToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
class AddConversionTimestampsToSwfAssets < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :swf_assets, :reported_broken_at, :timestamp
|
||||
add_column :swf_assets, :converted_at, :timestamp
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RenameSwfAssetsIdToRemoteId < ActiveRecord::Migration[3.2]
|
||||
class RenameSwfAssetsIdToRemoteId < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
rename_column :swf_assets, :id, :remote_id
|
||||
add_column :swf_assets, :id, :primary_key
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageToOutfits < ActiveRecord::Migration[3.2]
|
||||
class AddImageToOutfits < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :outfits, :image, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class IndexAssociations < ActiveRecord::Migration[3.2]
|
||||
class IndexAssociations < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_index :closet_hangers, :item_id
|
||||
add_index :closet_hangers, :list_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class IndexClosetHangerQuery < ActiveRecord::Migration[3.2]
|
||||
class IndexClosetHangerQuery < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
# SELECT COUNT(DISTINCT `closet_hangers`.`id`) FROM `closet_hangers` INNER
|
||||
# JOIN `users` ON `users`.`id` = `closet_hangers`.`user_id` LEFT OUTER JOIN
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class IndexClosetHangerQuery2 < ActiveRecord::Migration[3.2]
|
||||
class IndexClosetHangerQuery2 < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
# SELECT `objects`.* FROM `objects`
|
||||
# INNER JOIN `item_outfit_relationships` ON
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddFemaleAndMoodAndUnconvertedAndLabeledToPetStates < ActiveRecord::Migration[3.2]
|
||||
class AddFemaleAndMoodAndUnconvertedAndLabeledToPetStates < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :pet_states, :female, :boolean
|
||||
add_column :pet_states, :mood_id, :integer
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageLayersHashToOutfit < ActiveRecord::Migration[3.2]
|
||||
class AddImageLayersHashToOutfit < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :outfits, :image_layers_hash, :string, :length => 8
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageEnqueuedToOutfits < ActiveRecord::Migration[3.2]
|
||||
class AddImageEnqueuedToOutfits < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :outfits, :image_enqueued, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddExplicitlyBodySpecificToObjects < ActiveRecord::Migration[3.2]
|
||||
class AddExplicitlyBodySpecificToObjects < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :objects, :explicitly_body_specific, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class TranslateItems < ActiveRecord::Migration[3.2]
|
||||
class TranslateItems < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
rename_table :objects, :items
|
||||
Item.create_translation_table!({
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateSpecies < ActiveRecord::Migration[3.2]
|
||||
class CreateSpecies < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :species
|
||||
Species.create_translation_table! :name => :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateColors < ActiveRecord::Migration[3.2]
|
||||
class CreateColors < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :colors do |t|
|
||||
t.boolean :basic
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateZones < ActiveRecord::Migration[3.2]
|
||||
class CreateZones < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :zones do |t|
|
||||
t.integer :depth
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RemoveTranslatedFieldsFromItems < ActiveRecord::Migration[3.2]
|
||||
class RemoveTranslatedFieldsFromItems < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
remove_column :items, :name
|
||||
remove_column :items, :description
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddGlitchedToPetStates < ActiveRecord::Migration[3.2]
|
||||
class AddGlitchedToPetStates < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :pet_states, :glitched, :boolean, null: false, default: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageManualToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
class AddImageManualToSwfAssets < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :swf_assets, :image_manual, :boolean, null: false, default: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateNeopetsConnections < ActiveRecord::Migration[3.2]
|
||||
class CreateNeopetsConnections < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :neopets_connections do |t|
|
||||
t.integer :user_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddContactNeopetsConnectionIdToUsers < ActiveRecord::Migration[3.2]
|
||||
class AddContactNeopetsConnectionIdToUsers < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :users, :contact_neopets_connection_id, :integer
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddPrankToColors < ActiveRecord::Migration[3.2]
|
||||
class AddPrankToColors < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :colors, :prank, :boolean, default: false, null: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddArtistNeopetsUsernameToPetState < ActiveRecord::Migration[3.2]
|
||||
class AddArtistNeopetsUsernameToPetState < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :pet_states, :artist_neopets_username, :string, null: true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateWardrobeTips < ActiveRecord::Migration[3.2]
|
||||
class CreateWardrobeTips < ActiveRecord::Migration[4.2]
|
||||
def up
|
||||
create_table :wardrobe_tips do |t|
|
||||
t.integer :index, null: false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDonations < ActiveRecord::Migration[3.2]
|
||||
class CreateDonations < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :donations do |t|
|
||||
t.integer :amount, null: false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDonationFeatures < ActiveRecord::Migration[3.2]
|
||||
class CreateDonationFeatures < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :donation_features do |t|
|
||||
t.integer :donation_id, null: false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddEmailToDonations < ActiveRecord::Migration[3.2]
|
||||
class AddEmailToDonations < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :donations, :donor_email, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateCampaigns < ActiveRecord::Migration[3.2]
|
||||
class CreateCampaigns < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :campaigns do |t|
|
||||
t.integer :progress, null: false, default: 0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddCampaignIdToDonation < ActiveRecord::Migration[3.2]
|
||||
class AddCampaignIdToDonation < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :donations, :campaign_id, :integer, null: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddAdvertisedToCampaign < ActiveRecord::Migration[3.2]
|
||||
class AddAdvertisedToCampaign < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :campaigns, :advertised, :boolean, null: false, default: true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddDescriptionToCampaigns < ActiveRecord::Migration[3.2]
|
||||
class AddDescriptionToCampaigns < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :campaigns, :description, :text, null: false, default: ''
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNameToCampaigns < ActiveRecord::Migration[3.2]
|
||||
class AddNameToCampaigns < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
# TODO: translations?
|
||||
add_column :campaigns, :name, :string, null: false, default: 'our hosting costs this year'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddThemeIdToCampaigns < ActiveRecord::Migration[3.2]
|
||||
class AddThemeIdToCampaigns < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :campaigns, :theme_id, :string, null: false, default: 'hug'
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddBasicImageHashToPetTypes < ActiveRecord::Migration[3.2]
|
||||
class AddBasicImageHashToPetTypes < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :pet_types, :basic_image_hash, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddThanksToCampaign < ActiveRecord::Migration[3.2]
|
||||
class AddThanksToCampaign < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :campaigns, :thanks, :text
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateNewsPosts < ActiveRecord::Migration[3.2]
|
||||
class CreateNewsPosts < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :news_posts do |t|
|
||||
t.text :body
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddPurposeToCampaigns < ActiveRecord::Migration[3.2]
|
||||
class AddPurposeToCampaigns < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
# We're using the "name" column as a short campaign purpose phrase.
|
||||
# Let's name that "purpose" instead, and create a "name" column that we can
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddManualSpecialColorIdToItems < ActiveRecord::Migration[3.2]
|
||||
class AddManualSpecialColorIdToItems < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :items, :manual_special_color_id, :integer
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class DropNewsPosts < ActiveRecord::Migration[3.2]
|
||||
class DropNewsPosts < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
drop_table :news_posts do |t|
|
||||
t.text :body
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class DropWardrobeTips < ActiveRecord::Migration[3.2]
|
||||
class DropWardrobeTips < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
drop_table :wardrobe_tips do |t|
|
||||
t.integer "index", null: false
|
||||
|
|
Loading…
Reference in a new issue