TCVis/database/migrations/2018_12_20_153838_create_ranks_table.php

36 lines
719 B
PHP
Raw Normal View History

2018-12-21 12:45:08 +00:00
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRanksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ranks', function (Blueprint $table) {
$table->increments('id');
$table->string('role');
$table->string('character');
$table->integer('score');
$table->datetime('summary_time');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('ranks');
}
}