Skip to content

fix(storage): correct the migration number cited for repositories/git_provider_accounts - #7054

Merged
pedrofrxncx merged 1 commit into
mainfrom
fix/repositories-storage-migration-comment-w2
Sep 9, 2026
Merged

fix(storage): correct the migration number cited for repositories/git_provider_accounts#7054
pedrofrxncx merged 1 commit into
mainfrom
fix/repositories-storage-migration-comment-w2

Conversation

@pedrofrxncx

@pedrofrxncx pedrofrxncx commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Follows the same doc-drift pattern already fixed in #7053 (a wrong migration number in a schema comment).

Both apps/api/src/storage/repositories.ts and apps/api/src/storage/git-provider-accounts.ts open with a doc comment claiming the table was created in "migration 199". Migration 199 (199-drop-jira-mirror-and-org-columns.ts) drops jira mirror/org columns and has nothing to do with either table — both repositories and git_provider_accounts were actually created in migration 204 (204-git-provider-accounts-and-repositories.ts), confirmed by reading that migration directly.

The payoff: these are brand-new tables (merged this week in #7035) and the wrong citation actively misdirects anyone tracing schema history or debugging a backfill issue back to an unrelated migration.

Verify: grep -n 'migration 199' apps/api/src/storage/repositories.ts apps/api/src/storage/git-provider-accounts.ts now returns nothing; cat apps/api/migrations/204-git-provider-accounts-and-repositories.ts | head -5 confirms it's the actual origin.

Comment-only change, no logic touched. Ran bun run fmt and bunx oxlint on both files locally; full CI covers the rest.

🤖 Generated with Claude Code


Summary by cubic

Corrects the migration number cited in the repositories and git_provider_accounts schema comments from 199 to 204, so anyone tracing schema history or debugging a backfill no longer lands on the unrelated jira-mirror migration. Comment-only change, no logic touched.

Written for commit a5e2d4c. Summary will update on new commits.

Review in cubic

…_provider_accounts

Both doc comments said 'migration 199', which drops jira mirror/org
columns and has nothing to do with these tables. The tables were
actually created in migration 204 (git-provider-accounts-and-repositories.ts).
@github-actions github-actions Bot added the claude PR authored by a coding agent label Sep 8, 2026
@pedrofrxncx
pedrofrxncx merged commit 55a14b2 into main Sep 9, 2026
34 checks passed
@pedrofrxncx
pedrofrxncx deleted the fix/repositories-storage-migration-comment-w2 branch September 9, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude PR authored by a coding agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant