1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Add hungarian language

This commit is contained in:
David Bomba 2023-06-14 08:12:03 +10:00
parent 7e7bd2dfd2
commit 5750af9ede

View File

@ -0,0 +1,35 @@
<?php
use App\Models\Language;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Language::unguard();
if (!Language::find(39)) {
$hungarian = ['id' => 39, 'name' => 'Hungarian', 'locale' => 'hu'];
Language::create($hungarian);
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};