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(oauth): drop the orphaned CIMD blocklist table (#93787)

Matt Brooker9797a242f925
diff --git a/posthog/migrations/1342_drop_cimd_blocklist_table.py b/posthog/migrations/1342_drop_cimd_blocklist_table.py
new file mode 100644
index 000000000000..ffe4acf3f045
--- /dev/null
+++ b/posthog/migrations/1342_drop_cimd_blocklist_table.py
@@ -0,0 +1,18 @@
+# Generated by Django 5.2.17 on 2026-09-02 20:32
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+ dependencies = [("posthog", "1341_organization_uses_most_specific_access_resolution")]
+
+ operations = [
+ # Safe only once 1334's state-only removal has rolled out everywhere. reverse_sql is a
+ # no-op rather than absent: BaseTestMigrations (posthog/test/base.py) reverses the whole
+ # chain to reach an arbitrary earlier migration in tests, and an irreversible operation
+ # here breaks every such test that walks history past this point.
+ migrations.RunSQL(
+ sql="DROP TABLE IF EXISTS posthog_cimdblocklistentry;",
+ reverse_sql=migrations.RunSQL.noop,
+ ),
+ ]
diff --git a/posthog/migrations/max_migration.txt b/posthog/migrations/max_migration.txt
index 3dd977cadef6..e30a1468d400 100644
--- a/posthog/migrations/max_migration.txt
+++ b/posthog/migrations/max_migration.txt
@@ -1 +1 @@
-1341_organization_uses_most_specific_access_resolution
+1342_drop_cimd_blocklist_table