Skip to content

Commit

Permalink
Merge pull request #5787 from uktrade/feature/add-missing-territories
Browse files Browse the repository at this point in the history
Add two territories to Country dataset.
  • Loading branch information
elcct authored Nov 13, 2024
2 parents 72b1ab4 + 649515f commit ad2e27d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
24 changes: 24 additions & 0 deletions datahub/metadata/migrations/0088_add_countries.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 4.2.10 on 2024-03-19 23:38
from pathlib import PurePath

from django.db import migrations, models

from datahub.core.migration_utils import load_yaml_data_in_migration


def load_countries(apps, _):
load_yaml_data_in_migration(
apps,
PurePath(__file__).parent / '0088_add_countries.yaml'
)


class Migration(migrations.Migration):

dependencies = [
('metadata', '0087_update_services'),
]

operations = [
migrations.RunPython(load_countries, migrations.RunPython.noop),
]
16 changes: 16 additions & 0 deletions datahub/metadata/migrations/0088_add_countries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- model: metadata.country
pk: f9a1148c-073a-4832-bfc6-2d96c7212a50
fields:
disabled_on: 2023-02-01T00:00:01Z
name: French Southern Territories
overseas_region: 8d4c4f31-06ce-4320-8e2f-1c13559e125f
is_export_win: True
iso_alpha2_code: TF
- model: metadata.country
pk: 453b18b0-8d9b-4d37-a673-2ee4e2650fd2
fields:
disabled_on: 2018-01-01T00:00:01Z
name: Saint-Martin (French part)
overseas_region: 5616ccf5-ab4a-4c2c-9624-13c69be3c46b
is_export_win: True
iso_alpha2_code: MF

0 comments on commit ad2e27d

Please sign in to comment.