51 lines
1.6 KiB
PHP
51 lines
1.6 KiB
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
||
|
class CreateVehiclesTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('vehicles', function (Blueprint $table) {
|
||
|
$table->increments('id');
|
||
|
$table->string('name', 45);
|
||
|
$table->string('codename', 45);
|
||
|
$table->string('brand',45);
|
||
|
$table->string('registrationNumber', 15);
|
||
|
$table->integer('productionYear');
|
||
|
$table->date('ExaminationExpirationDate');
|
||
|
$table->date('insuranceExpirationDate');
|
||
|
$table->string('driveType',45); //układ napędowy
|
||
|
$table->string('chassisType',45); //typ podwozia
|
||
|
$table->string('bodyProducer',45); //producent nadwozia
|
||
|
$table->integer('crewNumber');
|
||
|
$table->integer('foamAgent'); //Ilość środka pianotwórczego w litrach
|
||
|
$table->integer('enginePower'); //Moc silnika w kW
|
||
|
$table->integer('mass'); //Masa całkowita pojazdu
|
||
|
$table->integer('chassisNumber');
|
||
|
$table->integer('engineNumber');
|
||
|
$table->string('fuelType',45);
|
||
|
$table->integer('chassisPoductionYear');
|
||
|
$table->date('entryIntoServiceDate');
|
||
|
$table->string('fireEnginePumpDescription');// Opis autopompy
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('vehicles');
|
||
|
}
|
||
|
}
|