blob: 2ff76d4c3b24d426611e088ca9939204c954563b [file] [log] [blame]
Dirk Vogt1accb672017-05-10 14:07:42 +02001# -*- coding: utf-8 -*-
2# Generated by Django 1.10.2 on 2017-05-09 13:01
3from __future__ import unicode_literals
4
5from django.db import migrations, models
6import django.db.models.deletion
7
8from django.db import connection
9from datetime import date, timedelta
10
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +020011
Dirk Vogt1accb672017-05-10 14:07:42 +020012class Migration(migrations.Migration):
13
14 initial = True
15
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +020016 dependencies = []
Dirk Vogt1accb672017-05-10 14:07:42 +020017
18 operations = [
19 migrations.CreateModel(
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +020020 name="Version",
Dirk Vogt1accb672017-05-10 14:07:42 +020021 fields=[
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +020022 (
23 "id",
24 models.AutoField(
25 auto_created=True,
26 primary_key=True,
27 serialize=False,
28 verbose_name="ID",
29 ),
30 ),
31 (
32 "build_fingerprint",
33 models.CharField(max_length=200, unique=True),
34 ),
35 ("is_official_release", models.BooleanField(default=False)),
36 ("is_beta_release", models.BooleanField(default=False)),
37 ("first_seen_on", models.DateField()),
38 ("released_on", models.DateField()),
39 ("heartbeats", models.IntegerField()),
40 ("prob_crashes", models.IntegerField()),
41 ("smpl", models.IntegerField()),
42 ("other", models.IntegerField()),
Dirk Vogt1accb672017-05-10 14:07:42 +020043 ],
44 ),
45 migrations.CreateModel(
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +020046 name="VersionDaily",
Dirk Vogt1accb672017-05-10 14:07:42 +020047 fields=[
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +020048 (
49 "id",
50 models.AutoField(
51 auto_created=True,
52 primary_key=True,
53 serialize=False,
54 verbose_name="ID",
55 ),
56 ),
57 ("date", models.DateField()),
58 ("heartbeats", models.IntegerField()),
59 ("prob_crashes", models.IntegerField()),
60 ("smpl", models.IntegerField()),
61 ("other", models.IntegerField()),
62 (
63 "version",
64 models.ForeignKey(
65 on_delete=django.db.models.deletion.CASCADE,
66 related_name="daily_stats",
67 to="crashreport_stats.Version",
68 ),
69 ),
Dirk Vogt1accb672017-05-10 14:07:42 +020070 ],
71 ),
72 ]