phpvms/database/migrations/2017_06_21_165410_create_rankings_table.php

37 lines
832 B
PHP
Raw Normal View History

2017-06-22 01:10:25 +08:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateRankingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('rankings', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->integer('hours')->default(0);
2017-06-22 01:26:47 +08:00
$table->boolean('auto_approval_acars')->default(false);
$table->boolean('auto_approval_manual')->default(false);
$table->boolean('auto_promote')->default(true);
2017-06-22 01:10:25 +08:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('rankings');
}
}