Skip to content

fix: migrate the private model flag on users - #47

Merged
HugoXK merged 1 commit into
mainfrom
fix/private-model-migration
Nov 5, 2026
Merged

HugoXK merged 1 commit into
mainfrom
fix/private-model-migration

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Written-by: HugoXK

Fixes the users migration for the private-model flag.

The allow_private_models column was added to the repos migration list instead of the users list, so existing databases reached schema 27 without the user column. Move it to the users additions and assert the flag persists.

Ran:

  • npm run check — pass (140 tests, build)
  • node scripts/version.mjs check — pass
  • node scripts/changelog.mjs check — pass
    Not run: production deploy.

Docs-not-needed: the architecture model section already documents the per-user allow_private_models grant; this PR only fixes the migration placement.
Changelog-not-needed: migration placement fix; the user-facing private model grant is already covered by #46.
No-issue: follow-up to the private-model access fix.

The allow_private_models column was added to the repos migration list instead of users, so existing databases never got the user column. Move the migration to the users additions and assert the flag persists.

@HugoXK HugoXK left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: PASS at 55d47d0
Written-by: Reviewer
Posted-by: HugoXK

Ran:

  • npm run check — pass (140 tests, build)
  • node scripts/version.mjs check — pass
  • node scripts/changelog.mjs check — pass
    Not run: production deploy.

This is a migration-placement fix; the user column is added on startup.

@HugoXK
HugoXK merged commit 5e8e958 into main Nov 5, 2026
21 of 24 checks passed
@HugoXK
HugoXK deleted the fix/private-model-migration branch November 5, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant