Skip to content
Discussion options

You must be logged in to vote

There are no releases yet. An upgrade means a move to a newer commit of main (or of your fork). An additive migration always goes on before the code that needs it.

To tell whether the newer commit needs a migration:

  • git diff --name-only <running>..<new> -- server/migrations/versions/ lists the new revisions.
  • Or compare EXPECTED_REVISION in the new commit's server/app/db.py with the "schema" that GET /api/v1/warmup reports.
  • Before you apply a revision, read its docstring. The later revisions say:
    • what they destroy (most of them Destroys nothing.);
    • which side of the deploy they go on. Most go before. A constraint that the old code can break, such as 0013's UNIQUE, goes after. 0017's rewri…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lumenpearson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area:server area:db for:operator Whoever runs a server or builds and signs an APK of their own
1 participant