2019-01-31 00:39:02 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.11.18 on 2019-02-02 06:02
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
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 = [
|
|
|
|
('zilencer', '0015_delete_billing'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='RemoteInstallationCount',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('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)),
|
|
|
|
('server', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='zilencer.RemoteZulipServer')),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='RemoteRealmCount',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('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)),
|
|
|
|
('server', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='zilencer.RemoteZulipServer')),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name='remoterealmcount',
|
|
|
|
unique_together=set([('server', 'realm_id', 'property', 'subgroup', 'end_time')]),
|
|
|
|
),
|
|
|
|
migrations.AlterIndexTogether(
|
|
|
|
name='remoterealmcount',
|
|
|
|
index_together=set([('property', 'end_time')]),
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name='remoteinstallationcount',
|
|
|
|
unique_together=set([('server', 'property', 'subgroup', 'end_time')]),
|
|
|
|
),
|
|
|
|
]
|