Skip to content

Commit

Permalink
updated 2.0.23 version after run migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Sep 23, 2020
1 parent d7af10f commit 34d781e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions app/Listeners/Update/V20/Version2023.php
Original file line number Diff line number Diff line change
@@ -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 Version2023 extends Listener
{
const ALIAS = 'core';

const VERSION = '2.0.23';

/**
* Handle the event.
*
* @param $event
* @return void
*/
public function handle(Event $event)
{
if ($this->skipThisUpdate($event)) {
return;
}

Artisan::call('migrate', ['--force' => true]);
}
}
1 change: 1 addition & 0 deletions app/Providers/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Event extends Provider
'App\Listeners\Update\V20\Version2014',
'App\Listeners\Update\V20\Version2017',
'App\Listeners\Update\V20\Version2020',
'App\Listeners\Update\V20\Version2023',
],
'Illuminate\Auth\Events\Login' => [
'App\Listeners\Auth\Login',
Expand Down

0 comments on commit 34d781e

Please sign in to comment.