aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/migrations
diff options
context:
space:
mode:
authorGergely Csatari <gergely.csatari@nokia.com>2023-10-26 10:33:28 +0300
committerGergely Csatari <gergely.csatari@nokia.com>2023-10-26 10:34:28 +0300
commit2ec0d7b9f5c1354977b821c6b06c24a3ffa13142 (patch)
tree6e449d92ddfc880ed007e9d8a8f25bda8fc7cb0f /src/api/migrations
parent0d3dd290aa6e7f39e7b0b3cbe448b6622f924240 (diff)
Removing project content and adding a noteHEADmaster
that the development continues in GitHub Change-Id: I25c58a679dbf92b2367d826429b7cda936bf9f0e Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com>
Diffstat (limited to 'src/api/migrations')
-rw-r--r--src/api/migrations/0001_initial.py185
-rw-r--r--src/api/migrations/0002_remove_job_delta.py17
-rw-r--r--src/api/migrations/0003_auto_20190102_1956.py18
-rw-r--r--src/api/migrations/0004_snapshotconfig_snapshotrelation.py42
-rw-r--r--src/api/migrations/0005_snapshotconfig_delta.py18
-rw-r--r--src/api/migrations/0006_auto_20190313_1729.py23
-rw-r--r--src/api/migrations/0007_auto_20190417_1511.py25
-rw-r--r--src/api/migrations/0007_opnfvapiconfig_opnfv_config.py20
-rw-r--r--src/api/migrations/0008_auto_20190419_1414.py28
-rw-r--r--src/api/migrations/0009_merge_20190508_1317.py14
-rw-r--r--src/api/migrations/0010_auto_20191219_2004.py23
-rw-r--r--src/api/migrations/0011_auto_20200218_1536.py29
-rw-r--r--src/api/migrations/0012_manual_20200218_1536.py22
-rw-r--r--src/api/migrations/0013_manual_20200218_1536.py29
-rw-r--r--src/api/migrations/0014_manual_20200220.py18
-rw-r--r--src/api/migrations/0015_auto_20201109_1947.py18
-rw-r--r--src/api/migrations/0016_auto_20201109_2149.py41
-rw-r--r--src/api/migrations/0017_apilog.py27
-rw-r--r--src/api/migrations/0017_auto_20210630_1629.py18
-rw-r--r--src/api/migrations/0018_apilog_ip_addr.py18
-rw-r--r--src/api/migrations/0018_cloudinitfile.py25
-rw-r--r--src/api/migrations/0019_auto_20210322_1823.py19
-rw-r--r--src/api/migrations/0019_auto_20210907_1448.py29
-rw-r--r--src/api/migrations/0020_auto_20210322_2218.py23
-rw-r--r--src/api/migrations/0021_auto_20210405_1943.py18
-rw-r--r--src/api/migrations/0022_add_cifile_generated_field.py15
-rw-r--r--src/api/migrations/0022_merge_20211102_2136.py14
-rw-r--r--src/api/migrations/__init__.py8
28 files changed, 0 insertions, 784 deletions
diff --git a/src/api/migrations/0001_initial.py b/src/api/migrations/0001_initial.py
deleted file mode 100644
index abe6f5e..0000000
--- a/src/api/migrations/0001_initial.py
+++ /dev/null
@@ -1,185 +0,0 @@
-##############################################################################
-# Copyright (c) 2018 Parker Berberian, Sawyer Bergeron, and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-# Generated by Django 2.1 on 2018-09-14 14:48
-
-import api.models
-from django.conf import settings
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- initial = True
-
- dependencies = [
- migrations.swappable_dependency(settings.AUTH_USER_MODEL),
- ('booking', '__first__'),
- ('resource_inventory', '__first__'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='AccessRelation',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('status', models.IntegerField(default=0)),
- ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)),
- ('lab_token', models.CharField(default='null', max_length=50)),
- ('message', models.TextField(default='')),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='HostHardwareRelation',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('status', models.IntegerField(default=0)),
- ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)),
- ('lab_token', models.CharField(default='null', max_length=50)),
- ('message', models.TextField(default='')),
- ('host', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.Host')),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='HostNetworkRelation',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('status', models.IntegerField(default=0)),
- ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)),
- ('lab_token', models.CharField(default='null', max_length=50)),
- ('message', models.TextField(default='')),
- ('host', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.Host')),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='Job',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('status', models.IntegerField(default=0)),
- ('delta', models.TextField()),
- ('complete', models.BooleanField(default=False)),
- ('booking', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to='booking.Booking')),
- ],
- ),
- migrations.CreateModel(
- name='OpnfvApiConfig',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('installer', models.CharField(max_length=100)),
- ('scenario', models.CharField(max_length=100)),
- ('delta', models.TextField()),
- ('roles', models.ManyToManyField(to='resource_inventory.Host')),
- ],
- ),
- migrations.CreateModel(
- name='SoftwareRelation',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('status', models.IntegerField(default=0)),
- ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)),
- ('lab_token', models.CharField(default='null', max_length=50)),
- ('message', models.TextField(default='')),
- ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Job')),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='TaskConfig',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ],
- ),
- migrations.CreateModel(
- name='AccessConfig',
- fields=[
- ('taskconfig_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')),
- ('access_type', models.CharField(max_length=50)),
- ('revoke', models.BooleanField(default=False)),
- ('context', models.TextField(default='')),
- ('delta', models.TextField()),
- ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
- ],
- bases=('api.taskconfig',),
- ),
- migrations.CreateModel(
- name='HardwareConfig',
- fields=[
- ('taskconfig_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')),
- ('image', models.CharField(default='defimage', max_length=100)),
- ('power', models.CharField(default='off', max_length=100)),
- ('hostname', models.CharField(default='hostname', max_length=100)),
- ('ipmi_create', models.BooleanField(default=False)),
- ('delta', models.TextField()),
- ],
- bases=('api.taskconfig',),
- ),
- migrations.CreateModel(
- name='NetworkConfig',
- fields=[
- ('taskconfig_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')),
- ('delta', models.TextField()),
- ('interfaces', models.ManyToManyField(to='resource_inventory.Interface')),
- ],
- bases=('api.taskconfig',),
- ),
- migrations.CreateModel(
- name='SoftwareConfig',
- fields=[
- ('taskconfig_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')),
- ('opnfv', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.OpnfvApiConfig')),
- ],
- bases=('api.taskconfig',),
- ),
- migrations.AddField(
- model_name='hostnetworkrelation',
- name='job',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Job'),
- ),
- migrations.AddField(
- model_name='hosthardwarerelation',
- name='job',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Job'),
- ),
- migrations.AddField(
- model_name='accessrelation',
- name='job',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Job'),
- ),
- migrations.AddField(
- model_name='softwarerelation',
- name='config',
- field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.SoftwareConfig'),
- ),
- migrations.AddField(
- model_name='hostnetworkrelation',
- name='config',
- field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.NetworkConfig'),
- ),
- migrations.AddField(
- model_name='hosthardwarerelation',
- name='config',
- field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.HardwareConfig'),
- ),
- migrations.AddField(
- model_name='accessrelation',
- name='config',
- field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.AccessConfig'),
- ),
- ]
diff --git a/src/api/migrations/0002_remove_job_delta.py b/src/api/migrations/0002_remove_job_delta.py
deleted file mode 100644
index 157a40f..0000000
--- a/src/api/migrations/0002_remove_job_delta.py
+++ /dev/null
@@ -1,17 +0,0 @@
-# Generated by Django 2.1 on 2018-10-17 15:32
-
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0001_initial'),
- ]
-
- operations = [
- migrations.RemoveField(
- model_name='job',
- name='delta',
- ),
- ]
diff --git a/src/api/migrations/0003_auto_20190102_1956.py b/src/api/migrations/0003_auto_20190102_1956.py
deleted file mode 100644
index 2ea5d70..0000000
--- a/src/api/migrations/0003_auto_20190102_1956.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 2.1 on 2019-01-02 19:56
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0002_remove_job_delta'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='accessconfig',
- name='delta',
- field=models.TextField(default='{}'),
- ),
- ]
diff --git a/src/api/migrations/0004_snapshotconfig_snapshotrelation.py b/src/api/migrations/0004_snapshotconfig_snapshotrelation.py
deleted file mode 100644
index 62bc7af..0000000
--- a/src/api/migrations/0004_snapshotconfig_snapshotrelation.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# Generated by Django 2.1 on 2019-01-17 15:54
-
-import api.models
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('resource_inventory', '0004_auto_20181017_1532'),
- ('api', '0003_auto_20190102_1956'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='SnapshotConfig',
- fields=[
- ('taskconfig_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')),
- ('image', models.IntegerField(null=True)),
- ('dashboard_id', models.IntegerField()),
- ('host', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='resource_inventory.Host')),
- ],
- bases=('api.taskconfig',),
- ),
- migrations.CreateModel(
- name='SnapshotRelation',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('status', models.IntegerField(default=0)),
- ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)),
- ('lab_token', models.CharField(default='null', max_length=50)),
- ('message', models.TextField(default='')),
- ('config', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.SnapshotConfig')),
- ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Job')),
- ('snapshot', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.Image')),
- ],
- options={
- 'abstract': False,
- },
- ),
- ]
diff --git a/src/api/migrations/0005_snapshotconfig_delta.py b/src/api/migrations/0005_snapshotconfig_delta.py
deleted file mode 100644
index 559af90..0000000
--- a/src/api/migrations/0005_snapshotconfig_delta.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 2.1 on 2019-01-17 16:07
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0004_snapshotconfig_snapshotrelation'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='snapshotconfig',
- name='delta',
- field=models.TextField(default='{}'),
- ),
- ]
diff --git a/src/api/migrations/0006_auto_20190313_1729.py b/src/api/migrations/0006_auto_20190313_1729.py
deleted file mode 100644
index ec148bd..0000000
--- a/src/api/migrations/0006_auto_20190313_1729.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Generated by Django 2.1 on 2019-03-13 17:29
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0005_snapshotconfig_delta'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='opnfvapiconfig',
- name='installer',
- field=models.CharField(max_length=200),
- ),
- migrations.AlterField(
- model_name='opnfvapiconfig',
- name='scenario',
- field=models.CharField(max_length=300),
- ),
- ]
diff --git a/src/api/migrations/0007_auto_20190417_1511.py b/src/api/migrations/0007_auto_20190417_1511.py
deleted file mode 100644
index e7d2c59..0000000
--- a/src/api/migrations/0007_auto_20190417_1511.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# Generated by Django 2.1 on 2019-04-17 15:11
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0006_auto_20190313_1729'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='opnfvapiconfig',
- name='idf',
- field=models.CharField(default='', max_length=100),
- preserve_default=False,
- ),
- migrations.AddField(
- model_name='opnfvapiconfig',
- name='pdf',
- field=models.CharField(default='', max_length=100),
- preserve_default=False,
- ),
- ]
diff --git a/src/api/migrations/0007_opnfvapiconfig_opnfv_config.py b/src/api/migrations/0007_opnfvapiconfig_opnfv_config.py
deleted file mode 100644
index 46f3631..0000000
--- a/src/api/migrations/0007_opnfvapiconfig_opnfv_config.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# Generated by Django 2.1 on 2019-05-01 18:53
-
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('resource_inventory', '0010_auto_20190430_1405'),
- ('api', '0006_auto_20190313_1729'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='opnfvapiconfig',
- name='opnfv_config',
- field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='resource_inventory.OPNFVConfig'),
- ),
- ]
diff --git a/src/api/migrations/0008_auto_20190419_1414.py b/src/api/migrations/0008_auto_20190419_1414.py
deleted file mode 100644
index 03c3865..0000000
--- a/src/api/migrations/0008_auto_20190419_1414.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# Generated by Django 2.1 on 2019-04-19 14:14
-
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('resource_inventory', '0009_auto_20190315_1757'),
- ('api', '0007_auto_20190417_1511'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='BridgeConfig',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('interfaces', models.ManyToManyField(to='resource_inventory.Interface')),
- ('opnfv_config', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.OPNFVConfig')),
- ],
- ),
- migrations.AddField(
- model_name='opnfvapiconfig',
- name='bridge_config',
- field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to='api.BridgeConfig'),
- ),
- ]
diff --git a/src/api/migrations/0009_merge_20190508_1317.py b/src/api/migrations/0009_merge_20190508_1317.py
deleted file mode 100644
index 1a34380..0000000
--- a/src/api/migrations/0009_merge_20190508_1317.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# Generated by Django 2.1 on 2019-05-08 13:17
-
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0008_auto_20190419_1414'),
- ('api', '0007_opnfvapiconfig_opnfv_config'),
- ]
-
- operations = [
- ]
diff --git a/src/api/migrations/0010_auto_20191219_2004.py b/src/api/migrations/0010_auto_20191219_2004.py
deleted file mode 100644
index ec48584..0000000
--- a/src/api/migrations/0010_auto_20191219_2004.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Generated by Django 2.2 on 2019-12-19 20:04
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0009_merge_20190508_1317'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='taskconfig',
- name='delta_keys_list',
- field=models.CharField(default='[]', max_length=200),
- ),
- migrations.AddField(
- model_name='taskconfig',
- name='state',
- field=models.IntegerField(default=200),
- ),
- ]
diff --git a/src/api/migrations/0011_auto_20200218_1536.py b/src/api/migrations/0011_auto_20200218_1536.py
deleted file mode 100644
index 0fd7029..0000000
--- a/src/api/migrations/0011_auto_20200218_1536.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# Generated by Django 2.2 on 2020-02-18 15:36
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0010_auto_20191219_2004'),
- # ('resource_inventory', '0013_auto_20200218_1536')
- ]
-
- operations = [
- migrations.AddField(
- model_name='hosthardwarerelation',
- name='resource_id',
- field=models.CharField(default='default_id', max_length=200),
- ),
- migrations.AddField(
- model_name='hostnetworkrelation',
- name='resource_id',
- field=models.CharField(default='default_id', max_length=200),
- ),
- migrations.AddField(
- model_name='snapshotconfig',
- name='resource_id',
- field=models.CharField(default='default_id', max_length=200),
- ),
- ]
diff --git a/src/api/migrations/0012_manual_20200218_1536.py b/src/api/migrations/0012_manual_20200218_1536.py
deleted file mode 100644
index 55befbd..0000000
--- a/src/api/migrations/0012_manual_20200218_1536.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# Generated by Django 2.2 on 2020-02-18 15:36
-
-from django.db import migrations
-
-
-def set_resource_id(apps, schema_editor):
- for cls in ["HostHardwareRelation", "HostNetworkRelation", "SnapshotConfig"]:
- model = apps.get_model('api', cls)
- for m in model.objects.all():
- m.resource_id = m.host.labid
- m.save()
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0011_auto_20200218_1536'),
- ]
-
- operations = [
- migrations.RunPython(set_resource_id),
- ]
diff --git a/src/api/migrations/0013_manual_20200218_1536.py b/src/api/migrations/0013_manual_20200218_1536.py
deleted file mode 100644
index 3ac427e..0000000
--- a/src/api/migrations/0013_manual_20200218_1536.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# Generated by Django 2.2 on 2020-02-18 15:36
-
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0012_manual_20200218_1536'),
- ]
-
- operations = [
- migrations.RemoveField(
- model_name='hosthardwarerelation',
- name='host',
- ),
- migrations.RemoveField(
- model_name='hostnetworkrelation',
- name='host',
- ),
- migrations.RemoveField(
- model_name='snapshotconfig',
- name='host',
- ),
- migrations.RemoveField(
- model_name='opnfvapiconfig',
- name='roles',
- ),
- ]
diff --git a/src/api/migrations/0014_manual_20200220.py b/src/api/migrations/0014_manual_20200220.py
deleted file mode 100644
index 2e2cd58..0000000
--- a/src/api/migrations/0014_manual_20200220.py
+++ /dev/null
@@ -1,18 +0,0 @@
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0013_manual_20200218_1536'),
- ('resource_inventory', '0013_auto_20200218_1536')
- ]
-
- operations = [
- migrations.AddField(
- model_name='opnfvapiconfig',
- name='roles',
- field=models.ManyToManyField(to='resource_inventory.ResourceOPNFVConfig'),
- ),
- ]
diff --git a/src/api/migrations/0015_auto_20201109_1947.py b/src/api/migrations/0015_auto_20201109_1947.py
deleted file mode 100644
index bbd51e5..0000000
--- a/src/api/migrations/0015_auto_20201109_1947.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 2.2 on 2020-11-09 19:47
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0014_manual_20200220'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='taskconfig',
- name='state',
- field=models.IntegerField(default=0),
- ),
- ]
diff --git a/src/api/migrations/0016_auto_20201109_2149.py b/src/api/migrations/0016_auto_20201109_2149.py
deleted file mode 100644
index a430659..0000000
--- a/src/api/migrations/0016_auto_20201109_2149.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# Generated by Django 2.2 on 2020-11-09 21:49
-
-import api.models
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0015_auto_20201109_1947'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='ActiveUsersConfig',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ],
- ),
- migrations.AddField(
- model_name='job',
- name='job_type',
- field=models.CharField(choices=[('BOOK', 'Booking'), ('DATA', 'Analytics')], default='BOOK', max_length=4),
- ),
- migrations.CreateModel(
- name='ActiveUsersRelation',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('status', models.IntegerField(default=0)),
- ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)),
- ('lab_token', models.CharField(default='null', max_length=50)),
- ('message', models.TextField(default='')),
- ('config', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.ActiveUsersConfig')),
- ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Job')),
- ],
- options={
- 'abstract': False,
- },
- ),
- ]
diff --git a/src/api/migrations/0017_apilog.py b/src/api/migrations/0017_apilog.py
deleted file mode 100644
index d209aef..0000000
--- a/src/api/migrations/0017_apilog.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# Generated by Django 2.2 on 2021-03-19 20:45
-
-from django.conf import settings
-import django.contrib.postgres.fields.jsonb
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- migrations.swappable_dependency(settings.AUTH_USER_MODEL),
- ('api', '0016_auto_20201109_2149'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='APILog',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('call_time', models.DateTimeField(auto_now=True)),
- ('endpoint', models.CharField(max_length=300)),
- ('body', django.contrib.postgres.fields.jsonb.JSONField()),
- ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
- ],
- ),
- ]
diff --git a/src/api/migrations/0017_auto_20210630_1629.py b/src/api/migrations/0017_auto_20210630_1629.py
deleted file mode 100644
index 643ff5f..0000000
--- a/src/api/migrations/0017_auto_20210630_1629.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 2.2 on 2021-06-30 16:29
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0016_auto_20201109_2149'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='snapshotconfig',
- name='image',
- field=models.CharField(max_length=200, null=True),
- ),
- ]
diff --git a/src/api/migrations/0018_apilog_ip_addr.py b/src/api/migrations/0018_apilog_ip_addr.py
deleted file mode 100644
index 4b7ce39..0000000
--- a/src/api/migrations/0018_apilog_ip_addr.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 2.2 on 2021-03-22 18:12
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0017_apilog'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='apilog',
- name='ip_addr',
- field=models.GenericIPAddressField(null=True),
- ),
- ]
diff --git a/src/api/migrations/0018_cloudinitfile.py b/src/api/migrations/0018_cloudinitfile.py
deleted file mode 100644
index 4e41b39..0000000
--- a/src/api/migrations/0018_cloudinitfile.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# Generated by Django 2.2 on 2021-07-01 20:45
-
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('resource_inventory', '0019_auto_20210701_1947'),
- ('booking', '0008_auto_20201109_1947'),
- ('api', '0017_auto_20210630_1629'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='CloudInitFile',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('resource_id', models.CharField(max_length=200)),
- ('booking', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='booking.Booking')),
- ('rconfig', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.ResourceConfiguration')),
- ],
- ),
- ]
diff --git a/src/api/migrations/0019_auto_20210322_1823.py b/src/api/migrations/0019_auto_20210322_1823.py
deleted file mode 100644
index b3c4cdf..0000000
--- a/src/api/migrations/0019_auto_20210322_1823.py
+++ /dev/null
@@ -1,19 +0,0 @@
-# Generated by Django 2.2 on 2021-03-22 18:23
-
-import django.contrib.postgres.fields.jsonb
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0018_apilog_ip_addr'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='apilog',
- name='body',
- field=django.contrib.postgres.fields.jsonb.JSONField(null=True),
- ),
- ]
diff --git a/src/api/migrations/0019_auto_20210907_1448.py b/src/api/migrations/0019_auto_20210907_1448.py
deleted file mode 100644
index 92140fb..0000000
--- a/src/api/migrations/0019_auto_20210907_1448.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# Generated by Django 2.2 on 2021-09-07 14:48
-
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('booking', '0008_auto_20201109_1947'),
- ('resource_inventory', '0020_cloudinitfile'),
- ('api', '0018_cloudinitfile'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='GeneratedCloudConfig',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('resource_id', models.CharField(max_length=200)),
- ('text', models.TextField(blank=True, null=True)),
- ('booking', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='booking.Booking')),
- ('rconfig', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.ResourceConfiguration')),
- ],
- ),
- migrations.DeleteModel(
- name='CloudInitFile',
- ),
- ]
diff --git a/src/api/migrations/0020_auto_20210322_2218.py b/src/api/migrations/0020_auto_20210322_2218.py
deleted file mode 100644
index 0252c79..0000000
--- a/src/api/migrations/0020_auto_20210322_2218.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Generated by Django 2.2 on 2021-03-22 22:18
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0019_auto_20210322_1823'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='apilog',
- name='method',
- field=models.CharField(max_length=4, null=True),
- ),
- migrations.AlterField(
- model_name='apilog',
- name='endpoint',
- field=models.CharField(max_length=300, null=True),
- ),
- ]
diff --git a/src/api/migrations/0021_auto_20210405_1943.py b/src/api/migrations/0021_auto_20210405_1943.py
deleted file mode 100644
index ca6e741..0000000
--- a/src/api/migrations/0021_auto_20210405_1943.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 2.2 on 2021-04-05 19:43
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0020_auto_20210322_2218'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='apilog',
- name='method',
- field=models.CharField(max_length=6, null=True),
- ),
- ]
diff --git a/src/api/migrations/0022_add_cifile_generated_field.py b/src/api/migrations/0022_add_cifile_generated_field.py
deleted file mode 100644
index f83a102..0000000
--- a/src/api/migrations/0022_add_cifile_generated_field.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
- dependencies = [
- ('api', '0018_cloudinitfile'),
- ]
-
- operations = [
- migrations.AddField(
- model_name="CloudInitFile",
- name="generated",
- field=models.BooleanField(default=False)
- ),
- ]
diff --git a/src/api/migrations/0022_merge_20211102_2136.py b/src/api/migrations/0022_merge_20211102_2136.py
deleted file mode 100644
index bb27ae4..0000000
--- a/src/api/migrations/0022_merge_20211102_2136.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# Generated by Django 2.2 on 2021-11-02 21:36
-
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('api', '0019_auto_20210907_1448'),
- ('api', '0021_auto_20210405_1943'),
- ]
-
- operations = [
- ]
diff --git a/src/api/migrations/__init__.py b/src/api/migrations/__init__.py
deleted file mode 100644
index e0408fa..0000000
--- a/src/api/migrations/__init__.py
+++ /dev/null
@@ -1,8 +0,0 @@
-##############################################################################
-# Copyright (c) 2018 Parker Berberian, Sawyer Bergeron, and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################