34 lines
658 B
PHP
34 lines
658 B
PHP
<?php
|
|
|
|
use App\Models\Asset;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class AddFirstCounterTotalsToAssets extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
// This artisan call may take a while
|
|
\Log::info('This could take a while.... ');
|
|
Artisan::call('snipeit:counter-sync');
|
|
$output = Artisan::output();
|
|
\Log::info($output);
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
//
|
|
}
|
|
}
|