mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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.
23 lines
643 B
Python
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),
|
|
),
|
|
]
|