mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
46 lines
1018 B
PHP
46 lines
1018 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration {
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
$cur = \App\Models\Currency::find(118);
|
|
|
|
if(!$cur) {
|
|
$cur = new \App\Models\Currency();
|
|
$cur->id = 118;
|
|
$cur->code = 'NIO';
|
|
$cur->name = 'Nicaraguan Córdoba';
|
|
$cur->symbol = 'C$';
|
|
$cur->thousand_separator = ',';
|
|
$cur->decimal_separator = '.';
|
|
$cur->precision = 2;
|
|
$cur->save();
|
|
}
|
|
|
|
Schema::table('vendors', function (Blueprint $table) {
|
|
$table->unsignedInteger('language_id')->nullable();
|
|
$table->timestamp('last_login')->nullable();
|
|
});
|
|
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
//
|
|
}
|
|
};
|