1# -*- coding: utf-8 -*-
2from __future__ import unicode_literals
3
4from django.db import migrations, models
5
6
7class Migration(migrations.Migration):
8
9    dependencies = [
10        ('orm', '0001_initial'),
11    ]
12
13    operations = [
14        migrations.CreateModel(
15            name='BRBitbake',
16            fields=[
17                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18                ('giturl', models.CharField(max_length=254)),
19                ('commit', models.CharField(max_length=254)),
20                ('dirpath', models.CharField(max_length=254)),
21            ],
22        ),
23        migrations.CreateModel(
24            name='BRError',
25            fields=[
26                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
27                ('errtype', models.CharField(max_length=100)),
28                ('errmsg', models.TextField()),
29                ('traceback', models.TextField()),
30            ],
31        ),
32        migrations.CreateModel(
33            name='BRLayer',
34            fields=[
35                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
36                ('name', models.CharField(max_length=100)),
37                ('giturl', models.CharField(max_length=254)),
38                ('commit', models.CharField(max_length=254)),
39                ('dirpath', models.CharField(max_length=254)),
40                ('layer_version', models.ForeignKey(to='orm.Layer_Version', null=True)),
41            ],
42        ),
43        migrations.CreateModel(
44            name='BRTarget',
45            fields=[
46                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
47                ('target', models.CharField(max_length=100)),
48                ('task', models.CharField(max_length=100, null=True)),
49            ],
50        ),
51        migrations.CreateModel(
52            name='BRVariable',
53            fields=[
54                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
55                ('name', models.CharField(max_length=100)),
56                ('value', models.TextField(blank=True)),
57            ],
58        ),
59        migrations.CreateModel(
60            name='BuildEnvironment',
61            fields=[
62                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
63                ('address', models.CharField(max_length=254)),
64                ('betype', models.IntegerField(choices=[(0, b'local'), (1, b'ssh')])),
65                ('bbaddress', models.CharField(max_length=254, blank=True)),
66                ('bbport', models.IntegerField(default=-1)),
67                ('bbtoken', models.CharField(max_length=126, blank=True)),
68                ('bbstate', models.IntegerField(default=0, choices=[(0, b'stopped'), (1, b'started')])),
69                ('sourcedir', models.CharField(max_length=512, blank=True)),
70                ('builddir', models.CharField(max_length=512, blank=True)),
71                ('lock', models.IntegerField(default=0, choices=[(0, b'free'), (1, b'lock'), (2, b'running')])),
72                ('created', models.DateTimeField(auto_now_add=True)),
73                ('updated', models.DateTimeField(auto_now=True)),
74            ],
75        ),
76        migrations.CreateModel(
77            name='BuildRequest',
78            fields=[
79                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
80                ('state', models.IntegerField(default=0, choices=[(0, b'created'), (1, b'queued'), (2, b'in progress'), (3, b'completed'), (4, b'failed'), (5, b'deleted'), (6, b'archive')])),
81                ('created', models.DateTimeField(auto_now_add=True)),
82                ('updated', models.DateTimeField(auto_now=True)),
83                ('build', models.OneToOneField(null=True, to='orm.Build')),
84                ('environment', models.ForeignKey(to='bldcontrol.BuildEnvironment', null=True)),
85                ('project', models.ForeignKey(to='orm.Project')),
86            ],
87        ),
88        migrations.AddField(
89            model_name='brvariable',
90            name='req',
91            field=models.ForeignKey(to='bldcontrol.BuildRequest'),
92        ),
93        migrations.AddField(
94            model_name='brtarget',
95            name='req',
96            field=models.ForeignKey(to='bldcontrol.BuildRequest'),
97        ),
98        migrations.AddField(
99            model_name='brlayer',
100            name='req',
101            field=models.ForeignKey(to='bldcontrol.BuildRequest'),
102        ),
103        migrations.AddField(
104            model_name='brerror',
105            name='req',
106            field=models.ForeignKey(to='bldcontrol.BuildRequest'),
107        ),
108        migrations.AddField(
109            model_name='brbitbake',
110            name='req',
111            field=models.OneToOneField(to='bldcontrol.BuildRequest'),
112        ),
113    ]
114