Commit 2235974c authored by Lukas Burgey's avatar Lukas Burgey

Track migrations

parent dc8864ff
This diff is collapsed.
# Generated by Django 2.1 on 2018-08-06 09:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='user_type',
field=models.CharField(choices=[('apiclient', 'API-Client'), ('oidcuser', 'OIDC User'), ('admin', 'Admin')], max_length=20),
),
]
# Generated by Django 2.1 on 2018-08-09 12:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0002_auto_20180806_0941'),
]
operations = [
migrations.AlterField(
model_name='user',
name='user_type',
field=models.CharField(choices=[('apiclient', 'API-Client'), ('oidcuser', 'OIDC User'), ('admin', 'Admin')], default='apiclient', max_length=20),
),
]
# 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',
),
]
# 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',
),
]
# Generated by Django 2.1 on 2018-08-13 12:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0005_auto_20180809_1659'),
]
operations = [
migrations.AlterField(
model_name='newdeployment',
name='state_target',
field=models.CharField(choices=[('deployment_pending', 'Deployment Pending'), ('removal_pending', 'Removal Pending'), ('deployed', 'Deployed'), ('not_deployed', 'Not Deployed'), ('questionnaire', 'Questionnaire'), ('failed', 'Failed'), ('rejected', 'Rejected')], default='not_deployed', max_length=50),
),
migrations.AlterField(
model_name='newdeploymentstateitem',
name='state',
field=models.CharField(choices=[('deployment_pending', 'Deployment Pending'), ('removal_pending', 'Removal Pending'), ('deployed', 'Deployed'), ('not_deployed', 'Not Deployed'), ('questionnaire', 'Questionnaire'), ('failed', 'Failed'), ('rejected', 'Rejected')], default='not_deployed', max_length=50),
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment