Add in_reply_to index
This commit is contained in:
parent
bd6d1ae8de
commit
afc94f6313
|
@ -0,0 +1,20 @@
|
||||||
|
# Generated by Django 4.1.4 on 2023-03-05 17:33
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("activities", "0011_postinteraction_value_alter_postinteraction_type"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="post",
|
||||||
|
name="in_reply_to",
|
||||||
|
field=models.CharField(
|
||||||
|
blank=True, db_index=True, max_length=500, null=True
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
|
@ -269,7 +269,7 @@ class Post(StatorModel):
|
||||||
|
|
||||||
# The Post it is replying to as an AP ID URI
|
# The Post it is replying to as an AP ID URI
|
||||||
# (as otherwise we'd have to pull entire threads to use IDs)
|
# (as otherwise we'd have to pull entire threads to use IDs)
|
||||||
in_reply_to = models.CharField(max_length=500, blank=True, null=True)
|
in_reply_to = models.CharField(max_length=500, blank=True, null=True, db_index=True)
|
||||||
|
|
||||||
# The identities the post is directly to (who can see it if not public)
|
# The identities the post is directly to (who can see it if not public)
|
||||||
to = models.ManyToManyField(
|
to = models.ManyToManyField(
|
||||||
|
|
Loading…
Reference in New Issue