From d867c2f26dcadff710c8b59b238ddc35d95c0035 Mon Sep 17 00:00:00 2001 From: Ray Liu Date: Mon, 9 Sep 2024 15:19:50 +1000 Subject: [PATCH] add modification migration --- ...2_remove_workflowrun_libraries_and_more.py | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 lib/workload/stateless/stacks/workflow-manager/workflow_manager/migrations/0002_remove_workflowrun_libraries_and_more.py diff --git a/lib/workload/stateless/stacks/workflow-manager/workflow_manager/migrations/0002_remove_workflowrun_libraries_and_more.py b/lib/workload/stateless/stacks/workflow-manager/workflow_manager/migrations/0002_remove_workflowrun_libraries_and_more.py new file mode 100644 index 000000000..096cc4be8 --- /dev/null +++ b/lib/workload/stateless/stacks/workflow-manager/workflow_manager/migrations/0002_remove_workflowrun_libraries_and_more.py @@ -0,0 +1,45 @@ +# Generated by Django 5.1 on 2024-09-09 05:16 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("workflow_manager", "0001_initial"), + ] + + operations = [ + migrations.RemoveField( + model_name="workflowrun", + name="libraries", + ), + migrations.AlterField( + model_name="libraryassociation", + name="library", + field=models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name="workflow_run_association", + to="workflow_manager.library", + ), + ), + migrations.AlterField( + model_name="libraryassociation", + name="workflow_run", + field=models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name="library_association", + to="workflow_manager.workflowrun", + ), + ), + migrations.AlterField( + model_name="state", + name="workflow_run", + field=models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name="states", + to="workflow_manager.workflowrun", + ), + ), + ]