0010_credentialstate.py 980 Bytes
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
# Generated by Django 2.1 on 2018-10-29 14:20

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


class Migration(migrations.Migration):

    dependencies = [
        ('backend', '0009_auto_20180821_1529'),
    ]

    operations = [
        migrations.CreateModel(
            name='CredentialState',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('state', models.CharField(choices=[('deployed', 'Deployed'), ('not_deployed', 'Not deployed')], default='not_deployed', max_length=50)),
                ('credential', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='credential_states', to='backend.SSHPublicKey')),
                ('target', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='credential_states', to='backend.NewDeploymentStateItem')),
            ],
        ),
    ]