This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Script to run database migrations #10793
Labels
good first issue
Good for newcomers
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
At the moment, if you attempt a rolling upgrade (where you restart one worker process at a time), then if there have been any database migrations, the worker processes refuse to start with:
It should nowadays usually be safe to run the schema migrations while the Synapse processes is still running.
We could have workers do it automatically, but I'd be a bit concerned about multiple processes all trying to do the upgrade at once. I'd also like this process to be manual until we're a bit more comfortable with it.
Accordingly, I propose a script we can run which will take a
homeserver.yaml
file and run the database migrations on it.Now it turns out we have https://github.com/matrix-org/synapse/blob/v1.41.1/scripts-dev/update_database, which does almost the right thing, except that it also runs the background updates. Accordingly I think that all we need to do is modify that script so that the "run background updates" behaviour is optional.
The text was updated successfully, but these errors were encountered: