Skip to content

ref(releases): safe remove new_group column from release model #88046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

michellewzhang
Copy link
Member

the new_groups field on the Release model was deprecated a long time ago:

# Deprecated, in favor of ReleaseProject new_groups field
new_groups = BoundedPositiveIntegerField(default=0)

@michellewzhang michellewzhang requested review from a team as code owners March 26, 2025 23:05
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 26, 2025
@michellewzhang michellewzhang force-pushed the mz/migrate-release-new-group-1 branch from 20faa96 to f6db937 Compare March 26, 2025 23:06
@michellewzhang michellewzhang requested review from wedamija, JoshFerge and a team March 26, 2025 23:07
Copy link
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/0851_new_group_nullable.py ()

--
-- Alter field new_groups on release
--
ALTER TABLE "sentry_release" ALTER COLUMN "new_groups" DROP NOT NULL;
--
-- Moved release.new_groups field to pending deletion state
--
-- (no-op)

@michellewzhang michellewzhang merged commit 22ccc46 into master Mar 27, 2025
48 checks passed
@michellewzhang michellewzhang deleted the mz/migrate-release-new-group-1 branch March 27, 2025 16:05
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2025
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.

3 participants