From 5ab7ee325c2e3b408402e7ceb3d56ffbfec04080 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 8 Oct 2024 14:02:00 +0200 Subject: [PATCH] Properly name North Macedonia The country changed name a few years ago, our registration should reflect that. --- postgresqleu/countries/fixtures/initial_data.xml | 6 +++--- .../countries/migrations/0003_north_macedonia.py | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 postgresqleu/countries/migrations/0003_north_macedonia.py diff --git a/postgresqleu/countries/fixtures/initial_data.xml b/postgresqleu/countries/fixtures/initial_data.xml index 029c5566e..e794becd6 100644 --- a/postgresqleu/countries/fixtures/initial_data.xml +++ b/postgresqleu/countries/fixtures/initial_data.xml @@ -775,9 +775,9 @@ 446 - MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF - The former Yugoslav Republic of Macedonia - MKD + NORTH MACEDONIA + North Macedonia + MKD 807 diff --git a/postgresqleu/countries/migrations/0003_north_macedonia.py b/postgresqleu/countries/migrations/0003_north_macedonia.py new file mode 100644 index 000000000..5520991bd --- /dev/null +++ b/postgresqleu/countries/migrations/0003_north_macedonia.py @@ -0,0 +1,14 @@ +# Generated by Django 4.2.11 on 2024-10-08 11:59 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('countries', '0002_europecountry'), + ] + + operations = [ + migrations.RunSQL("UPDATE country SET name='NORTH MACEDONIA', printable_name='North Macedonia' WHERE iso='MK'"), + ]