1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00
invoiceninja/database/migrations/2023_07_06_063512_update_designs.php
2023-11-26 18:41:42 +11:00

45 lines
755 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
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->name = 'Taiwan';
$t->save();
}
$m = \App\Models\Country::find(807);
if($m) {
$m->full_name = 'Macedonia';
$m->name = 'Macedonia';
$m->save();
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};