2019-01-31 00:39:02 +01:00
|
|
|
# Generated by Django 1.11.18 on 2019-02-02 06:02
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
2020-01-14 21:59:46 +01:00
|
|
|
from django.db import migrations, models
|
2019-01-31 00:39:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zilencer", "0015_delete_billing"),
|
2019-01-31 00:39:02 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="RemoteInstallationCount",
|
2019-01-31 00:39:02 +01: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
|
|
|
("property", models.CharField(max_length=32)),
|
|
|
|
("subgroup", models.CharField(max_length=16, null=True)),
|
|
|
|
("end_time", models.DateTimeField()),
|
|
|
|
("value", models.BigIntegerField()),
|
|
|
|
("remote_id", models.IntegerField(db_index=True)),
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"server",
|
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="zilencer.RemoteZulipServer"
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
2019-01-31 00:39:02 +01:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="RemoteRealmCount",
|
2019-01-31 00:39:02 +01: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
|
|
|
("property", models.CharField(max_length=32)),
|
|
|
|
("subgroup", models.CharField(max_length=16, null=True)),
|
|
|
|
("end_time", models.DateTimeField()),
|
|
|
|
("value", models.BigIntegerField()),
|
|
|
|
("realm_id", models.IntegerField(db_index=True)),
|
|
|
|
("remote_id", models.IntegerField(db_index=True)),
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"server",
|
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="zilencer.RemoteZulipServer"
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
2019-01-31 00:39:02 +01:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="remoterealmcount",
|
|
|
|
unique_together={("server", "realm_id", "property", "subgroup", "end_time")},
|
2019-01-31 00:39:02 +01:00
|
|
|
),
|
|
|
|
migrations.AlterIndexTogether(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="remoterealmcount",
|
|
|
|
index_together={("property", "end_time")},
|
2019-01-31 00:39:02 +01:00
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="remoteinstallationcount",
|
|
|
|
unique_together={("server", "property", "subgroup", "end_time")},
|
2019-01-31 00:39:02 +01:00
|
|
|
),
|
|
|
|
]
|