Files
zulip/zerver/migrations/0289_tighten_attachment_size.py
Tim Abbott f98d244ed6 models: Change attachment.size to not be nullable.
Attachment objects in production are only created in one place, which
passses a size.  Additionally, I verified in multiple production
environments with old data that this never actually happens (or has
happened).

So we should make the data model correctly reflect the possibilities here.
2020-06-20 13:15:02 -07:00

26 lines
632 B
Python

# Generated by Django 2.2.13 on 2020-06-20 19:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0288_reaction_unique_on_emoji_code'),
]
operations = [
migrations.AlterField(
model_name='archivedattachment',
name='size',
field=models.IntegerField(default=0),
preserve_default=False,
),
migrations.AlterField(
model_name='attachment',
name='size',
field=models.IntegerField(default=0),
preserve_default=False,
),
]