Repository navigation
How do I upgrade my server, tell whether a commit needs a migration, and roll back? #572
Answered
by
lumenpearson
lumenpearson
asked this question in
Q&A
|
My server runs an older commit of |
Answered by
lumenpearson
Oct 17, 2026
Replies: 1 comment
|
There are no releases yet. An upgrade means a move to a newer commit of To tell whether the newer commit needs a migration:
To upgrade:
To roll back:
More: docs/deploy.md, A migration goes before the deploy, Creating and updating the schema. |
0 replies
Answer selected by
lumenpearson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.EXPECTED_REVISIONin the new commit'sserver/app/db.pywith the"schema"thatGET /api/v1/warmupreports.0013's UNIQUE, goes after.0017's rewri…