# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-28 16:28
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('build', '0002_auto_20161128_1518'),
    ]

    operations = [
        migrations.CreateModel(
            name='BuildFlows',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('status', models.CharField(choices=[('queued', 'Queued'), ('running', 'Running'), ('success', 'Success'), ('error', 'Error'), ('fail', 'Failed')], default='queued', max_length=16)),
                ('flow', models.CharField(blank=True, max_length=255, null=True)),
                ('log', models.TextField(blank=True, null=True)),
                ('time_queue', models.DateTimeField(auto_now_add=True)),
                ('time_start', models.DateTimeField(blank=True, null=True)),
                ('time_end', models.DateTimeField(blank=True, null=True)),
            ],
        ),
        migrations.AddField(
            model_name='build',
            name='current_flow_index',
            field=models.IntegerField(default=0),
        ),
        migrations.AlterField(
            model_name='build',
            name='status',
            field=models.CharField(choices=[('queued', 'Queued'), ('running', 'Running'), ('success', 'Success'), ('error', 'Error'), ('fail', 'Failed')], default='queued', max_length=16),
        ),
        migrations.AddField(
            model_name='buildflows',
            name='build',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='steps', to='build.Build'),
        ),
    ]
