2017-10-12 19:35:14 +02:00
|
|
|
# Generated by Django 1.11.5 on 2017-10-14 15:12
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
2017-11-16 00:44:00 +01:00
|
|
|
from django.db import migrations, models
|
2017-10-12 19:35:14 +02:00
|
|
|
|
2020-01-14 21:59:46 +01:00
|
|
|
|
2017-10-12 19:35:14 +02:00
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0112_index_muted_topics"),
|
2017-10-12 19:35:14 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="DefaultStreamGroup",
|
2017-10-12 19:35:14 +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
|
|
|
("name", models.CharField(db_index=True, max_length=60)),
|
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
|
|
|
on_delete=django.db.models.deletion.CASCADE, to="zerver.Realm"
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
2021-02-12 08:20:45 +01:00
|
|
|
("streams", models.ManyToManyField(to="zerver.Stream")),
|
2017-10-12 19:35:14 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="defaultstreamgroup",
|
|
|
|
unique_together={("realm", "name")},
|
2017-10-12 19:35:14 +02:00
|
|
|
),
|
|
|
|
]
|