mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
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
26 lines
672 B
Python
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'),
|
|
),
|
|
]
|