eOSP2/database/migrations/2019_12_11_214445_create_trainingsFirefighters_table.php

37 lines
850 B
PHP
Raw Normal View History

2019-12-25 22:35:20 +01:00
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTrainingsFireFightersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('trainingsFirefighters', function (Blueprint $table) {
$table->increments('id');
$table->integer('firefighterID');
$table->integer('trainingID');
$table->date('dateOfComplete');
$table->date('dateOfExpiry');
$table->boolean('lifetime');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('trainingsFirefighters');
}
}