diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-03-06 11:47:23 -0500 |
---|---|---|
committer | Parker Berberian <pberberian@iol.unh.edu> | 2019-03-06 11:47:23 -0500 |
commit | 2f9786ec78b1fd6181405bb9938ab90767838e37 (patch) | |
tree | 02c0fee3c6c26794c623c093aca4f930eb0ba401 /dashboard/src/resource_inventory/migrations | |
parent | cb967841ea9bbab7453567cec1a7195089b60a0e (diff) |
Fix migration and models
We missed a few migrations
Change-Id: I58e1abb53e5295ec6c6228906d6eb2fd7fea0b84
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'dashboard/src/resource_inventory/migrations')
-rw-r--r-- | dashboard/src/resource_inventory/migrations/0007_auto_20190306_1616.py | 31 | ||||
-rw-r--r-- | dashboard/src/resource_inventory/migrations/0008_host_remote_management.py | 19 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dashboard/src/resource_inventory/migrations/0007_auto_20190306_1616.py b/dashboard/src/resource_inventory/migrations/0007_auto_20190306_1616.py new file mode 100644 index 0000000..19a49c5 --- /dev/null +++ b/dashboard/src/resource_inventory/migrations/0007_auto_20190306_1616.py @@ -0,0 +1,31 @@ +# Generated by Django 2.1 on 2019-03-06 16:16 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('resource_inventory', '0006_auto_20190124_1700'), + ] + + operations = [ + migrations.CreateModel( + name='RemoteInfo', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('address', models.CharField(max_length=15)), + ('mac_address', models.CharField(max_length=17)), + ('password', models.CharField(max_length=100)), + ('user', models.CharField(max_length=100)), + ('management_type', models.CharField(default='ipmi', max_length=50)), + ('versions', models.CharField(max_length=100)), + ], + ), + migrations.AlterField( + model_name='genericinterface', + name='profile', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.InterfaceProfile'), + ), + ] diff --git a/dashboard/src/resource_inventory/migrations/0008_host_remote_management.py b/dashboard/src/resource_inventory/migrations/0008_host_remote_management.py new file mode 100644 index 0000000..f74a535 --- /dev/null +++ b/dashboard/src/resource_inventory/migrations/0008_host_remote_management.py @@ -0,0 +1,19 @@ +# Generated by Django 2.1 on 2019-03-06 16:42 + +from django.db import migrations, models +import resource_inventory.models + + +class Migration(migrations.Migration): + + dependencies = [ + ('resource_inventory', '0007_auto_20190306_1616'), + ] + + operations = [ + migrations.AddField( + model_name='host', + name='remote_management', + field=models.ForeignKey(default=resource_inventory.models.get_default_remote_info, on_delete=models.SET(resource_inventory.models.get_default_remote_info), to='resource_inventory.RemoteInfo'), + ), + ] |