Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(signals): drop retired scout emission weight and confidence columns (#114862)

posthog[bot]d2d54633a67e
diff --git a/products/signals/backend/migrations/0171_drop_signalscoutemission_weight_confidence.py b/products/signals/backend/migrations/0171_drop_signalscoutemission_weight_confidence.py
new file mode 100644
index 000000000000..87750988ad66
--- /dev/null
+++ b/products/signals/backend/migrations/0171_drop_signalscoutemission_weight_confidence.py
@@ -0,0 +1,16 @@
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("signals", "0170_signalscoutconfig_lifecycle_locked"),
+ ]
+
+ operations = [
+ # Phase 3: 0142 and 0145 removed both fields from model state, and that release has run for
+ # more than one deploy cycle, so no running code names either column.
+ migrations.RunSQL(
+ sql="ALTER TABLE signals_signalscoutemission DROP COLUMN IF EXISTS weight, DROP COLUMN IF EXISTS confidence;",
+ reverse_sql="ALTER TABLE signals_signalscoutemission ADD COLUMN IF NOT EXISTS weight double precision NULL, ADD COLUMN IF NOT EXISTS confidence double precision NULL;",
+ ),
+ ]
diff --git a/products/signals/backend/migrations/max_migration.txt b/products/signals/backend/migrations/max_migration.txt
index c68715458e59..a52388970b6c 100644
--- a/products/signals/backend/migrations/max_migration.txt
+++ b/products/signals/backend/migrations/max_migration.txt
@@ -1 +1 @@
-0170_signalscoutconfig_lifecycle_locked
+0171_drop_signalscoutemission_weight_confidence