From 4ab06b6e1a727b1262c62c6fc940431602da209c Mon Sep 17 00:00:00 2001 From: Scott Strong Date: Mon, 13 Jul 2026 10:23:01 -0700 Subject: [PATCH] actually drop ExternalActorReplica for realsies --- migrations_lockfile.txt | 2 +- .../0032_delete_externalactorreplica.py | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 src/sentry/hybridcloud/migrations/0032_delete_externalactorreplica.py diff --git a/migrations_lockfile.txt b/migrations_lockfile.txt index 4cee859b2c63..81c12239fb1f 100644 --- a/migrations_lockfile.txt +++ b/migrations_lockfile.txt @@ -13,7 +13,7 @@ feedback: 0007_cleanup_failed_safe_deletes flags: 0001_squashed_0004_add_flag_audit_log_provider_column -hybridcloud: 0031_remove_externalactorreplica_pending +hybridcloud: 0032_delete_externalactorreplica insights: 0001_squashed_0002_backfill_team_starred diff --git a/src/sentry/hybridcloud/migrations/0032_delete_externalactorreplica.py b/src/sentry/hybridcloud/migrations/0032_delete_externalactorreplica.py new file mode 100644 index 000000000000..4f88df7c4e0f --- /dev/null +++ b/src/sentry/hybridcloud/migrations/0032_delete_externalactorreplica.py @@ -0,0 +1,32 @@ +# Generated by Django 5.2.14 on 2026-07-13 17:02 + +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): + # This flag is used to mark that a migration shouldn't be automatically run in production. + # This should only be used for operations where it's safe to run the migration after your + # code has deployed. So this should not be used for most operations that alter the schema + # of a table. + # Here are some things that make sense to mark as post deployment: + # - Large data migrations. Typically we want these to be run manually so that they can be + # monitored and not block the deploy for a long period of time while they run. + # - Adding indexes to large tables. Since this can take a long time, we'd generally prefer to + # run this outside deployments so that we don't block them. Note that while adding an index + # is a schema change, it's completely safe to run the operation after the code has deployed. + # Once deployed, run these manually via: https://develop.sentry.dev/database-migrations/#migration-deployment + + is_post_deployment = False + + dependencies = [ + ("hybridcloud", "0031_remove_externalactorreplica_pending"), + ] + + operations = [ + SafeDeleteModel( + name="ExternalActorReplica", + deletion_action=DeletionAction.DELETE, + ), + ]