diff --git a/src/Illuminate/Cache/Console/stubs/cache.stub b/src/Illuminate/Cache/Console/stubs/cache.stub index dfa90155dc80..88cd44590c02 100644 --- a/src/Illuminate/Cache/Console/stubs/cache.stub +++ b/src/Illuminate/Cache/Console/stubs/cache.stub @@ -18,6 +18,12 @@ class CreateCacheTable extends Migration $table->mediumText('value'); $table->integer('expiration'); }); + + Schema::create('cache_locks', function (Blueprint $table) { + $table->string('key')->primary(); + $table->string('owner'); + $table->integer('expiration'); + }); } /** @@ -28,5 +34,6 @@ class CreateCacheTable extends Migration public function down() { Schema::dropIfExists('cache'); + Schema::dropIfExists('cache_locks'); } }