2019-05-29 16:01:34 +02:00
|
|
|
# Generated by Django 1.11.20 on 2019-05-29 13:57
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
|
|
|
import django.utils.timezone
|
2020-01-14 21:59:46 +01:00
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
2019-05-29 16:01:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0225_archived_reaction_model"),
|
2019-05-29 16:01:34 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="ArchivedSubMessage",
|
2019-05-29 16:01:34 +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
|
|
|
("msg_type", models.TextField()),
|
|
|
|
("content", models.TextField()),
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"archive_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
|
|
|
"message",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.ForeignKey(
|
2021-02-12 08:20:45 +01:00
|
|
|
on_delete=django.db.models.deletion.CASCADE, to="zerver.ArchivedMessage"
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"sender",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL
|
|
|
|
),
|
|
|
|
),
|
2019-05-29 16:01:34 +02:00
|
|
|
],
|
|
|
|
options={
|
2021-02-12 08:20:45 +01:00
|
|
|
"abstract": False,
|
2019-05-29 16:01:34 +02:00
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|