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
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
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
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

2 participants