mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Migration
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
ba6d8ae8c7
commit
fecd877e8b
|
@ -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
|
||||
{
|
||||
|
||||
}
|
||||
};
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue