: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(alerts): drop dead is_calculating column (phase 2) (#59177)
Vasco de Krijger98ca4d330289
diff --git a/posthog/migrations/1175_drop_alertconfiguration_is_calculating_column.py b/posthog/migrations/1175_drop_alertconfiguration_is_calculating_column.pynew file mode 100644index 000000000000..30e517b852b8--- /dev/null+++ b/posthog/migrations/1175_drop_alertconfiguration_is_calculating_column.py@@ -0,0 +1,21 @@+from django.db import migrations+++class Migration(migrations.Migration):+ """+ Phase 2 of 2: Drop the is_calculating column from posthog_alertconfiguration.++ The field was removed from Django state in the phase-1+ ``remove_alertconfiguration_is_calculating`` migration. This migration drops+ the physical column. Safe to deploy once that migration has rolled out+ everywhere — any old code still reading the column would have failed by then.+ """++ dependencies = [("posthog", "1174_taggeditem_account_unique_constraint")]++ operations = [+ migrations.RunSQL(+ sql="ALTER TABLE posthog_alertconfiguration DROP COLUMN IF EXISTS is_calculating;",+ reverse_sql="ALTER TABLE posthog_alertconfiguration ADD COLUMN IF NOT EXISTS is_calculating boolean DEFAULT false;",+ ),+ ]diff --git a/posthog/migrations/max_migration.txt b/posthog/migrations/max_migration.txtindex afcf22beea36..8581b368b8b6 100644--- a/posthog/migrations/max_migration.txt+++ b/posthog/migrations/max_migration.txt@@ -1 +1 @@-1174_taggeditem_account_unique_constraint+1175_drop_alertconfiguration_is_calculating_column