invoiceninja/database/migrations/2023_04_27_045639_add_kmher_language.php
2023-04-27 15:09:55 +10:00

38 lines
547 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();
$language = Language::find(38);
if (! $language) {
Language::create(['id' => 38, 'name' => 'Khmer', 'locale' => 'km_KH']);
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};