Skip to content

ref(dashboards): Drop DashboardTombstone table#114267

Draft
gggritso wants to merge 1 commit intogeorgegritsouk/dain-1567-move-to-pending-dashboardtombstonefrom
georgegritsouk/dain-1567-delete-dashboardtombstone
Draft

ref(dashboards): Drop DashboardTombstone table#114267
gggritso wants to merge 1 commit intogeorgegritsouk/dain-1567-move-to-pending-dashboardtombstonefrom
georgegritsouk/dain-1567-delete-dashboardtombstone

Conversation

@gggritso
Copy link
Copy Markdown
Member

@gggritso gggritso commented Apr 29, 2026

Drop the sentry_dashboardtombstone table from PostgreSQL via
SafeDeleteModel(DELETE).

Do not merge this until #114266 has been deployed and verified in production.

PR Stack

  1. ref(dashboards): Remove DashboardTombstone model #114265 — Remove model class and code references
  2. ref(dashboards): Add MOVE_TO_PENDING migration for DashboardTombstone #114266MOVE_TO_PENDING migration
  3. ref(dashboards): Drop DashboardTombstone table #114267 ← this PRDELETE migration (deploy after ref(dashboards): Add MOVE_TO_PENDING migration for DashboardTombstone #114266)

Refs DAIN-1567

Delete the sentry_dashboardtombstone table from PostgreSQL. The model
was moved to pending deletion in the previous migration.

Refs DAIN-1567
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Apr 29, 2026

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/1074_remove_dashboardtombstone.py src/sentry/migrations/1075_delete_dashboardtombstone.py

for 1074_remove_dashboardtombstone in sentry

--
-- Alter field organization on dashboardtombstone
--
SET CONSTRAINTS "sentry_dashboardtomb_organization_id_fa5fbf63_fk_sentry_or" IMMEDIATE; ALTER TABLE "sentry_dashboardtombstone" DROP CONSTRAINT "sentry_dashboardtomb_organization_id_fa5fbf63_fk_sentry_or";
--
-- Moved model DashboardTombstone to pending deletion state
--
-- (no-op)

for 1075_delete_dashboardtombstone in sentry

--
-- Delete model DashboardTombstone
--
DROP TABLE "sentry_dashboardtombstone" CASCADE;

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.

1 participant