Skip to content

Conversation

@toshski
Copy link
Contributor

@toshski toshski commented Nov 26, 2025

This changes the running of migrations, to run all schema migrations before starting the UI. The migrations were changed to 0.4.23 to run in the background, allowing in progress messages to be displayed. However, this allows UI code to run with no guarantee of the state of the database or if it is even created yet. This currently can result in a site for BaberoticaVR to be created with a blank key and no guarantee new issues wouldn't arise in the future.

This change will run all migrations up to the first data migration "0024-drop-actions-old", before the UI is started. All schema migrations are meant to be placed before this one. Schema migrations usually run fairly fast, so delaying the start of the UI should not be a big issue.

Technically, the "0024-drop-actions-old" migration will also run before the UI starts, but it is quick and creates a consistent initial migration point that doesn't need to be updated when new schema migrations are added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant