1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/database/migrations/2023_07_06_063512_update_designs.php

48 lines
836 B
PHP
Raw Normal View History

2023-07-06 08:45:16 +02:00
<?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';
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()
{
//
}
};