Skip to content
Discussion options

You must be logged in to vote

State: main at 4c93edb4, 1 November 2026. The head revision is 0019. Since #463 closed (#539), CONTRIBUTING.md and CODEOWNERS name it too, and test_schema_version reads them; EXPECTED_REVISION in server/app/db.py is the source.

Five things besides the model change:

  1. A revision in server/migrations/versions/, numbered after the head: 0020_<name>.py with down_revision = "0019".
    • Never use create_all after 0001.
    • Take the DDL from the model, as create_all would build it.
    • On an empty database 0001 has already built today's schema, so a second ADD COLUMN is a hard error. Ask the inspector before you add anything.
    • Guard what SQLite cannot do.
    • An enum column stores the member name. A server_default…

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:contributor Whoever changes the code or the documents: setup, checks, where a change goes
1 participant