2017-01-22 00:39:50 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2021-06-26 23:23:15 +08:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
2017-01-22 00:39:50 +08:00
|
|
|
|
2023-02-07 00:58:29 +08:00
|
|
|
return new class extends Migration
|
2017-01-22 00:39:50 +08:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('cache', function (Blueprint $table) {
|
|
|
|
$table->string('key')->unique();
|
|
|
|
$table->text('value');
|
|
|
|
$table->integer('expiration');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('cache');
|
|
|
|
}
|
2023-02-07 00:58:29 +08:00
|
|
|
};
|