1
0
forked from s421507/eOSP2

Drobne poprawki

This commit is contained in:
s421507 2020-07-20 14:31:54 +02:00
parent 57748d0a14
commit 5615842349
2 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddTrainingsNecessaryForOperations extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('trainings', function (Blueprint $table) {
});
//szkolenia niezbędne w każdej jednostce, określają kto może uczestniczyć w wyjazdach w jakie roli
DB::table('trainings')->insert([ 'id' => '1', 'fireStationID' => '0', 'trainingName' => 'szkolenie podstawowe' ]);
DB::table('trainings')->insert([ 'id' => '2', 'fireStationID' => '0', 'trainingName' => 'dowódca' ]);
DB::table('trainings')->insert([ 'id' => '3', 'fireStationID' => '0', 'trainingName' => 'kierowca-mechanik' ]);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('trainings', function (Blueprint $table) {
//
});
}
}

View File

@ -0,0 +1,47 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddAdditionalDataAboutFirefighters extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
//
$table->string('secondName', 45)->nullable()->default(null);
$table->string('fathersName', 45)->nullable()->default(null);
$table->string('mothersName', 45)->nullable()->default(null);
$table->string('address', 45)->nullable()->default(null);
$table->string('apartment', 45)->nullable()->default(null); //nr domu
$table->string('placeOfBirth', 45)->nullable()->default(null);
$table->string('driversLicense', 20)->nullable()->default(null);
$table->date('joiningOSPDate', 20)->nullable()->default(null);
$table->string('IDSeries', 3)->nullable()->default(null);
$table->string('IDNumber', 6)->nullable()->default(null); //nr dowodu osobistego
$table->date('IDValidUntil', 20)->nullable()->default(null);
$table->string('identityCardNumber', 20)->nullable()->default(null); //nr legitymacji strażackiej
$table->string('homePhoneNumber', 20)->nullable()->default(null);
$table->string('education', 45)->nullable()->default(null);
$table->string('profession', 45)->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}