Файл: database/migrations/2018_06_21_084018_create_tournament_battle_table.php
Строк: 37
<?php
use IlluminateSupportFacadesSchema;
use IlluminateDatabaseSchemaBlueprint;
use IlluminateDatabaseMigrationsMigration;
class CreateTournamentBattleTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tournament_battles', function (Blueprint $table) {
$table->increments('id');
$table->string('status')->default('prepare');
$table->integer('players')->default(1);
$table->integer('team1_points')->default(0);
$table->integer('team2_points')->default(0);
$table->integer('time');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tournament_battles');
}
}