forked from OpenNeo/impress
Also, while we're here! To restore the lost data, I: 1. Downloaded this scheduled public data backup, which was taken thankfully the day before we updated modeling code! https://impress.openneo.net/public-data/2024-11-03T08_15_02Z-scheduled.sql.gz 2. Trimmed it just to the section about the `parents_swf_assets` table: dropping it, then rebuilding it from scratch. 3. Ran this modified backup SQL dump on the production server. 4. Ran the code from `db/migrate/20241001052510_add_cached_fields_to_items.rb` to bring items' cached fields back into the correct state. I also had to fix some errors in the item data that prevented some items from passing the latest validations: ```rb Item.where(rarity: "").update_all(rarity: "???") Item.where(description: "").update_all(description: "???") Item.where(zones_restrict: "").update_all(zones_restrict: "00000 00000000000000000000000000000000000000000000000") ``` |
||
|---|---|---|
| .. | ||
| about | ||
| alt_styles | ||
| application | ||
| auth_users | ||
| closet_hangers | ||
| closet_lists | ||
| contributions | ||
| devise | ||
| fundraising | ||
| item_trades | ||
| items | ||
| layouts | ||
| neopets_page_import_tasks | ||
| outfits | ||
| pet_states | ||
| pet_types | ||
| pets | ||
| sitemap | ||
| swf_assets | ||
| users | ||