Laravel-template/database/migrations/2018_09_20_214630_create_races_table.php
2018-10-08 22:31:58 +02:00

41 lines
1016 B
PHP
Executable File

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRacesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('races', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->dateTime('start_date');
$table->dateTime('end_date')->nullable();
$table->integer('duration');
$table->integer('autonomie_kart_sec');
$table->integer('autonomie_kart_humide');
$table->integer('relay_default_duration');
$table->string('stand_duration');
$table->text('comment')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('races');
}
}