aboutsummaryrefslogtreecommitdiffstats
path: root/src/resource_inventory/migrations/0010_auto_20190430_1405.py
blob: 3823eaf9c330fa0f59266123911b11d1829f0891 (plain)
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
# Generated by Django 2.1 on 2019-04-30 14:05

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


class Migration(migrations.Migration):

    dependencies = [
        ('resource_inventory', '0009_auto_20190315_1757'),
    ]

    operations = [
        migrations.CreateModel(
            name='HostOPNFVConfig',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
        ),
        migrations.RemoveField(
            model_name='hostconfiguration',
            name='opnfvRole',
        ),
        migrations.AddField(
            model_name='hostconfiguration',
            name='is_head_node',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='opnfvconfig',
            name='description',
            field=models.CharField(blank=True, default='', max_length=600),
        ),
        migrations.AddField(
            model_name='opnfvconfig',
            name='name',
            field=models.CharField(blank=True, default='', max_length=300),
        ),
        migrations.AddField(
            model_name='hostopnfvconfig',
            name='host_config',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='host_opnfv_config', to='resource_inventory.HostConfiguration'),
        ),
        migrations.AddField(
            model_name='hostopnfvconfig',
            name='opnfv_config',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='host_opnfv_config', to='resource_inventory.OPNFVConfig'),
        ),
        migrations.AddField(
            model_name='hostopnfvconfig',
            name='role',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='host_opnfv_configs', to='resource_inventory.OPNFVRole'),
        ),
    ]