blob: 7a2935133608893c316699fa5b785403a3df6a09 [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
Mitja Nikolaus6a679132018-08-30 14:35:29 +02003"""Initial database migration."""
Dirk Vogt1accb672017-05-10 14:07:42 +02004from __future__ import unicode_literals
5
6from django.db import migrations, models
7import django.db.models.deletion
8
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +02009
Dirk Vogt1accb672017-05-10 14:07:42 +020010class Migration(migrations.Migration):
Mitja Nikolaus6a679132018-08-30 14:35:29 +020011 """Set up the initial database."""
Dirk Vogt1accb672017-05-10 14:07:42 +020012
13 initial = True
14
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +020015 dependencies = []
Dirk Vogt1accb672017-05-10 14:07:42 +020016
17 operations = [
18 migrations.CreateModel(
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +020019 name="Version",
Dirk Vogt1accb672017-05-10 14:07:42 +020020 fields=[
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +020021 (
22 "id",
23 models.AutoField(
24 auto_created=True,
25 primary_key=True,
26 serialize=False,
27 verbose_name="ID",
28 ),
29 ),
30 (
31 "build_fingerprint",
32 models.CharField(max_length=200, unique=True),
33 ),
34 ("is_official_release", models.BooleanField(default=False)),
35 ("is_beta_release", models.BooleanField(default=False)),
36 ("first_seen_on", models.DateField()),
37 ("released_on", models.DateField()),
38 ("heartbeats", models.IntegerField()),
39 ("prob_crashes", models.IntegerField()),
40 ("smpl", models.IntegerField()),
41 ("other", models.IntegerField()),
Dirk Vogt1accb672017-05-10 14:07:42 +020042 ],
43 ),
44 migrations.CreateModel(
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +020045 name="VersionDaily",
Dirk Vogt1accb672017-05-10 14:07:42 +020046 fields=[
Mitja Nikolauscb50f2c2018-08-24 13:54:48 +020047 (
48 "id",
49 models.AutoField(
50 auto_created=True,
51 primary_key=True,
52 serialize=False,
53 verbose_name="ID",
54 ),
55 ),
56 ("date", models.DateField()),
57 ("heartbeats", models.IntegerField()),
58 ("prob_crashes", models.IntegerField()),
59 ("smpl", models.IntegerField()),
60 ("other", models.IntegerField()),
61 (
62 "version",
63 models.ForeignKey(
64 on_delete=django.db.models.deletion.CASCADE,
65 related_name="daily_stats",
66 to="crashreport_stats.Version",
67 ),
68 ),
Dirk Vogt1accb672017-05-10 14:07:42 +020069 ],
70 ),
71 ]