# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import wooey.models.mixins


class Migration(migrations.Migration):

    dependencies = [
        ('wooey', '0008_short_param_admin'),
    ]

    operations = [
        migrations.CreateModel(
            name='ScriptVersion',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('script_version', models.CharField(default='1', help_text='The script version.', max_length=50, blank=True)),
                ('script_iteration', models.PositiveSmallIntegerField(default=1)),
                ('script_path', models.FileField(upload_to=b'')),
                ('default_version', models.BooleanField(default=False)),
                ('created_date', models.DateTimeField(auto_now_add=True)),
                ('modified_date', models.DateTimeField(auto_now=True)),
                ('script', models.ForeignKey(related_name='script_version_new', to='wooey.Script')),
            ],
            bases=(wooey.models.mixins.ModelDiffMixin, wooey.models.mixins.WooeyPy2Mixin, models.Model),
        ),
        migrations.AddField(
            model_name='scriptparameter',
            name='script_version',
            field=models.ForeignKey(null=True, to='wooey.ScriptVersion'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='scriptparametergroup',
            name='script_version',
            field=models.ForeignKey(null=True, to='wooey.ScriptVersion'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='wooeyjob',
            name='script_version',
            field=models.ForeignKey(null=True, to='wooey.ScriptVersion'),
            preserve_default=False,
        ),
    ]

[((1321, 1375), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'null': '(True)', 'to': '"""wooey.ScriptVersion"""'}), "(null=True, to='wooey.ScriptVersion')\n", (1338, 1375), False, 'from django.db import models, migrations\n'), ((1553, 1607), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'null': '(True)', 'to': '"""wooey.ScriptVersion"""'}), "(null=True, to='wooey.ScriptVersion')\n", (1570, 1607), False, 'from django.db import models, migrations\n'), ((1773, 1827), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'null': '(True)', 'to': '"""wooey.ScriptVersion"""'}), "(null=True, to='wooey.ScriptVersion')\n", (1790, 1827), False, 'from django.db import models, migrations\n'), ((377, 470), 'django.db.models.AutoField', 'models.AutoField', ([], {'verbose_name': '"""ID"""', 'serialize': '(False)', 'auto_created': '(True)', 'primary_key': '(True)'}), "(verbose_name='ID', serialize=False, auto_created=True,\n    primary_key=True)\n", (393, 470), False, 'from django.db import models, migrations\n'), ((504, 598), 'django.db.models.CharField', 'models.CharField', ([], {'default': '"""1"""', 'help_text': '"""The script version."""', 'max_length': '(50)', 'blank': '(True)'}), "(default='1', help_text='The script version.', max_length=\n    50, blank=True)\n", (520, 598), False, 'from django.db import models, migrations\n'), ((633, 676), 'django.db.models.PositiveSmallIntegerField', 'models.PositiveSmallIntegerField', ([], {'default': '(1)'}), '(default=1)\n', (665, 676), False, 'from django.db import models, migrations\n'), ((711, 742), 'django.db.models.FileField', 'models.FileField', ([], {'upload_to': "b''"}), "(upload_to=b'')\n", (727, 742), False, 'from django.db import models, migrations\n'), ((781, 815), 'django.db.models.BooleanField', 'models.BooleanField', ([], {'default': '(False)'}), '(default=False)\n', (800, 815), False, 'from django.db import models, migrations\n'), ((851, 890), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now_add': '(True)'}), '(auto_now_add=True)\n', (871, 890), False, 'from django.db import models, migrations\n'), ((927, 962), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now': '(True)'}), '(auto_now=True)\n', (947, 962), False, 'from django.db import models, migrations\n'), ((992, 1063), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'related_name': '"""script_version_new"""', 'to': '"""wooey.Script"""'}), "(related_name='script_version_new', to='wooey.Script')\n", (1009, 1063), False, 'from django.db import models, migrations\n')]