Consolidate multiuser DB migrations 27–29 into a single migration step#71
Merged
lstein merged 2 commits intofeature/multiuserfrom Feb 20, 2026
Merged
Conversation
Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Consolidate database migrations into a single step
Consolidate multiuser DB migrations 27–29 into a single migration step
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrations 27, 28, and 29 were added separately during multiuser branch development. Since none have shipped, consolidate them into a single atomic migration step (26→27).
Changes:
migration_27.py: Absorbs all logic from 28 and 29 — multi-user tables,user_idcolumns on existing tables,client_stateper-user restructuring (including old-schema data migration), andapp_settingstable with JWT secret generationmigration_28.py/migration_29.py: Deletedsqlite_util.py: Removed imports and registrations forbuild_migration_28/build_migration_29tests/test_sqlite_migrator.py: Replaced separatetest_migration_27_*/test_migration_28_*tests with consolidated tests covering users tables, client_state migration paths (with/without existing data column), and app_settings/JWT secretRelated Issues / Discussions
QA Instructions
Run
pytest tests/test_sqlite_migrator.py. All 22 tests should pass.Merge Plan
This touches the DB migration chain. Verify no environments have already run migration 28 or 29 before merging — if they have, a gap-filling migration will be needed instead.
Checklist
What's Newcopy (if doing a release after this PR)💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.