Skip to content

Commit 3e27e55

Browse files
committed
dev: updated migration file with AddIndexConcurrently
1 parent 339d584 commit 3e27e55

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

apps/api/plane/db/migrations/0108_notification_notif_receiver_status_idx_and_more.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
11
# Generated by Django 4.2.22 on 2025-09-29 15:36
22

33
from django.db import migrations, models
4+
from django.contrib.postgres.operations import AddIndexConcurrently
45

56

67
class Migration(migrations.Migration):
8+
atomic = False
79

810
dependencies = [
911
('db', '0107_migrate_filters_to_rich_filters'),
1012
]
1113

1214
operations = [
13-
migrations.AddIndex(
15+
AddIndexConcurrently(
1416
model_name='notification',
1517
index=models.Index(fields=['receiver', 'workspace', 'read_at', 'created_at'], name='notif_receiver_status_idx'),
1618
),
17-
migrations.AddIndex(
19+
AddIndexConcurrently(
1820
model_name='notification',
1921
index=models.Index(fields=['receiver', 'workspace', 'entity_name', 'read_at'], name='notif_receiver_entity_idx'),
2022
),
21-
migrations.AddIndex(
23+
AddIndexConcurrently(
2224
model_name='notification',
2325
index=models.Index(fields=['receiver', 'workspace', 'snoozed_till', 'archived_at'], name='notif_receiver_state_idx'),
2426
),
25-
migrations.AddIndex(
27+
AddIndexConcurrently(
2628
model_name='notification',
2729
index=models.Index(fields=['receiver', 'workspace', 'sender'], name='notif_receiver_sender_idx'),
2830
),
29-
migrations.AddIndex(
31+
AddIndexConcurrently(
3032
model_name='notification',
3133
index=models.Index(fields=['workspace', 'entity_identifier', 'entity_name'], name='notif_entity_lookup_idx'),
3234
),

0 commit comments

Comments
 (0)