Default core files

pull/7062/head
Shift 3 weeks ago committed by Your Name
parent 802db3791d
commit e973ddcfa4

@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::table('cache', function (Blueprint $table) {
$table->index('expiration');
});
Schema::table('cache_locks', function (Blueprint $table) {
$table->index('expiration');
});
}
public function down()
{
Schema::table('cache', function (Blueprint $table) {
$table->dropIndex(['expiration']);
});
Schema::table('cache_locks', function (Blueprint $table) {
$table->dropIndex(['expiration']);
});
}
};
Loading…
Cancel
Save