mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
33 lines
557 B
PHP
33 lines
557 B
PHP
<?php
|
|
|
|
use App\Models\Language;
|
|
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()
|
|
{
|
|
//
|
|
}
|
|
};
|