Skip to content

Commit 179d374

Browse files
committed
chore(regions): move EU region seeding into ImportCountries job and use Relation Manager
1 parent 330caa6 commit 179d374

18 files changed

Lines changed: 86 additions & 777 deletions

database/factories/CountrySpecialRegionFactory.php

Lines changed: 0 additions & 72 deletions
This file was deleted.

database/migrations/2025_07_26_120003_seed_eu_region.php

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\DB;
6+
use Illuminate\Support\Facades\Schema;
7+
8+
return new class extends Migration
9+
{
10+
public function up(): void
11+
{
12+
Schema::table('world_country_in_special_region', function (Blueprint $table) {
13+
$table->date('start_date')->default(DB::raw('CURRENT_DATE'))->change();
14+
});
15+
}
16+
17+
public function down(): void
18+
{
19+
Schema::table('world_country_in_special_region', function (Blueprint $table) {
20+
$table->date('start_date')->change();
21+
});
22+
}
23+
};

resources/lang/en/countries.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@
7777
'label' => 'Geographical Region',
7878
'helper' => 'The geographical region this country belongs to',
7979
],
80+
'special_regions' => [
81+
'label' => 'Special Regions',
82+
'helper' => 'Special regions this country belongs to (e.g., European Union)',
83+
],
8084
],
8185

8286
'import' => [

resources/lang/en/special-memberships.php

Lines changed: 0 additions & 74 deletions
This file was deleted.

resources/lang/hr/countries.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@
7777
'label' => 'Geografska regija',
7878
'helper' => 'Geografska regija kojoj ova zemlja pripada',
7979
],
80+
'special_regions' => [
81+
'label' => 'Posebne regije',
82+
'helper' => 'Posebne regije kojima ova zemlja pripada (npr. Europska unija)',
83+
],
8084
],
8185

8286
'import' => [

resources/lang/hr/special-memberships.php

Lines changed: 0 additions & 74 deletions
This file was deleted.

resources/lang/sl/countries.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@
7777
'label' => 'Geografska regija',
7878
'helper' => 'Geografska regija, ki ji ta država pripada',
7979
],
80+
'special_regions' => [
81+
'label' => 'Posebne regije',
82+
'helper' => 'Posebne regije, ki jim ta država pripada (npr. Evropska unija)',
83+
],
8084
],
8185

8286
'import' => [

resources/lang/sl/special-memberships.php

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)