0004_auto_20180809_1655.py 2.63 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Generated by Django 2.1 on 2018-08-09 14:55

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


class Migration(migrations.Migration):

    dependencies = [
        ('auth', '0009_alter_user_last_name_max_length'),
        ('backend', '0003_auto_20180809_1209'),
    ]

    operations = [
        migrations.CreateModel(
            name='NewDeployment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('state_target', models.CharField(choices=[('deployment_pending', 'Deployment Pending'), ('removal_pending', 'Removal Pending'), ('deployed', 'Deployed'), ('not_deployed', 'Not Deployed'), ('questionnaire', 'Questionnaire'), ('failed', 'Failed'), ('rejected', 'Rejected')], default='deployed', max_length=50)),
                ('is_active', models.BooleanField(default=True)),
                ('group', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='deployments', to='auth.Group')),
                ('service', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='deployments', to='backend.Service')),
                ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='deployments', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.RemoveField(
            model_name='deployment',
            name='group',
        ),
        migrations.RemoveField(
            model_name='deployment',
            name='service',
        ),
        migrations.RemoveField(
            model_name='deployment',
            name='ssh_keys',
        ),
        migrations.RemoveField(
            model_name='deployment',
            name='user',
        ),
        migrations.RemoveField(
            model_name='deploymentstate',
            name='deployment',
        ),
        migrations.RemoveField(
            model_name='deploymentstate',
            name='key',
        ),
        migrations.AlterField(
            model_name='deploymentstateitem',
            name='parent',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='state_items', to='backend.NewDeployment'),
        ),
        migrations.AlterField(
            model_name='rabbitmqinstance',
            name='vhost',
            field=models.CharField(default='/', max_length=150),
        ),
        migrations.DeleteModel(
            name='Deployment',
        ),
        migrations.DeleteModel(
            name='DeploymentState',
        ),
    ]