rbrecruiter/database/migrations/2020_05_02_223355_create_cache_table.php
Miguel Nogueira 669fbc1ae5 Add Mojang's status to dashboard
Also adds a Cache table to the database. Contains incomplete routes.
2020-05-03 00:45:29 +01:00

33 lines
643 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCacheTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cache', function (Blueprint $table) {
$table->string('key')->unique();
$table->mediumText('value');
$table->integer('expiration');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('cache');
}
}