mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 07:02:34 +01:00
46 lines
767 B
PHP
46 lines
767 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()
|
||
|
{
|
||
|
\Illuminate\Support\Facades\Artisan::call('ninja:design-update');
|
||
|
|
||
|
$t = \App\Models\Country::find(158);
|
||
|
|
||
|
if($t) {
|
||
|
$t->full_name = 'Taiwan';
|
||
|
$t->save();
|
||
|
}
|
||
|
|
||
|
$m = \App\Models\Country::find(807);
|
||
|
|
||
|
if($m) {
|
||
|
$m->full_name = 'Macedonia';
|
||
|
$m->save();
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
//
|
||
|
}
|
||
|
};
|