zulip/zerver/migrations/0113_default_stream_group.py

38 lines
1.1 KiB
Python
Raw Normal View History

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
from django.db import migrations, models
2017-10-12 19:35:14 +02:00
2017-10-12 19:35:14 +02:00
class Migration(migrations.Migration):
dependencies = [
("zerver", "0112_index_muted_topics"),
2017-10-12 19:35:14 +02:00
]
operations = [
migrations.CreateModel(
name="DefaultStreamGroup",
2017-10-12 19:35:14 +02:00
fields=[
(
"id",
models.AutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
("name", models.CharField(db_index=True, max_length=60)),
(
"realm",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="zerver.Realm"
),
),
("streams", models.ManyToManyField(to="zerver.Stream")),
2017-10-12 19:35:14 +02:00
],
),
migrations.AlterUniqueTogether(
name="defaultstreamgroup",
unique_together={("realm", "name")},
2017-10-12 19:35:14 +02:00
),
]