steventhorne / legendhub

Source code for the legendhub website.
https://www.legendhub.org
MIT License
3 stars 3 forks source link

Ensure migrations are run first when the server starts up #144

Closed steventhorne closed 1 year ago

steventhorne commented 1 year ago

Expected Behavior

Migrations should run early enough that the server will load and cache relevant data from the migration properly.

Current Behavior

Migrations don't run early enough, so if ItemStatInfo is updated by a migration, the server has already cached invalid data for it.

Possible Solution

Just run migrations first when the server starts.

Steps to Reproduce (for bugs)

  1. Create a migration that adds a stat to Items and ItemStatInfo
  2. Start app server and note that the migration completed but the ItemStatInfo is out of date

Your Environment