Skip to content

fix(snuba): Migration to remove QuerySubscription.time_window column#114403

Merged
kcons merged 2 commits intomasterfrom
kcons/oldmig
Apr 30, 2026
Merged

fix(snuba): Migration to remove QuerySubscription.time_window column#114403
kcons merged 2 commits intomasterfrom
kcons/oldmig

Conversation

@kcons
Copy link
Copy Markdown
Member

@kcons kcons commented Apr 30, 2026

The column has been gone from the schema for 6 years, time to remove it from the table too.

@kcons kcons requested a review from a team as a code owner April 30, 2026 02:32
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 30, 2026
@kcons kcons enabled auto-merge (squash) April 30, 2026 18:18
@github-actions
Copy link
Copy Markdown
Contributor

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

for 1078_drop_querysubscription_time_window in sentry

--
-- Raw SQL operation
--

            ALTER TABLE "sentry_querysubscription" DROP COLUMN IF EXISTS "time_window";

@kcons kcons merged commit bc1051d into master Apr 30, 2026
81 checks passed
@kcons kcons deleted the kcons/oldmig branch April 30, 2026 19:46
cleptric pushed a commit that referenced this pull request May 5, 2026
…114403)

The column has been gone from the schema for 6 years, time to remove it
from the table too.
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

Development

Successfully merging this pull request may close these issues.

2 participants