Commit graph

10 commits

Author SHA1 Message Date
eb915ae851 Update public data SQL (to fix 00:00:00 manifest timestamps)
I was surprised to find that ~65k `swf_assets` records had their
`manifest_cached_at` timestamp set to `0000-00-00 00:00:00`? I don't
literally see where in the code that could happen. Maybe it's old?

Anyway, it's causing a problem with the utf8 database migration I'm
working on, so I manually set all of those to `NULL` and saving this
so I can test the new migration against it!
2024-02-28 18:08:57 -08:00
c7950c0af2 Update public data SQL (to get Baby Body Paints)
Wanted to test more about these locally! :3
2024-02-27 18:02:04 -08:00
1cef0bea20 Export public data, with the new fields on the items table 2024-02-20 16:12:34 -08:00
ca7138d755 Update public data again
This time I'm getting the Banana Chia and stuff!
2024-02-18 11:27:21 -08:00
179c492294 Update the public data export again, after deleting duplicate assets
We ran the new `rails swf_assets:remove_duplicates` task in the
`impress` repository, saving our work before (previous commit) and
after (this commit), in case we need to study the results or roll back!
2024-02-09 09:55:02 -08:00
addce69855 Update the public data export
I'm about to work on purging duplicate SwfAsset records, so I'm making
sure I save everything first!
2024-02-09 09:06:35 -08:00
dc954d7c3c Stop referencing the {color,species,zone}_translations tables
We're in the process of migrating away from translating these records,
because Neopets hasn't supported non-English languages in many years,
and it'll simplify our code and database lookups.

In Main DTI, we already wrote code to copy these fields onto the main
records and keep them in sync for now; now, once DTI 2020 isn't
referencing them anymore, it should be safe for the main app to drop
the tables altogether.

Note that some Prettier changes got mixed in here and that's fine!

I also wasn't suuuper careful testing these, most of them seem to be
trivially testable by just loading the homepage or doing a few basic
wardrobe actions, and the others are in Discord support log actions
that aren't enabled in development mode, so I'm just like… ehh I'll do
a couple support actions after deploy and see that they don't crash!
2024-02-03 08:05:15 -08:00
505f420d96 Update public data SQL dump, mainly to add alt styles
Note also the change to the public-data-constants, because we've
started (but not finished) moving name fields into the rows themselves
and deprecating the translations.
2024-02-01 02:01:50 -08:00
7d64709378 Update public data
Just ran `yarn db:export:public-data`, tada!
2022-12-08 13:34:40 -08:00
b84c8ba34e Script to set up dev db with public DTI data
Now, someone with production DB access can run `yarn db:export:public-data` to create `public-data-constants.sql` and `public-data-from-modeling.sql`.

Then, someone setting up their dev database can run `yarn db:setup-dev:full` and get all the wearables data imported right into their dev database!

I'm noticing just how poorly I'm keeping up with my own goals for finishing up DTI, and wondering if now is a good time to circle back to some old offers for code contributions I got last year… I also just figure that making this app Possible To Run with a backup of the basic public database is like. a pretty handy thing to have for archival's sake imo

Note that, for this change, we also set up Git LFS (Large File Storage). Github should be automatically compatible with this! It's a way to not write the whole 30MB database dump into the repository history, and instead keep it in a secondary filestore, because Git's core algorithms aren't really built to handle large blobs of data very well. Users setting up their dev environment will therefore also need to have Git LFS installed for this script to work! (Otherwise, they'll see a "pointer" file in `public-data-from-modeling.sql.gz` that contains some metadata about the file state but not the data itself.)
2022-11-13 07:03:44 -08:00
Renamed from scripts/setup-mysql-dev-constants.sql (Browse further)