removed module category from json

This commit is contained in:
Denis Duliçi
2020-07-21 00:01:26 +03:00
parent 1cd85d446c
commit d934bc419e
11 changed files with 65 additions and 17 deletions

View File

@@ -33,7 +33,6 @@ class CreateModuleUpdatedHistory
ModuleHistory::create([
'company_id' => $model->company_id,
'module_id' => $model->id,
'category' => $module->get('category', 'payment-method'),
'version' => $event->new,
'description' => trans('modules.history.updated', ['module' => $module->getAlias()]),
]);

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Listeners\Update\V20;
use App\Abstracts\Listeners\Update as Listener;
use App\Events\Install\UpdateFinished as Event;
use Illuminate\Support\Facades\Artisan;
class Version2017 extends Listener
{
const ALIAS = 'core';
const VERSION = '2.0.17';
/**
* Handle the event.
*
* @param $event
* @return void
*/
public function handle(Event $event)
{
if ($this->skipThisUpdate($event)) {
return;
}
Artisan::call('migrate', ['--force' => true]);
}
}