From 734d1fabfa7d0f7615b06422c079a6133bcf887d Mon Sep 17 00:00:00 2001 From: santosh dasari <74972011+santoshdasa12345@users.noreply.github.com> Date: Mon, 3 Mar 2025 14:54:32 +0000 Subject: [PATCH] add-new-related-programmes --- .../0058_add_associated_programmes.py | 24 +++++++++++++++++++ .../0058_add_associated_programmes.yaml | 14 +++++++++++ 2 files changed, 38 insertions(+) create mode 100644 datahub/export_win/migrations/0058_add_associated_programmes.py create mode 100644 datahub/export_win/migrations/0058_add_associated_programmes.yaml diff --git a/datahub/export_win/migrations/0058_add_associated_programmes.py b/datahub/export_win/migrations/0058_add_associated_programmes.py new file mode 100644 index 000000000..c96cd2dc4 --- /dev/null +++ b/datahub/export_win/migrations/0058_add_associated_programmes.py @@ -0,0 +1,24 @@ +from django.db import migrations, models +from pathlib import PurePath +import uuid + + +from datahub.core.migration_utils import load_yaml_data_in_migration + + +def load_associated_programmes(apps, _): + load_yaml_data_in_migration( + apps, + PurePath(__file__).parent / '0058_add_associated_programmes.yaml' + ) + + +class Migration(migrations.Migration): + + dependencies = [ + ('export_win', '0057_alter_customerresponse_agree_with_win'), + ] + + operations = [ + migrations.RunPython(load_associated_programmes, migrations.RunPython.noop), + ] diff --git a/datahub/export_win/migrations/0058_add_associated_programmes.yaml b/datahub/export_win/migrations/0058_add_associated_programmes.yaml new file mode 100644 index 000000000..d0daecadf --- /dev/null +++ b/datahub/export_win/migrations/0058_add_associated_programmes.yaml @@ -0,0 +1,14 @@ +- model: export_win.associatedprogramme + pk: 085aedc6-22d4-4738-91af-fdf440453e3a + fields: + disabled_on: null + name: "Export Summit Flagship 2025" + export_win_id: "118" + order: 100 +- model: export_win.associatedprogramme + pk: 3141ef39-c447-4da8-9078-a262bad19c96 + fields: + disabled_on: null + name: "Export Summit Roadshows 2025" + export_win_id: "119" + order: 110