mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -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',
|
'ms-MY'=> 'Malay',
|
||||||
'mi-NZ'=> 'Maori',
|
'mi-NZ'=> 'Maori',
|
||||||
'mn-MN'=> 'Mongolian',
|
'mn-MN'=> 'Mongolian',
|
||||||
'no-NO'=> 'Norwegian',
|
//'no-NO'=> 'Norwegian',
|
||||||
'nb-NO'=> 'Norwegian Bokmål',
|
'nb-NO'=> 'Norwegian Bokmål',
|
||||||
'nn-NO'=> 'Norwegian Nynorsk',
|
//'nn-NO'=> 'Norwegian Nynorsk',
|
||||||
'fa-IR'=> 'Persian',
|
'fa-IR'=> 'Persian',
|
||||||
'pl-PL'=> 'Polish',
|
'pl-PL'=> 'Polish',
|
||||||
'pt-PT'=> 'Portuguese',
|
'pt-PT'=> 'Portuguese',
|
||||||
|
|
Loading…
Reference in a new issue