Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add-new-related-programmes #5988

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions datahub/export_win/migrations/0058_add_associated_programmes.py
Original file line number Diff line number Diff line change
@@ -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),
]
Original file line number Diff line number Diff line change
@@ -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