2020-02-29 22:48:15 +01:00
|
|
|
# Generated by Django 2.2.10 on 2020-02-29 19:40
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("analytics", "0015_clear_duplicate_counts"),
|
2020-02-29 22:48:15 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AlterUniqueTogether(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="installationcount",
|
2020-02-29 22:48:15 +01:00
|
|
|
unique_together=set(),
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="realmcount",
|
2020-02-29 22:48:15 +01:00
|
|
|
unique_together=set(),
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="streamcount",
|
2020-02-29 22:48:15 +01:00
|
|
|
unique_together=set(),
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="usercount",
|
2020-02-29 22:48:15 +01:00
|
|
|
unique_together=set(),
|
|
|
|
),
|
|
|
|
migrations.AddConstraint(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="installationcount",
|
2021-02-12 08:19:30 +01:00
|
|
|
constraint=models.UniqueConstraint(
|
|
|
|
condition=models.Q(subgroup__isnull=False),
|
2021-02-12 08:20:45 +01:00
|
|
|
fields=("property", "subgroup", "end_time"),
|
|
|
|
name="unique_installation_count",
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2020-02-29 22:48:15 +01:00
|
|
|
),
|
|
|
|
migrations.AddConstraint(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="installationcount",
|
2021-02-12 08:19:30 +01:00
|
|
|
constraint=models.UniqueConstraint(
|
|
|
|
condition=models.Q(subgroup__isnull=True),
|
2021-02-12 08:20:45 +01:00
|
|
|
fields=("property", "end_time"),
|
|
|
|
name="unique_installation_count_null_subgroup",
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2020-02-29 22:48:15 +01:00
|
|
|
),
|
|
|
|
migrations.AddConstraint(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="realmcount",
|
2021-02-12 08:19:30 +01:00
|
|
|
constraint=models.UniqueConstraint(
|
|
|
|
condition=models.Q(subgroup__isnull=False),
|
2021-02-12 08:20:45 +01:00
|
|
|
fields=("realm", "property", "subgroup", "end_time"),
|
|
|
|
name="unique_realm_count",
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2020-02-29 22:48:15 +01:00
|
|
|
),
|
|
|
|
migrations.AddConstraint(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="realmcount",
|
2021-02-12 08:19:30 +01:00
|
|
|
constraint=models.UniqueConstraint(
|
|
|
|
condition=models.Q(subgroup__isnull=True),
|
2021-02-12 08:20:45 +01:00
|
|
|
fields=("realm", "property", "end_time"),
|
|
|
|
name="unique_realm_count_null_subgroup",
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2020-02-29 22:48:15 +01:00
|
|
|
),
|
|
|
|
migrations.AddConstraint(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="streamcount",
|
2021-02-12 08:19:30 +01:00
|
|
|
constraint=models.UniqueConstraint(
|
|
|
|
condition=models.Q(subgroup__isnull=False),
|
2021-02-12 08:20:45 +01:00
|
|
|
fields=("stream", "property", "subgroup", "end_time"),
|
|
|
|
name="unique_stream_count",
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2020-02-29 22:48:15 +01:00
|
|
|
),
|
|
|
|
migrations.AddConstraint(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="streamcount",
|
2021-02-12 08:19:30 +01:00
|
|
|
constraint=models.UniqueConstraint(
|
|
|
|
condition=models.Q(subgroup__isnull=True),
|
2021-02-12 08:20:45 +01:00
|
|
|
fields=("stream", "property", "end_time"),
|
|
|
|
name="unique_stream_count_null_subgroup",
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2020-02-29 22:48:15 +01:00
|
|
|
),
|
|
|
|
migrations.AddConstraint(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="usercount",
|
2021-02-12 08:19:30 +01:00
|
|
|
constraint=models.UniqueConstraint(
|
|
|
|
condition=models.Q(subgroup__isnull=False),
|
2021-02-12 08:20:45 +01:00
|
|
|
fields=("user", "property", "subgroup", "end_time"),
|
|
|
|
name="unique_user_count",
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2020-02-29 22:48:15 +01:00
|
|
|
),
|
|
|
|
migrations.AddConstraint(
|
2021-02-12 08:20:45 +01:00
|
|
|
model_name="usercount",
|
2021-02-12 08:19:30 +01:00
|
|
|
constraint=models.UniqueConstraint(
|
|
|
|
condition=models.Q(subgroup__isnull=True),
|
2021-02-12 08:20:45 +01:00
|
|
|
fields=("user", "property", "end_time"),
|
|
|
|
name="unique_user_count_null_subgroup",
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2020-02-29 22:48:15 +01:00
|
|
|
),
|
|
|
|
]
|