Migration

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-23 17:35:06 +01:00
parent ba6d8ae8c7
commit fecd877e8b
2 changed files with 30 additions and 2 deletions

View file

@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use App\Models\Setting;
use App\Models\User;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Setting::where('locale', 'no-NO')->update(['locale' => 'nb-NO']);
User::where('locale', 'no-NO')->update(['locale' => 'nb-NO']);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
}
};

View file

@ -40,9 +40,9 @@ return [
'ms-MY'=> 'Malay',
'mi-NZ'=> 'Maori',
'mn-MN'=> 'Mongolian',
'no-NO'=> 'Norwegian',
//'no-NO'=> 'Norwegian',
'nb-NO'=> 'Norwegian Bokmål',
'nn-NO'=> 'Norwegian Nynorsk',
//'nn-NO'=> 'Norwegian Nynorsk',
'fa-IR'=> 'Persian',
'pl-PL'=> 'Polish',
'pt-PT'=> 'Portuguese',