-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5787 from uktrade/feature/add-missing-territories
Add two territories to Country dataset.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |