: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(experiments): drop the legacy recalculation time column (#115395)
Juraj Majerik9469d92f85ef
diff --git a/products/experiments/backend/migrations/0047_drop_legacy_recalculation_time_column.py b/products/experiments/backend/migrations/0047_drop_legacy_recalculation_time_column.pynew file mode 100644index 000000000000..cf4eb9384082--- /dev/null+++ b/products/experiments/backend/migrations/0047_drop_legacy_recalculation_time_column.py@@ -0,0 +1,14 @@+from django.db import migrations+++class Migration(migrations.Migration):+ dependencies = [("experiments", "0046_untrack_legacy_recalculation_time")]++ operations = [+ # Phase 2 of retiring the legacy single-time column. 0046 removed the field from+ # model state one deploy cycle ago, so no running pod names the column any more.+ migrations.RunSQL(+ sql='ALTER TABLE "experiments_teamexperimentsconfig" DROP COLUMN IF EXISTS "experiment_recalculation_time";',+ reverse_sql='ALTER TABLE "experiments_teamexperimentsconfig" ADD COLUMN IF NOT EXISTS "experiment_recalculation_time" time NULL;',+ ),+ ]diff --git a/products/experiments/backend/migrations/max_migration.txt b/products/experiments/backend/migrations/max_migration.txtindex 8d985d32bff5..ef207206abcf 100644--- a/products/experiments/backend/migrations/max_migration.txt+++ b/products/experiments/backend/migrations/max_migration.txt@@ -1 +1 @@-0046_untrack_legacy_recalculation_time+0047_drop_legacy_recalculation_time_column