From ec14d0a284b69d48d2e25f88bcca596ea7ba5fe5 Mon Sep 17 00:00:00 2001 From: Krzysztof Strzelecki Date: Fri, 8 Nov 2019 00:45:47 +0100 Subject: [PATCH] =?UTF-8?q?dodanie=20tabeli=20pojazd=C3=B3w=20do=20bazy=20?= =?UTF-8?q?danych?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...019_11_07_230105_create_vehicles_table.php | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 database/migrations/2019_11_07_230105_create_vehicles_table.php diff --git a/database/migrations/2019_11_07_230105_create_vehicles_table.php b/database/migrations/2019_11_07_230105_create_vehicles_table.php new file mode 100644 index 0000000..2d36964 --- /dev/null +++ b/database/migrations/2019_11_07_230105_create_vehicles_table.php @@ -0,0 +1,50 @@ +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'); + } +}