Skip to content

Commit

Permalink
Add cache_locks table to stub. (#38152)
Browse files Browse the repository at this point in the history
  • Loading branch information
jellisii committed Jul 28, 2021
1 parent 7bd4e6d commit eaacad4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Illuminate/Cache/Console/stubs/cache.stub
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
}

/**
Expand All @@ -28,5 +34,6 @@ class CreateCacheTable extends Migration
public function down()
{
Schema::dropIfExists('cache');
Schema::dropIfExists('cache_locks');
}
}

0 comments on commit eaacad4

Please sign in to comment.