Files
zulip/zerver/migrations/0243_message_add_date_sent_column.py
Mateusz Mandera f198475281 models: Migration of Message.pub_date to date_sent, part 1.
1. Apply migration 0243 to add date_sent column.
2. Apply migration 0244 to copy pub_date over to date_sent. Can be done
with the server running.
3. With the server down (for consistency between memory and
database state of Django objects), verify consistency with
Message.objects.exclude(date_sent=F("pub_date")).count() == 0
2019-10-05 19:01:34 -07:00

26 lines
672 B
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-08-28 00:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0242_fix_bot_email_property'),
]
operations = [
migrations.AddField(
model_name='archivedmessage',
name='date_sent',
field=models.DateTimeField(null=True, verbose_name='date sent'),
),
migrations.AddField(
model_name='message',
name='date_sent',
field=models.DateTimeField(null=True, verbose_name='date sent'),
),
]