mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
48 lines
993 B
PHP
48 lines
993 B
PHP
<?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.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
|
|
Language::unguard();
|
|
|
|
$language = Language::find(41);
|
|
|
|
if (! $language) {
|
|
Language::create(['id' => 41, 'name' => 'Lao', 'locale' => 'lo_LA']);
|
|
}
|
|
|
|
$cur = \App\Models\Currency::find(121);
|
|
|
|
if(!$cur) {
|
|
$cur = new \App\Models\Currency();
|
|
$cur->id = 121;
|
|
$cur->code = 'LAK';
|
|
$cur->name = "Lao kip";
|
|
$cur->symbol = '₭';
|
|
$cur->thousand_separator = ',';
|
|
$cur->decimal_separator = '.';
|
|
$cur->precision = 2;
|
|
$cur->save();
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
//
|
|
}
|
|
};
|