From c77da63b620ae2982ba9f4912ea7900b234eb8e1 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 15 Sep 2024 13:28:39 +1000 Subject: [PATCH] Fixes for es-* migrations --- ...09_15_022436_add_autonomous_es_regions.php | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/database/migrations/2024_09_15_022436_add_autonomous_es_regions.php b/database/migrations/2024_09_15_022436_add_autonomous_es_regions.php index 9f7524f6a686..1b5c4c0a09e7 100644 --- a/database/migrations/2024_09_15_022436_add_autonomous_es_regions.php +++ b/database/migrations/2024_09_15_022436_add_autonomous_es_regions.php @@ -26,6 +26,7 @@ return new class extends Migration Schema::table('countries', function (Blueprint $table) { $table->string('iso_3166_2',5)->change(); + $table->string('country_code', 4)->change(); }); $regions = [ @@ -33,8 +34,8 @@ return new class extends Migration 'id' => 1000, // INE code for Canary Islands 'capital' => 'Las Palmas de Gran Canaria / Santa Cruz de Tenerife', 'citizenship' => 'Spanish', - 'country_code' => 'ES', - 'currency' => 'Euro', + 'country_code' => '1000', + 'currency' => 'euro', 'currency_code' => 'EUR', 'currency_sub_unit' => 'cent', 'full_name' => 'Canary Islands', @@ -46,15 +47,15 @@ return new class extends Migration 'eea' => true, 'swap_postal_code' => false, 'swap_currency_symbol' => false, - 'thousand_separator' => '.', - 'decimal_separator' => ',', + 'thousand_separator' => '', + 'decimal_separator' => '', ], [ 'id' => 1001, // INE code for Ceuta 'capital' => 'Ceuta', 'citizenship' => 'Spanish', - 'country_code' => 'ES', - 'currency' => 'Euro', + 'country_code' => '1001', + 'currency' => 'euro', 'currency_code' => 'EUR', 'currency_sub_unit' => 'cent', 'full_name' => 'Ceuta', @@ -66,15 +67,15 @@ return new class extends Migration 'eea' => true, 'swap_postal_code' => false, 'swap_currency_symbol' => false, - 'thousand_separator' => '.', - 'decimal_separator' => ',', + 'thousand_separator' => '', + 'decimal_separator' => '', ], [ 'id' => 1002, // INE code for Melilla 'capital' => 'Melilla', 'citizenship' => 'Spanish', - 'country_code' => 'ES', - 'currency' => 'Euro', + 'country_code' => '1002', + 'currency' => 'euro', 'currency_code' => 'EUR', 'currency_sub_unit' => 'cent', 'full_name' => 'Melilla', @@ -86,8 +87,8 @@ return new class extends Migration 'eea' => true, 'swap_postal_code' => false, 'swap_currency_symbol' => false, - 'thousand_separator' => '.', - 'decimal_separator' => ',', + 'thousand_separator' => '', + 'decimal_separator' => '', ], ];