Add timelineevent.created index
This commit is contained in:
parent
76076e3387
commit
1ffcd5e6d1
|
@ -0,0 +1,22 @@
|
||||||
|
# Generated by Django 4.1.4 on 2023-01-14 19:01
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("users", "0011_announcement"),
|
||||||
|
("activities", "0008_state_and_post_indexes"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterIndexTogether(
|
||||||
|
name="timelineevent",
|
||||||
|
index_together={
|
||||||
|
("identity", "type", "subject_post", "subject_identity"),
|
||||||
|
("identity", "type", "subject_identity"),
|
||||||
|
("identity", "created"),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
|
@ -62,6 +62,7 @@ class TimelineEvent(models.Model):
|
||||||
# This relies on a DB that can use left subsets of indexes
|
# This relies on a DB that can use left subsets of indexes
|
||||||
("identity", "type", "subject_post", "subject_identity"),
|
("identity", "type", "subject_post", "subject_identity"),
|
||||||
("identity", "type", "subject_identity"),
|
("identity", "type", "subject_identity"),
|
||||||
|
("identity", "created"),
|
||||||
]
|
]
|
||||||
|
|
||||||
### Alternate constructors ###
|
### Alternate constructors ###
|
||||||
|
|
Loading…
Reference in New Issue