: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(slack_app): drop the retired ai_preferences column (#100129)
Vojta Bartošbf10e790fb92
diff --git a/products/slack_app/backend/migrations/0018_drop_slacksettings_ai_preferences_column.py b/products/slack_app/backend/migrations/0018_drop_slacksettings_ai_preferences_column.pynew file mode 100644index 000000000000..3c059138f79b--- /dev/null+++ b/products/slack_app/backend/migrations/0018_drop_slacksettings_ai_preferences_column.py@@ -0,0 +1,17 @@+from django.db import migrations+++class Migration(migrations.Migration):+ dependencies = [+ ("slack_app", "0017_remove_slacksettings_ai_preferences"),+ ]++ # Phase 2 of the safe column drop, so that the state removal in 0017 can be+ # deployed before the column goes away. The reverse re-adds the column empty,+ # which lets the migration unapply but does not recover the dropped values.+ operations = [+ migrations.RunSQL(+ sql='ALTER TABLE "slack_app_slacksettings" DROP COLUMN IF EXISTS "ai_preferences";',+ reverse_sql='ALTER TABLE "slack_app_slacksettings" ADD COLUMN IF NOT EXISTS "ai_preferences" jsonb NULL;',+ ),+ ]diff --git a/products/slack_app/backend/migrations/max_migration.txt b/products/slack_app/backend/migrations/max_migration.txtindex 60bcbfddf7ee..e43c17c4a538 100644--- a/products/slack_app/backend/migrations/max_migration.txt+++ b/products/slack_app/backend/migrations/max_migration.txt@@ -1 +1 @@-0017_remove_slacksettings_ai_preferences+0018_drop_slacksettings_ai_preferences_column