2017-11-16 00:55:49 +01:00
|
|
|
from django.db import migrations, models
|
2015-08-18 21:29:23 +02:00
|
|
|
|
2020-01-14 21:59:46 +01:00
|
|
|
|
2015-08-18 21:29:23 +02:00
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0001_initial"),
|
2015-08-18 21:29:23 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="Deployment",
|
2015-08-18 21:29:23 +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
|
|
|
verbose_name="ID", serialize=False, auto_created=True, primary_key=True
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
2021-02-12 08:20:45 +01:00
|
|
|
("is_active", models.BooleanField(default=True)),
|
|
|
|
("api_key", models.CharField(max_length=32, null=True)),
|
|
|
|
("base_api_url", models.CharField(max_length=128)),
|
|
|
|
("base_site_url", models.CharField(max_length=128)),
|
|
|
|
("realms", models.ManyToManyField(related_name="_deployments", to="zerver.Realm")),
|
2015-08-18 21:29:23 +02:00
|
|
|
],
|
2021-02-12 08:19:30 +01:00
|
|
|
options={},
|
2015-08-18 21:29:23 +02:00
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
]
|