|
1 | 1 | # Generated by Django 4.2.22 on 2025-09-29 15:36 |
2 | 2 |
|
3 | 3 | from django.db import migrations, models |
| 4 | +from django.contrib.postgres.operations import AddIndexConcurrently |
4 | 5 |
|
5 | 6 |
|
6 | 7 | class Migration(migrations.Migration): |
| 8 | + atomic = False |
7 | 9 |
|
8 | 10 | dependencies = [ |
9 | 11 | ('db', '0107_migrate_filters_to_rich_filters'), |
10 | 12 | ] |
11 | 13 |
|
12 | 14 | operations = [ |
13 | | - migrations.AddIndex( |
| 15 | + AddIndexConcurrently( |
14 | 16 | model_name='notification', |
15 | 17 | index=models.Index(fields=['receiver', 'workspace', 'read_at', 'created_at'], name='notif_receiver_status_idx'), |
16 | 18 | ), |
17 | | - migrations.AddIndex( |
| 19 | + AddIndexConcurrently( |
18 | 20 | model_name='notification', |
19 | 21 | index=models.Index(fields=['receiver', 'workspace', 'entity_name', 'read_at'], name='notif_receiver_entity_idx'), |
20 | 22 | ), |
21 | | - migrations.AddIndex( |
| 23 | + AddIndexConcurrently( |
22 | 24 | model_name='notification', |
23 | 25 | index=models.Index(fields=['receiver', 'workspace', 'snoozed_till', 'archived_at'], name='notif_receiver_state_idx'), |
24 | 26 | ), |
25 | | - migrations.AddIndex( |
| 27 | + AddIndexConcurrently( |
26 | 28 | model_name='notification', |
27 | 29 | index=models.Index(fields=['receiver', 'workspace', 'sender'], name='notif_receiver_sender_idx'), |
28 | 30 | ), |
29 | | - migrations.AddIndex( |
| 31 | + AddIndexConcurrently( |
30 | 32 | model_name='notification', |
31 | 33 | index=models.Index(fields=['workspace', 'entity_identifier', 'entity_name'], name='notif_entity_lookup_idx'), |
32 | 34 | ), |
|
0 commit comments