2019-06-18 19:54:09 +02:00
|
|
|
# Generated by Django 1.11.20 on 2019-06-23 21:20
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
|
|
|
import django.utils.timezone
|
2020-01-14 21:59:46 +01:00
|
|
|
from django.db import migrations, models
|
2019-06-18 19:54:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('zerver', '0230_rename_to_enable_stream_audible_notifications'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='ArchiveTransaction',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)),
|
|
|
|
('restored', models.BooleanField(db_index=True, default=False)),
|
|
|
|
('type', models.PositiveSmallIntegerField(db_index=True)),
|
|
|
|
('realm', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='zerver.Realm')),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='archivedattachment',
|
|
|
|
name='archive_timestamp',
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='archivedmessage',
|
|
|
|
name='archive_timestamp',
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='archivedreaction',
|
|
|
|
name='archive_timestamp',
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='archivedsubmessage',
|
|
|
|
name='archive_timestamp',
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name='archivedusermessage',
|
|
|
|
name='archive_timestamp',
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='archivedmessage',
|
|
|
|
name='archive_transaction',
|
|
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='zerver.ArchiveTransaction'),
|
|
|
|
),
|
|
|
|
]
|