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 = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0230_rename_to_enable_stream_audible_notifications"),
|
2019-06-18 19:54:09 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="ArchiveTransaction",
|
2019-06-18 19:54:09 +02:00
|
|
|
fields=[
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"id",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.AutoField(
|
2021-02-12 08:20:45 +01:00
|
|
|
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"timestamp",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.DateTimeField(db_index=True, default=django.utils.timezone.now),
|
|
|
|
),
|
2021-02-12 08:20:45 +01:00
|
|
|
("restored", models.BooleanField(db_index=True, default=False)),
|
|
|
|
("type", models.PositiveSmallIntegerField(db_index=True)),
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"realm",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.ForeignKey(
|
2021-02-12 08:20:45 +01:00
|
|
|
null=True, on_delete=django.db.models.deletion.CASCADE, to="zerver.Realm"
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
2019-06-18 19:54:09 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="archivedattachment",
|
|
|
|
name="archive_timestamp",
|
2019-06-18 19:54:09 +02:00
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="archivedmessage",
|
|
|
|
name="archive_timestamp",
|
2019-06-18 19:54:09 +02:00
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="archivedreaction",
|
|
|
|
name="archive_timestamp",
|
2019-06-18 19:54:09 +02:00
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="archivedsubmessage",
|
|
|
|
name="archive_timestamp",
|
2019-06-18 19:54:09 +02:00
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="archivedusermessage",
|
|
|
|
name="archive_timestamp",
|
2019-06-18 19:54:09 +02:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="archivedmessage",
|
|
|
|
name="archive_transaction",
|
2021-02-12 08:19:30 +01:00
|
|
|
field=models.ForeignKey(
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2021-02-12 08:20:45 +01:00
|
|
|
to="zerver.ArchiveTransaction",
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2019-06-18 19:54:09 +02:00
|
|
|
),
|
|
|
|
]
|