impress/db/migrate
Emi Matchu cd28c26ae7 Make thumbnail_url a manually overridable field for Alt Styles
Oh jeez, okay, the latest batch of Alt Styles are using a different URL
format for the thumbnail image!

This isn't something we can import via modeling, so we're gonna have to
keep on top of it manually. For now, I'll keep inferring the previous
format in case they keep using it, but here's also a console script to
fix up the latest batch. (At time of writing, not all of these are in
our database, which is fine; when pasting it into the console, those
lines will error and the script will continue.)

```rb
def update_style(color_name, species_name, thumbnail_url)
	AltStyle.find_by_color_id_and_species_id(
		Color.find_by_name(color_name),
		Species.find_by_name(species_name)
	).update!(thumbnail_url:)
end

update_style "Grey", "Blumaroo", "https://images.neopets.com/items/c0gk16fk.gif"
update_style "Grey", "Bori", "https://images.neopets.com/items/55qvx6mr.gif"
update_style "Grey", "Bruce", "https://images.neopets.com/items/6y6pyiuw.gif"
update_style "Grey", "Buzz", "https://images.neopets.com/items/7fh4avry.gif"
update_style "Grey", "Chia", "https://images.neopets.com/items/7b2jtn10.gif"
update_style "Grey", "Elephante", "https://images.neopets.com/items/0ne41rao.gif"
update_style "Grey", "Gnorbu", "https://images.neopets.com/items/75mwtqmh.gif"
update_style "Grey", "Hissi", "https://images.neopets.com/items/dxdi2mhm.gif"
update_style "Grey", "Kiko", "https://images.neopets.com/items/b9yiruxt.gif"
update_style "Grey", "Lenny", "https://images.neopets.com/items/c6cboc7e.gif"
update_style "Grey", "Lutari", "https://images.neopets.com/items/33fs4eqf.gif"
update_style "Grey", "Nimmo", "https://images.neopets.com/items/4karmgbl.gif"
update_style "Grey", "Ogrin", "https://images.neopets.com/items/dlw78fhk.gif"
update_style "Grey", "Quiggle", "https://images.neopets.com/items/0aipl0iw.gif"
update_style "Grey", "Ruki", "https://images.neopets.com/items/bjnjxsem.gif"
update_style "Grey", "Tuskaninny", "https://images.neopets.com/items/7rh57a0o.gif"
update_style "Grey", "Vandagyre", "https://images.neopets.com/items/6p8sgs69.gif"
update_style "Grey", "Xweetok", "https://images.neopets.com/items/bge9vp5e.gif"
```
2024-06-15 17:35:12 -07:00
..
20101109021049_create_outfits.rb
20101109021147_create_item_outfit_relationships.rb
20101110213044_add_name_and_starred_to_outfits.rb
20101125153424_treat_sold_in_mall_as_a_boolean.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20101125154435_allow_null_for_some_objects_fields.rb
20101125160843_add_swf_assets_type_and_id_index.rb
20110126180835_users_devise.rb
20110210222230_guest_outfits.rb
20110514145602_add_has_image_to_swf_assets.rb
20110515134542_add_image_requested_to_swf_assets.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110626202605_add_image_mode_tester_to_users.rb
20110712232259_create_closet_hangers.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110713162012_set_closet_hangers_quantity_default_to_zero.rb
20110720183722_add_neopets_username_to_users.rb
20110722180616_add_owned_to_closet_hangers.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110726231143_create_closet_lists.rb
20110730174148_add_closet_hangers_visibility_to_users.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110731021808_add_visibility_to_closet_lists.rb
20110804134432_add_timestamps_to_items.rb
20110807212936_add_conversion_timestamps_to_swf_assets.rb
20120112204234_rename_swf_assets_id_to_remote_id.rb
20120308205324_add_image_to_outfits.rb
20120321214802_index_associations.rb
20120321222001_index_closet_hanger_query.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20120321231507_index_closet_hanger_query2.rb
20120521164652_add_female_and_mood_and_unconverted_and_labeled_to_pet_states.rb
20120716193946_add_image_layers_hash_to_outfit.rb
20120725232903_add_image_enqueued_to_outfits.rb
20121006010446_add_explicitly_body_specific_to_objects.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20130111213346_translate_items.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20130121193957_create_species.rb
20130121205607_create_colors.rb
20130121221226_create_zones.rb
20130128065543_remove_translated_fields_from_items.rb
20130427151327_add_glitched_to_pet_states.rb
20131016203607_add_image_manual_to_swf_assets.rb
20140117171729_create_neopets_connections.rb
20140119040646_add_contact_neopets_connection_id_to_users.rb
20140125202515_add_prank_to_colors.rb
20140331034031_add_artist_neopets_username_to_pet_state.rb
20140403034558_create_wardrobe_tips.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20140910014231_create_donations.rb
20140910030549_create_donation_features.rb
20140910181819_add_email_to_donations.rb
20140910204019_create_campaigns.rb
20140910204043_add_campaign_id_to_donation.rb
20150225194522_add_advertised_to_campaign.rb
20150728192329_add_description_to_campaigns.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20150728195029_add_name_to_campaigns.rb
20150802202909_add_theme_id_to_campaigns.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20150905181350_add_basic_image_hash_to_pet_types.rb
20150923052017_add_thanks_to_campaign.rb
20150927033046_create_news_posts.rb
20170105205222_add_purpose_to_campaigns.rb
20180509210338_add_manual_special_color_id_to_items.rb
20230729181111_drop_news_posts.rb
20230802195548_drop_wardrobe_tips.rb
20231024221826_delete_orphaned_closet_hangers.rb
20231110043543_add_manifest_url_to_swf_assets.rb
20231111232015_remove_image_mode_tester_from_users.rb Remove old Image Mode stuff 2023-11-11 15:21:49 -08:00
20231111234255_remove_mall_spider_fields_from_item.rb
20240119061745_add_last_trade_activity_at_to_users.rb Save last trade activity time onto User 2024-01-19 00:00:46 -08:00
20240123125509_add_name_to_species_and_color.rb
20240123133215_add_label_and_plain_label_to_zones.rb
20240124102340_create_alt_styles.rb
20240129114639_add_support_staff_to_users.rb
20240201134440_add_alt_style_id_to_outfits.rb
20240203161355_drop_translations_for_colors_and_species_and_zones.rb
20240220230420_add_translated_fields_directly_to_items.rb Add translated item fields directly to the Item model 2024-02-20 15:25:03 -08:00
20240221004332_fix_default_value_for_modeling_logs_created_at.rb Fix default value for Impress 2020's modeling_logs.created_at 2024-02-20 16:46:19 -08:00
20240221005949_drop_item_translations.rb Drop item_translations table 2024-02-20 17:01:54 -08:00
20240225231346_add_manifest_loaded_at_and_manifest_status_code_to_swf_assets.rb Track when manifest was last loaded, and what status it returned 2024-02-25 15:35:04 -08:00
20240227231815_add_series_name_to_alt_styles.rb
20240227233743_change_default_for_alt_styles_series_name.rb
20240229015410_convert_all_tables_to_utf8mb4.rb
20240323234243_increase_limit_for_item_outfit_relationships_id.rb Increase ID column limit for item_outfit_relationships 2024-03-24 11:09:40 +11:00
20240401124200_increase_username_length.rb
20240421033509_add_shadowbanned_to_users.rb Add shadowban mechanism for closet lists 2024-04-20 20:57:15 -07:00
20240502195157_fix_default_value_for_items_description.rb Fix broken default value in schema for item description 2024-05-02 13:00:10 -07:00
20240507235742_create_nc_mall_records.rb Add bare-bones rails nc_mall:sync task, incl. NCMallRecord model 2024-05-07 17:40:14 -07:00
20240511003019_add_unique_index_on_item_id_to_nc_mall_records.rb
20240522222040_add_pb_item_name_to_colors.rb
20240522233638_add_pb_item_thumbnail_url_to_colors.rb
20240603181855_add_index_on_name_to_items.rb
20240608022149_add_dyeworks_base_item_id_to_items.rb
20240616001002_add_thumbnail_url_to_alt_styles.rb