1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00
invoiceninja/database/migrations/2023_07_06_063512_update_designs.php

45 lines
755 B
PHP
Raw Normal View History

2023-07-06 08:45:16 +02:00
<?php
use Illuminate\Database\Migrations\Migration;
2023-11-26 08:41:42 +01:00
return new class extends Migration {
2023-07-06 08:45:16 +02:00
/**
* 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';
2023-07-06 13:28:09 +02:00
$t->name = 'Taiwan';
2023-07-06 08:45:16 +02:00
$t->save();
}
$m = \App\Models\Country::find(807);
if($m) {
$m->full_name = 'Macedonia';
2023-07-06 13:28:09 +02:00
$m->name = 'Macedonia';
2023-07-06 08:45:16 +02:00
$m->save();
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};