mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-28 07:37:59 +01:00
Added clear cache migration
This commit is contained in:
parent
47ecf523f4
commit
9fe1c409a5
1 changed files with 29 additions and 0 deletions
29
database/migrations/2017_12_03_091509_Laravel55Upgrade.php
Normal file
29
database/migrations/2017_12_03_091509_Laravel55Upgrade.php
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class Laravel55Upgrade extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
app()->call('cache:clear');
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
// same thing
|
||||
$this->up();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue