-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db622e7
commit 2e5cb58
Showing
6 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace Crater\Listeners\Updates\v3; | ||
|
||
use Crater\Listeners\Updates\Listener; | ||
use Crater\Events\UpdateFinished; | ||
use Crater\Setting; | ||
use Crater\Currency; | ||
use Artisan; | ||
|
||
class Version311 extends Listener | ||
{ | ||
const VERSION = '3.1.1'; | ||
|
||
/** | ||
* Handle the event. | ||
* | ||
* @param UpdateFinished $event | ||
* @return void | ||
*/ | ||
public function handle(UpdateFinished $event) | ||
{ | ||
if ($this->isListenerFired($event)) { | ||
return; | ||
} | ||
|
||
Artisan::call('migrate', ['--force' => true]); | ||
|
||
// Update Crater app version | ||
Setting::setSetting('version', static::VERSION); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
| | ||
*/ | ||
|
||
'version' => '3.1.0', | ||
'version' => '3.1.1', | ||
|
||
]; |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"/assets/js/app.js": "/assets/js/app.js?id=08d4f6357dbe7738effa", | ||
"/assets/css/crater.css": "/assets/css/crater.css?id=a00ceebbb86dd82a024b" | ||
"/assets/js/app.js": "/assets/js/app.js?id=3c9e7bf904dd1bcdf67f", | ||
"/assets/css/crater.css": "/assets/css/crater.css?id=f5a1617422acad8e44a1" | ||
} |