mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-28 07:37:59 +01:00
Merge pull request #130 from Lavoaster/the-fix-the-production-site-branch-because-i-missed-out-a-migration
Added clear cache migration
This commit is contained in:
commit
f29d158611
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