Skip to content

Commit ad2e27d

Browse files
authored
Merge pull request #5787 from uktrade/feature/add-missing-territories
Add two territories to Country dataset.
2 parents 72b1ab4 + 649515f commit ad2e27d

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Generated by Django 4.2.10 on 2024-03-19 23:38
2+
from pathlib import PurePath
3+
4+
from django.db import migrations, models
5+
6+
from datahub.core.migration_utils import load_yaml_data_in_migration
7+
8+
9+
def load_countries(apps, _):
10+
load_yaml_data_in_migration(
11+
apps,
12+
PurePath(__file__).parent / '0088_add_countries.yaml'
13+
)
14+
15+
16+
class Migration(migrations.Migration):
17+
18+
dependencies = [
19+
('metadata', '0087_update_services'),
20+
]
21+
22+
operations = [
23+
migrations.RunPython(load_countries, migrations.RunPython.noop),
24+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
- model: metadata.country
2+
pk: f9a1148c-073a-4832-bfc6-2d96c7212a50
3+
fields:
4+
disabled_on: 2023-02-01T00:00:01Z
5+
name: French Southern Territories
6+
overseas_region: 8d4c4f31-06ce-4320-8e2f-1c13559e125f
7+
is_export_win: True
8+
iso_alpha2_code: TF
9+
- model: metadata.country
10+
pk: 453b18b0-8d9b-4d37-a673-2ee4e2650fd2
11+
fields:
12+
disabled_on: 2018-01-01T00:00:01Z
13+
name: Saint-Martin (French part)
14+
overseas_region: 5616ccf5-ab4a-4c2c-9624-13c69be3c46b
15+
is_export_win: True
16+
iso_alpha2_code: MF

0 commit comments

Comments
 (0)