0005_auto_20180809_1659.py 2.05 KB
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Generated by Django 2.1 on 2018-08-09 14:59

from django.db import migrations, models
import django.db.models.deletion
import django_mysql.models
import feudal.backend.models


class Migration(migrations.Migration):

    dependencies = [
        ('backend', '0004_auto_20180809_1655'),
    ]

    operations = [
        migrations.CreateModel(
            name='NewDeploymentStateItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('state', models.CharField(choices=[('deployment_pending', 'Deployment Pending'), ('removal_pending', 'Removal Pending'), ('deployed', 'Deployed'), ('not_deployed', 'Not Deployed'), ('questionnaire', 'Questionnaire'), ('failed', 'Failed'), ('rejected', 'Rejected')], default='deployment_pending', max_length=50)),
                ('message', models.TextField(default='', max_length=300)),
                ('questionnaire', django_mysql.models.JSONField(blank=True, default=feudal.backend.models.questionnaire_default, null=True)),
                ('credentials', django_mysql.models.JSONField(blank=True, default=feudal.backend.models.credential_default, null=True)),
                ('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='state_items', to='backend.NewDeployment')),
                ('service', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='state_items', to='backend.Service')),
                ('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='state_items', to='backend.Site')),
            ],
        ),
        migrations.RemoveField(
            model_name='deploymentstateitem',
            name='parent',
        ),
        migrations.RemoveField(
            model_name='deploymentstateitem',
            name='service',
        ),
        migrations.RemoveField(
            model_name='deploymentstateitem',
            name='site',
        ),
        migrations.DeleteModel(
            name='DeploymentStateItem',
        ),
    ]