Files
zulip/zerver/migrations/0447_attachment_scheduled_messages_and_more.py
Mateusz Mandera 414658fc8e scheduled_message: Handle attachments properly.
Fixes #25414.

We add Attachment.scheduled_messages relation to track ScheduledMessages
which reference the attachment.

The import bits can be done after merging this, by updating #25345.
2023-05-08 09:56:02 -07:00

23 lines
643 B
Python

# Generated by Django 4.2 on 2023-05-06 23:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("zerver", "0446_realmauditlog_zerver_realmauditlog_user_subscriptions_idx"),
]
operations = [
migrations.AddField(
model_name="attachment",
name="scheduled_messages",
field=models.ManyToManyField(to="zerver.scheduledmessage"),
),
migrations.AddField(
model_name="scheduledmessage",
name="has_attachment",
field=models.BooleanField(db_index=True, default=False),
),
]