a5a972f9a724269ee3433f3651978288810fa1eb
[laas.git] / src / resource_inventory / migrations / 0006_auto_20190124_1700.py
1 # Generated by Django 2.1 on 2019-01-24 17:00
2
3 from django.conf import settings
4 from django.db import migrations, models
5 import django.db.models.deletion
6 import resource_inventory.models
7
8
9 class Migration(migrations.Migration):
10
11     dependencies = [
12         ('resource_inventory', '0005_image_os'),
13     ]
14
15     operations = [
16         migrations.AlterField(
17             model_name='cpuprofile',
18             name='host',
19             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cpuprofile', to='resource_inventory.HostProfile'),
20         ),
21         migrations.AlterField(
22             model_name='diskprofile',
23             name='host',
24             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='storageprofile', to='resource_inventory.HostProfile'),
25         ),
26         migrations.AlterField(
27             model_name='generichost',
28             name='profile',
29             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.HostProfile'),
30         ),
31         migrations.AlterField(
32             model_name='generichost',
33             name='resource',
34             field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='generic_host', to='resource_inventory.GenericResource'),
35         ),
36         migrations.AlterField(
37             model_name='genericinterface',
38             name='host',
39             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='generic_interfaces', to='resource_inventory.GenericHost'),
40         ),
41         migrations.AlterField(
42             model_name='genericresource',
43             name='bundle',
44             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='generic_resources', to='resource_inventory.GenericResourceBundle'),
45         ),
46         migrations.AlterField(
47             model_name='genericresourcebundle',
48             name='lab',
49             field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='account.Lab'),
50         ),
51         migrations.AlterField(
52             model_name='genericresourcebundle',
53             name='owner',
54             field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL),
55         ),
56         migrations.AlterField(
57             model_name='hostconfiguration',
58             name='opnfvRole',
59             field=models.ForeignKey(on_delete=models.SET(resource_inventory.models.get_sentinal_opnfv_role), to='resource_inventory.OPNFVRole'),
60         ),
61         migrations.AlterField(
62             model_name='interfaceprofile',
63             name='host',
64             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='interfaceprofile', to='resource_inventory.HostProfile'),
65         ),
66         migrations.AlterField(
67             model_name='ramprofile',
68             name='host',
69             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ramprofile', to='resource_inventory.HostProfile'),
70         ),
71         migrations.AlterField(
72             model_name='resourcebundle',
73             name='template',
74             field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='resource_inventory.GenericResourceBundle'),
75         ),
76     ]