Skip to content

fix(self-hosted): Migration inconsistency#110810

Merged
hubertdeng123 merged 2 commits intomasterfrom
hubertdeng/fix-self-hosted-migration-inconsistency
Mar 16, 2026
Merged

fix(self-hosted): Migration inconsistency#110810
hubertdeng123 merged 2 commits intomasterfrom
hubertdeng/fix-self-hosted-migration-inconsistency

Conversation

@hubertdeng123
Copy link
Copy Markdown
Member

@hubertdeng123 hubertdeng123 commented Mar 16, 2026

follow up to #110374

For self-hosted users, 0008 migration is already applied. 1040 was added last month, so the migration order cannot be done in the order that is expected in the dependency graph. This reverts the migration dependency, and fixes clean migrations so that 0008 no longer uses sentry_project.template_id which was breaking for clean installs of getsentry

fixes getsentry/self-hosted#4222

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 16, 2026
@hubertdeng123 hubertdeng123 marked this pull request as ready for review March 16, 2026 22:31
@hubertdeng123 hubertdeng123 requested a review from a team as a code owner March 16, 2026 22:31
Copy link
Copy Markdown
Member

@wedamija wedamija left a comment

Choose a reason for hiding this comment

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

Nit: Usually we use .values_list("id", flat=True) instead of only, but not a huge deal

@hubertdeng123
Copy link
Copy Markdown
Member Author

Nit: Usually we use .values_list("id", flat=True) instead of only, but not a huge deal

Done, going to see if CI complains

@hubertdeng123 hubertdeng123 enabled auto-merge (squash) March 16, 2026 23:36
@hubertdeng123 hubertdeng123 merged commit dc15ace into master Mar 16, 2026
79 checks passed
@hubertdeng123 hubertdeng123 deleted the hubertdeng/fix-self-hosted-migration-inconsistency branch March 16, 2026 23:40
@github-actions github-actions bot locked and limited conversation to collaborators Apr 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

2 participants