Skip to content

chore: Remove project.template_id foreignkey#109879

Merged
markstory merged 2 commits into
masterfrom
chore-remove-projecttemplate-fk
Mar 4, 2026
Merged

chore: Remove project.template_id foreignkey#109879
markstory merged 2 commits into
masterfrom
chore-remove-projecttemplate-fk

Conversation

@markstory
Copy link
Copy Markdown
Member

I'd like to remove the ProjectTemplate models as we've never used them. Before the column and model can be dropped this foreign key needs to be removed.

I'd like to remove the ProjectTemplate models as we've never used them.
Before the column and model can be dropped this foreign key needs to be
removed.
@markstory markstory requested review from a team as code owners March 4, 2026 16:43
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

This PR has a migration; here is the generated SQL for src/sentry/migrations/1040_drop_fk_projecttemplate.py

for 1040_drop_fk_projecttemplate in sentry

--
-- Alter field template on project
--
SET CONSTRAINTS "sentry_project_template_id_67f0bec7_fk_sentry_pr" IMMEDIATE; ALTER TABLE "sentry_project" DROP CONSTRAINT "sentry_project_template_id_67f0bec7_fk_sentry_pr";
--
-- Moved project.template field to pending deletion state
--
-- (no-op)

@markstory markstory merged commit fbb5833 into master Mar 4, 2026
77 of 78 checks passed
@markstory markstory deleted the chore-remove-projecttemplate-fk branch March 4, 2026 17:11
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 20, 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

Development

Successfully merging this pull request may close these issues.

2 participants