Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion migrations_lockfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ replays: 0007_organizationmember_replay_access

seer: 0010_drop_legacy_columns

sentry: 1083_remove_dashboardlastvisited
sentry: 1084_delete_dashboardlastvisited

social_auth: 0003_social_auth_json_field

Expand Down
1 change: 1 addition & 0 deletions src/sentry/db/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class SiloRouter:
"sentry_code_review_event": SiloMode.CELL,
"sentry_customdynamicsamplingrule": SiloMode.CELL,
"sentry_customdynamicsamplingruleproject": SiloMode.CELL,
"sentry_dashboardlastvisited": SiloMode.CELL,
"sentry_dashboardtombstone": SiloMode.CELL,
"sentry_dashboardwidgetsnapshot": SiloMode.CELL,
"sentry_datasecrecywaiver": SiloMode.CELL,
Expand Down
18 changes: 18 additions & 0 deletions src/sentry/migrations/1084_delete_dashboardlastvisited.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from sentry.new_migrations.migrations import CheckedMigration
from sentry.new_migrations.monkey.models import SafeDeleteModel
from sentry.new_migrations.monkey.state import DeletionAction


class Migration(CheckedMigration):
is_post_deployment = False

dependencies = [
("sentry", "1083_remove_dashboardlastvisited"),
]

operations = [
SafeDeleteModel(
name="DashboardLastVisited",
deletion_action=DeletionAction.DELETE,
),
]
Loading