diff --git a/database/migrations/a/2020_02_27_134925_add_trainings_necessary_for_operations.php b/database/migrations/a/2020_02_27_134925_add_trainings_necessary_for_operations.php new file mode 100644 index 0000000..ec84c54 --- /dev/null +++ b/database/migrations/a/2020_02_27_134925_add_trainings_necessary_for_operations.php @@ -0,0 +1,35 @@ +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) { + // + }); + } +} \ No newline at end of file diff --git a/database/migrations/a/2020_07_19_203706_add_additional_data_about_firefighters.php b/database/migrations/a/2020_07_19_203706_add_additional_data_about_firefighters.php new file mode 100644 index 0000000..bb8da60 --- /dev/null +++ b/database/migrations/a/2020_07_19_203706_add_additional_data_about_firefighters.php @@ -0,0 +1,47 @@ +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() + { + // + } +}