Skip to content

Commit 8d2a7f1

Browse files
committed
feat(surveys): add index for linked_insight_id
1 parent d2d3fa8 commit 8d2a7f1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by Django 4.2.26 on 2025-11-18 16:03
2+
3+
from django.db import migrations
4+
5+
6+
# see 0415_pluginconfig_match_action.py
7+
class Migration(migrations.Migration):
8+
atomic = False # Added to support concurrent index creation
9+
dependencies = [
10+
("posthog", "0905_survey_add_linked_insight"),
11+
]
12+
13+
operations = [
14+
migrations.RunSQL(
15+
"""
16+
CREATE INDEX CONCURRENTLY IF NOT EXISTS "posthog_survey_linked_insight_id_586524f3" ON "posthog_survey" ("linked_insight_id");
17+
""",
18+
reverse_sql="""
19+
DROP INDEX IF EXISTS "posthog_survey_linked_insight_id_586524f3";
20+
""",
21+
),
22+
]

0 commit comments

Comments
 (0)