From 716ec5ab5008d1ff024184c9c2df07eb332d2b61 Mon Sep 17 00:00:00 2001 From: "Douglas Cerna (Soy Douglas)" Date: Fri, 11 Aug 2023 16:34:40 +0000 Subject: [PATCH] Add migration for current changes --- .../src/fpr/migrations/0038_use_uuidfield.py | 105 ++++++++++++++++++ .../src/main/migrations/0082_use_uuidfield.py | 81 ++++++++++++++ 2 files changed, 186 insertions(+) create mode 100644 src/dashboard/src/fpr/migrations/0038_use_uuidfield.py create mode 100644 src/dashboard/src/main/migrations/0082_use_uuidfield.py diff --git a/src/dashboard/src/fpr/migrations/0038_use_uuidfield.py b/src/dashboard/src/fpr/migrations/0038_use_uuidfield.py new file mode 100644 index 0000000000..629073026f --- /dev/null +++ b/src/dashboard/src/fpr/migrations/0038_use_uuidfield.py @@ -0,0 +1,105 @@ +# Generated by Django 1.11.29 on 2023-08-11 16:29 +import uuid + +import main.models +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("fpr", "0037_update_idtools"), + ] + + operations = [ + migrations.AlterField( + model_name="format", + name="uuid", + field=main.models.UUIDField( + default=uuid.uuid4, + editable=False, + help_text="Unique identifier", + unique=True, + ), + ), + migrations.AlterField( + model_name="formatgroup", + name="uuid", + field=main.models.UUIDField( + default=uuid.uuid4, + editable=False, + help_text="Unique identifier", + unique=True, + ), + ), + migrations.AlterField( + model_name="formatversion", + name="uuid", + field=main.models.UUIDField( + default=uuid.uuid4, + editable=False, + help_text="Unique identifier", + unique=True, + ), + ), + migrations.AlterField( + model_name="fpcommand", + name="uuid", + field=main.models.UUIDField( + default=uuid.uuid4, + editable=False, + help_text="Unique identifier", + unique=True, + ), + ), + migrations.AlterField( + model_name="fprule", + name="uuid", + field=main.models.UUIDField( + default=uuid.uuid4, + editable=False, + help_text="Unique identifier", + unique=True, + ), + ), + migrations.AlterField( + model_name="fptool", + name="uuid", + field=main.models.UUIDField( + default=uuid.uuid4, + editable=False, + help_text="Unique identifier", + unique=True, + ), + ), + migrations.AlterField( + model_name="idcommand", + name="uuid", + field=main.models.UUIDField( + default=uuid.uuid4, + editable=False, + help_text="Unique identifier", + unique=True, + ), + ), + migrations.AlterField( + model_name="idrule", + name="uuid", + field=main.models.UUIDField( + default=uuid.uuid4, + editable=False, + help_text="Unique identifier", + unique=True, + ), + ), + migrations.AlterField( + model_name="idtool", + name="uuid", + field=main.models.UUIDField( + default=uuid.uuid4, + editable=False, + help_text="Unique identifier", + unique=True, + ), + ), + ] diff --git a/src/dashboard/src/main/migrations/0082_use_uuidfield.py b/src/dashboard/src/main/migrations/0082_use_uuidfield.py new file mode 100644 index 0000000000..ade490c933 --- /dev/null +++ b/src/dashboard/src/main/migrations/0082_use_uuidfield.py @@ -0,0 +1,81 @@ +# Generated by Django 1.11.29 on 2023-08-11 16:29 +import uuid + +import main.models +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("main", "0081_package_status"), + ] + + operations = [ + migrations.AlterField( + model_name="job", + name="jobuuid", + field=main.models.UUIDField( + db_column="jobUUID", + default=uuid.uuid4, + primary_key=True, + serialize=False, + ), + ), + migrations.AlterField( + model_name="levelofdescription", + name="id", + field=main.models.UUIDField( + db_column="pk", default=uuid.uuid4, primary_key=True, serialize=False + ), + ), + migrations.AlterField( + model_name="metadataappliestotype", + name="id", + field=main.models.UUIDField( + db_column="pk", default=uuid.uuid4, primary_key=True, serialize=False + ), + ), + migrations.AlterField( + model_name="taxonomy", + name="id", + field=main.models.UUIDField( + db_column="pk", default=uuid.uuid4, primary_key=True, serialize=False + ), + ), + migrations.AlterField( + model_name="taxonomyterm", + name="id", + field=main.models.UUIDField( + db_column="pk", default=uuid.uuid4, primary_key=True, serialize=False + ), + ), + migrations.AlterField( + model_name="transfermetadatafield", + name="id", + field=main.models.UUIDField( + db_column="pk", default=uuid.uuid4, primary_key=True, serialize=False + ), + ), + migrations.AlterField( + model_name="transfermetadatafieldvalue", + name="id", + field=main.models.UUIDField( + db_column="pk", default=uuid.uuid4, primary_key=True, serialize=False + ), + ), + migrations.AlterField( + model_name="transfermetadataset", + name="id", + field=main.models.UUIDField( + db_column="pk", default=uuid.uuid4, primary_key=True, serialize=False + ), + ), + migrations.AlterField( + model_name="unitvariable", + name="id", + field=main.models.UUIDField( + db_column="pk", default=uuid.uuid4, primary_key=True, serialize=False + ), + ), + ]