diff --git a/database/migrations/2018_08_08_100000_create_telescope_entries_table.php b/database/migrations/2018_08_08_100000_create_telescope_entries_table.php deleted file mode 100644 index 67fdacb..0000000 --- a/database/migrations/2018_08_08_100000_create_telescope_entries_table.php +++ /dev/null @@ -1,77 +0,0 @@ -getConnection()); - - // KONTROL: Eğer tablo yoksa oluştur - if (! $schema->hasTable('telescope_entries')) { - $schema->create('telescope_entries', function (Blueprint $table) { - $table->bigIncrements('sequence'); - $table->uuid('uuid'); - $table->uuid('batch_id'); - $table->string('family_hash')->nullable(); - $table->boolean('should_display_on_index')->default(true); - $table->string('type', 20); - $table->longText('content'); - $table->dateTime('created_at')->nullable(); - - $table->unique('uuid'); - $table->index('batch_id'); - $table->index('family_hash'); - $table->index('created_at'); - $table->index(['type', 'should_display_on_index']); - }); - } - - // Diğer tablolar için de aynı kontrolü ekleyebilirsiniz - if (! $schema->hasTable('telescope_entries_tags')) { - $schema->create('telescope_entries_tags', function (Blueprint $table) { - $table->uuid('entry_uuid'); - $table->string('tag'); - - $table->index(['entry_uuid', 'tag']); - $table->index('tag'); - - $table->foreign('entry_uuid') - ->references('uuid') - ->on('telescope_entries') - ->onDelete('cascade'); - }); - } - - if (! $schema->hasTable('telescope_monitoring')) { - $schema->create('telescope_monitoring', function (Blueprint $table) { - $table->string('tag'); - }); - } -} - /** - * Reverse the migrations. - */ - public function down(): void - { - $schema = Schema::connection($this->getConnection()); - - $schema->dropIfExists('telescope_entries_tags'); - $schema->dropIfExists('telescope_entries'); - $schema->dropIfExists('telescope_monitoring'); - } -}; diff --git a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php deleted file mode 100644 index 4315e16..0000000 --- a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php +++ /dev/null @@ -1,36 +0,0 @@ -id(); - $table->morphs('tokenable'); - $table->string('name'); - $table->string('token', 64)->unique(); - $table->text('abilities')->nullable(); - $table->timestamp('last_used_at')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('personal_access_tokens'); - } -} diff --git a/database/migrations/2023_03_03_053628_create_naks_certificates_table.php b/database/migrations/2023_03_03_053628_create_naks_certificates_table.php deleted file mode 100644 index 2518949..0000000 --- a/database/migrations/2023_03_03_053628_create_naks_certificates_table.php +++ /dev/null @@ -1,67 +0,0 @@ -getConnection()); - if (! $schema->hasTable('naks_certificates')) { - Schema::create('naks_certificates', function (Blueprint $table) { - $table->id(); - $table->timestamps(); - $table->string('short_number')->nullable()->default(null); - $table->string('certificate_no')->nullable(); - $table->string('short_name')->nullable()->default(null); - $table->date('valid_from')->nullable()->default(null); - $table->date('valid_to')->nullable()->default(null); - $table->string('welding_method')->nullable(); - $table->string('mat_group_1')->nullable(); - $table->string('mat_group_2')->nullable(); - $table->string('welding_consumable')->nullable(); - $table->string('technology_category')->nullable(); - $table->string('work_type')->nullable(); - $table->float('min_dia', 255, 2)->nullable(); - $table->float('max_dia', 255, 2)->nullable(); - $table->float('min_dia2', 255, 2)->nullable(); - $table->float('max_dia2', 255, 2)->nullable(); - $table->float('min_thick', 255, 2)->nullable(); - $table->float('max_thick', 255, 2)->nullable(); - $table->float('min_thick2', 255, 2)->nullable(); - $table->float('max_thick2', 255, 2)->nullable(); - $table->string('joint_type')->nullable(); - $table->string('pwht')->nullable(); - $table->string('connection_type')->nullable(); - $table->string('joint_view')->nullable(); - $table->string('angle_type')->nullable(); - $table->string('position')->nullable(); - $table->string('pre_heating')->nullable(); - $table->string('shielding_gas')->nullable(); - $table->string('electrode_coating')->nullable(); - $table->string('welding_equipment')->nullable(); - $table->string('performed_works_type')->nullable(); - $table->string('remarks')->nullable(); - }); - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('naks_certificates'); - } -} diff --git a/database/migrations/2023_03_03_055354_create_naks_centers_table.php b/database/migrations/2023_03_03_055354_create_naks_centers_table.php deleted file mode 100644 index 89a2a38..0000000 --- a/database/migrations/2023_03_03_055354_create_naks_centers_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->string('center_no')->unique()->nullable(); - $table->string('center_name')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('naks_centers'); - } -} diff --git a/database/migrations/2023_03_07_093508_create_welding_methods_table.php b/database/migrations/2023_03_07_093508_create_welding_methods_table.php deleted file mode 100644 index 2e87b6c..0000000 --- a/database/migrations/2023_03_07_093508_create_welding_methods_table.php +++ /dev/null @@ -1,39 +0,0 @@ -id(); - $table->timestamps(); - $table->string('en_welding_number')->unique()->nullable(); - $table->string('russian_definition')->nullable(); - $table->string('iso_4063_definition')->nullable(); - $table->string('aws')->nullable(); - $table->string('iso_short_name')->nullable(); - $table->string('aws_short_name')->nullable(); - $table->string('ru_short_name')->nullable(); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('welding_methods'); - } -} diff --git a/database/migrations/2023_03_07_181557_create_materials_table.php b/database/migrations/2023_03_07_181557_create_materials_table.php deleted file mode 100644 index 918ffb8..0000000 --- a/database/migrations/2023_03_07_181557_create_materials_table.php +++ /dev/null @@ -1,55 +0,0 @@ -id(); - $table->timestamps(); - $table->string('steel_grade')->nullable(); - $table->string('short_name')->nullable(); - $table->string('product_name')->nullable(); - $table->string('ru_group')->nullable(); - $table->string('iso')->nullable(); - $table->string('asme_number')->nullable(); - $table->string('carbon')->nullable(); - $table->string('silicon')->nullable(); - $table->string('manganese')->nullable(); - $table->string('phosphorus')->nullable(); - $table->string('sulfur')->nullable(); - $table->string('chromium')->nullable(); - $table->string('nickel')->nullable(); - $table->string('molybdenum')->nullable(); - $table->string('copper')->nullable(); - $table->string('aluminium')->nullable(); - $table->string('titanium')->nullable(); - $table->string('vanadium')->nullable(); - $table->string('tungsten')->nullable(); - $table->string('columbium')->nullable(); - $table->string('tensile_strength')->nullable(); - $table->string('yield_point')->nullable(); - $table->string('elongation')->nullable(); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('materials'); - } -} diff --git a/database/migrations/2023_03_07_193958_create_p_numbers_table.php b/database/migrations/2023_03_07_193958_create_p_numbers_table.php deleted file mode 100644 index e7d6bf5..0000000 --- a/database/migrations/2023_03_07_193958_create_p_numbers_table.php +++ /dev/null @@ -1,35 +0,0 @@ -id(); - $table->timestamps(); - $table->string('asme')->nullable(); - $table->string('base_metal')->nullable(); - - }); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('p_numbers'); - } -} diff --git a/database/migrations/2023_03_07_194815_create_welding_positions_table.php b/database/migrations/2023_03_07_194815_create_welding_positions_table.php deleted file mode 100644 index 233a9c0..0000000 --- a/database/migrations/2023_03_07_194815_create_welding_positions_table.php +++ /dev/null @@ -1,34 +0,0 @@ -id(); - $table->timestamps(); - $table->string('gost')->nullable(); - $table->string('en')->nullable(); - $table->string('asme')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('welding_positions'); - } -} diff --git a/database/migrations/2023_03_08_063328_create_hazard_classes_table.php b/database/migrations/2023_03_08_063328_create_hazard_classes_table.php deleted file mode 100644 index 23a2295..0000000 --- a/database/migrations/2023_03_08_063328_create_hazard_classes_table.php +++ /dev/null @@ -1,41 +0,0 @@ -id(); - $table->timestamps(); - $table->string('serial_number')->unique()->nullable(); - $table->string('category_serial_number')->nullable(); - $table->string('category_title_en')->nullable(); - $table->string('category_title_tr')->nullable(); - $table->string('category_title_ru')->nullable(); - $table->string('title_en')->nullable(); - $table->string('title_tr')->nullable(); - $table->string('title_ru')->nullable(); - - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('hazard_classes'); - } -} diff --git a/database/migrations/2023_03_08_090340_create_joint_types_table.php b/database/migrations/2023_03_08_090340_create_joint_types_table.php deleted file mode 100644 index 153f380..0000000 --- a/database/migrations/2023_03_08_090340_create_joint_types_table.php +++ /dev/null @@ -1,36 +0,0 @@ -id(); - $table->timestamps(); - $table->string('naks_name')->nullable(); - $table->string('short_name_ru')->nullable(); - $table->string('short_name_en')->nullable(); - $table->string('definition_ru')->nullable(); - $table->string('definition_en')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('joint_types'); - } -} diff --git a/database/migrations/2023_03_08_092526_create_joint_views_table.php b/database/migrations/2023_03_08_092526_create_joint_views_table.php deleted file mode 100644 index 1f4fb25..0000000 --- a/database/migrations/2023_03_08_092526_create_joint_views_table.php +++ /dev/null @@ -1,35 +0,0 @@ -id(); - $table->timestamps(); - $table->string('definition_ru')->nullable(); - $table->string('short_name_ru')->nullable(); - $table->string('short_name_en')->nullable(); - $table->string('definition_en')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('joint_views'); - } -} diff --git a/database/migrations/2023_03_08_112214_create_electrode_coatings_table.php b/database/migrations/2023_03_08_112214_create_electrode_coatings_table.php deleted file mode 100644 index 266c56e..0000000 --- a/database/migrations/2023_03_08_112214_create_electrode_coatings_table.php +++ /dev/null @@ -1,35 +0,0 @@ -id(); - $table->timestamps(); - $table->string('short_name_ru')->nullable(); - $table->string('definition_ru')->nullable(); - $table->string('short_name_en')->nullable(); - $table->string('definition_en')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('electrode_coatings'); - } -} diff --git a/database/migrations/2023_03_08_112845_create_ru_welding_geometries_table.php b/database/migrations/2023_03_08_112845_create_ru_welding_geometries_table.php deleted file mode 100644 index 76277f9..0000000 --- a/database/migrations/2023_03_08_112845_create_ru_welding_geometries_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->timestamps(); - $table->string('connection_symbol')->nullable(); - $table->string('connection_symbol2')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('ru_welding_geometries'); - } -} diff --git a/database/migrations/2023_03_08_113647_create_current_types_table.php b/database/migrations/2023_03_08_113647_create_current_types_table.php deleted file mode 100644 index 2d48761..0000000 --- a/database/migrations/2023_03_08_113647_create_current_types_table.php +++ /dev/null @@ -1,32 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('current_types'); - } -} diff --git a/database/migrations/2023_03_08_114047_create_welding_consumables_table.php b/database/migrations/2023_03_08_114047_create_welding_consumables_table.php deleted file mode 100644 index 351804b..0000000 --- a/database/migrations/2023_03_08_114047_create_welding_consumables_table.php +++ /dev/null @@ -1,41 +0,0 @@ -id(); - $table->timestamps(); - $table->string('company')->nullable(); - $table->string('brend')->nullable(); - $table->string('category')->nullable(); - $table->string('short_name')->nullable(); - $table->string('en_class')->nullable(); - $table->string('en_specification')->nullable(); - $table->string('aws_class')->nullable(); - $table->string('aws_specification')->nullable(); - $table->string('gost_class')->nullable(); - $table->string('gost_specification')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('welding_consumables'); - } -} diff --git a/database/migrations/2023_03_08_115421_create_product_types_table.php b/database/migrations/2023_03_08_115421_create_product_types_table.php deleted file mode 100644 index a164750..0000000 --- a/database/migrations/2023_03_08_115421_create_product_types_table.php +++ /dev/null @@ -1,35 +0,0 @@ -id(); - $table->timestamps(); - $table->string('short_name_ru')->nullable(); - $table->string('definition_ru')->nullable(); - $table->string('short_name_en')->nullable(); - $table->string('definition_en')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('product_types'); - } -} diff --git a/database/migrations/2023_03_08_120036_create_welding_machine_types_table.php b/database/migrations/2023_03_08_120036_create_welding_machine_types_table.php deleted file mode 100644 index 8b1a686..0000000 --- a/database/migrations/2023_03_08_120036_create_welding_machine_types_table.php +++ /dev/null @@ -1,36 +0,0 @@ -id(); - $table->timestamps(); - $table->string('code')->nullable(); - $table->string('type')->nullable(); - $table->string('purpose_ru')->nullable(); - $table->string('welding_equipment')->nullable(); - $table->string('purpose_en')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('welding_machine_types'); - } -} diff --git a/database/migrations/2023_03_08_120739_create_welding_materials_brends_table.php b/database/migrations/2023_03_08_120739_create_welding_materials_brends_table.php deleted file mode 100644 index e008b40..0000000 --- a/database/migrations/2023_03_08_120739_create_welding_materials_brends_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title')->nullable(); - $table->string('brend')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('welding_materials_brends'); - } -} diff --git a/database/migrations/2023_03_08_154022_create_prosedure_qualification_records_table.php b/database/migrations/2023_03_08_154022_create_prosedure_qualification_records_table.php deleted file mode 100644 index 1f55387..0000000 --- a/database/migrations/2023_03_08_154022_create_prosedure_qualification_records_table.php +++ /dev/null @@ -1,82 +0,0 @@ -id(); - $table->timestamps(); - $table->string('pqr_no')->unique(); - $table->string('rev_no')->nullable()->default(null); - $table->string('naks_technology')->nullable()->default(null); - $table->string('technology_category')->nullable()->default(null); - $table->string('pwps_no')->nullable()->default(null); - $table->string('base_metal_used_for_pqr_coupon')->nullable()->default(null); - $table->date('date')->nullable(); - $table->string('welding_process')->nullable()->default(null); - $table->string('welding_position')->nullable()->default(null); - $table->string('type_grade_1')->nullable()->default(null); - $table->string('type_grade_2')->nullable()->default(null); - $table->string('russian_standart_group_no')->nullable()->default(null); - $table->string('russian_standart_group_no_2')->nullable()->default(null); - $table->float('p_no_to', 255, 2)->nullable()->default(null); - $table->float('p_no_from', 255, 2)->nullable()->default(null); - $table->float('outside_diameter', 255, 2)->nullable()->default(null); - $table->float('thickness', 255, 2)->nullable()->default(null); - $table->string('brend')->nullable()->default(null); - $table->string('filter_metals_aws_sfa_no_class')->nullable()->default(null); - $table->string('filter_metals_gost')->nullable()->default(null); - $table->float('pre_heating_min', 255, 2)->nullable()->default(null); - $table->float('inter_pass_max', 255, 2)->nullable()->default(null); - $table->float('pwht_temp_range', 255, 2)->nullable()->default(null); - $table->float('pwht_min_time', 255, 2)->nullable()->default(null); - $table->string('shielding_gas')->nullable()->default(null); - $table->string('backing_gas')->nullable()->default(null); - $table->string('current_polarity')->nullable()->default(null); - $table->string('joint_design')->nullable()->default(null); - $table->string('base_metal')->nullable()->default(null); - $table->string('qualitication_group_of_parent_material')->nullable()->default(null); - $table->float('qualitication_outside_diameter_min', 255, 2)->nullable()->default(null); - $table->float('qualitication_outside_diameter_max', 255, 2)->nullable()->default(null); - $table->float('thickness_min', 255, 2)->nullable()->default(null); - $table->float('thickness_max', 255, 2)->nullable()->default(null); - $table->string('qualitication_process')->nullable()->default(null); - $table->float('pre_heating', 255, 2)->nullable()->default(null); - $table->string('qualitication_pwht')->nullable()->default(null); - $table->string('qualitication_position')->nullable()->default(null); - $table->string('qualitication_type_of_joint')->nullable()->default(null); - $table->string('qualitication_backing_gas')->nullable()->default(null); - $table->date('approved_date')->nullable()->default(null); - $table->string('status')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('prosedure_qualification_records'); - } -} diff --git a/database/migrations/2023_03_10_085701_create_w_p_s_table.php b/database/migrations/2023_03_10_085701_create_w_p_s_table.php deleted file mode 100644 index e4ab659..0000000 --- a/database/migrations/2023_03_10_085701_create_w_p_s_table.php +++ /dev/null @@ -1,65 +0,0 @@ -id(); - $table->timestamps(); - $table->string('type')->nullable()->default(null); - $table->string('details')->unique(); - $table->string('rev_no')->nullable()->default(null); - $table->string('pqr_no')->nullable()->default(null); - $table->date('date')->nullable()->default(null); - $table->string('naks_certificate_no')->nullable()->default(null); - $table->string('technology_category')->nullable()->default(null); - $table->string('welding_process')->nullable()->default(null); - $table->string('joint_type')->nullable()->default(null); - $table->string('joint_type_ru')->nullable()->default(null); - $table->string('welding_position')->nullable()->default(null); - $table->string('material_type_grade')->nullable()->default(null); - $table->string('russian_standard_group_no_1')->nullable()->default(null); - $table->string('russian_standard_group_no_2')->nullable()->default(null); - $table->integer('p_no_from')->nullable()->default(null); - $table->integer('p_no_to')->nullable()->default(null); - $table->float('min_outside_diameter', 255, 2)->nullable()->default(null); - $table->float('max_outside_diameter', 255, 2)->nullable()->default(null); - $table->float('min_thick',255,2)->nullable()->default(null); - $table->float('max_thick',255,2)->nullable()->default(null); - $table->string('filler_metals_sfa_no')->nullable()->default(null); - $table->string('filler_metals_gost')->nullable()->default(null); - $table->float('pre_heating_min', 255, 2)->nullable()->default(null); - $table->string('inter_pass_max')->nullable()->default(null); - $table->string('pwht_temp_range')->nullable()->default(null); - $table->string('pwht_min_time')->nullable()->default(null); - $table->string('shielding_gas')->nullable()->default(null); - $table->string('backing_gas')->nullable()->default(null); - $table->string('current_polarity')->nullable()->default(null); - $table->string('joint_type_definition')->nullable()->default(null); - $table->string('work_type')->nullable()->default(null); - $table->string('remarks')->nullable()->default(null); - $table->date('approved_date')->nullable()->default(null); - $table->string('status')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('w_p_s'); - } -} diff --git a/database/migrations/2023_03_11_100511_create_naks_welders_table.php b/database/migrations/2023_03_11_100511_create_naks_welders_table.php deleted file mode 100644 index 9501d40..0000000 --- a/database/migrations/2023_03_11_100511_create_naks_welders_table.php +++ /dev/null @@ -1,66 +0,0 @@ -id(); - $table->timestamps(); - $table->string('user_id')->nullable()->default(null); - $table->string('welder_name_ru')->nullable()->default(null); - $table->string('welder_name_en')->nullable()->default(null); - $table->date('year_of_birth')->nullable()->default(null); - $table->string('qualitification_category')->nullable()->default(null); - $table->string('work_experience')->nullable()->default(null); - $table->string('welder_id')->nullable()->default(null); - $table->string('process')->nullable()->default(null); - $table->string('component')->nullable()->default(null); - $table->string('weld_type')->nullable()->default(null); - $table->string('naks_certificate_no')->nullable()->default(null); - $table->date('period_of_validity')->nullable()->default(null); - $table->string('group_of_technical_device')->nullable()->default(null); - - for($k=1;$k<=4;$k++) { - $table->string('material_' . $k)->nullable()->default(null); - $table->float('diameter_min_' . $k, 255, 2)->nullable()->default(null); - $table->float('diameter_max_' . $k, 255, 2)->nullable()->default(null); - $table->float('min_thick_' . $k, 255, 2)->nullable()->default(null); - $table->float('max_thick_' . $k, 255, 2)->nullable()->default(null); - } - - - /* - $table->float('diameter_min_2', 255, 2)->nullable()->default(null); - $table->float('diameter_max_2', 255, 2)->nullable()->default(null); - $table->float('min_thick_2', 255, 2)->nullable()->default(null); - $table->float('max_thick_2', 255, 2)->nullable()->default(null); - */ - $table->string('welding_position')->nullable()->default(null); - $table->string('company')->nullable()->default(null); - $table->string('status')->nullable()->default(null); - $table->string('order_no')->nullable()->default(null); - $table->date('date')->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('naks_welders'); - } -} diff --git a/database/migrations/2023_03_11_101159_create_welder_tests_table.php b/database/migrations/2023_03_11_101159_create_welder_tests_table.php deleted file mode 100644 index d71c1b2..0000000 --- a/database/migrations/2023_03_11_101159_create_welder_tests_table.php +++ /dev/null @@ -1,101 +0,0 @@ -id(); - $table->timestamps(); - $table->string('wpq_document_no')->nullable()->default(null); - $table->string('naks_no')->nullable()->default(null); - $table->string('name_surname')->nullable()->default(null); - $table->string('naks_id')->nullable()->default(null); - $table->string('technology_range')->nullable()->default(null); - $table->string('material_group_gost')->nullable()->default(null); - $table->date('naks_validity')->nullable()->default(null); - $table->string('wps_no')->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('kss_number')->nullable()->default(null); - $table->string('material_group_1')->nullable()->default(null); - $table->string('material_group_2')->nullable()->default(null); - $table->string('grade_1')->nullable()->default(null); - $table->string('grade_2')->nullable()->default(null); - $table->string('joint_type')->nullable()->default(null); - $table->float('diameter', 255, 2)->nullable()->default(null); - $table->float('thickness', 255, 2)->nullable()->default(null); - $table->float('dia_min', 255, 2)->nullable()->default(null); - $table->float('dia_max', 255, 2)->nullable()->default(null); - $table->float('thk_min', 255, 2)->nullable()->default(null); - $table->float('thk_max', 255, 2)->nullable()->default(null); - $table->string('welding_method')->nullable()->default(null); - $table->string('coupon_position')->nullable()->default(null); - $table->string('wire')->nullable()->default(null); - $table->string('electrode')->nullable()->default(null); - $table->string('flux')->nullable()->default(null); - $table->string('shield_gas')->nullable()->default(null); - $table->string('naks_technology_group')->nullable()->default(null); - $table->string('evaluated_norm')->nullable()->default(null); - $table->date('vt_date')->nullable()->default(null); - $table->string('vt_report_no')->nullable()->default(null); - $table->string('vt_result')->nullable()->default(null); - $table->string('pre_heat')->nullable()->default(null); - $table->date('pwht_date')->nullable()->default(null); - $table->string('pwht_report_no')->nullable()->default(null); - $table->string('pwht_operator_name_surname')->nullable()->default(null); - $table->string('pwht_operator_id')->nullable()->default(null); - $table->date('ht_date')->nullable()->default(null); - $table->string('ht_report_no')->nullable()->default(null); - $table->string('ht_result')->nullable()->default(null); - $table->date('pt_date')->nullable()->default(null); - $table->string('pt_report_no')->nullable()->default(null); - $table->string('pt_result')->nullable()->default(null); - $table->date('pmi_date')->nullable()->default(null); - $table->string('pmi_report_no')->nullable()->default(null); - $table->string('pmi_result')->nullable()->default(null); - $table->date('rt_date')->nullable()->default(null); - $table->string('rt_report_no')->nullable()->default(null); - $table->string('rt_result')->nullable()->default(null); - $table->date('tensile_date')->nullable()->default(null); - $table->string('tensile_report_no')->nullable()->default(null); - $table->string('tensile_result')->nullable()->default(null); - $table->date('bending_date')->nullable()->default(null); - $table->string('bending_report_no')->nullable()->default(null); - $table->string('bending_result')->nullable()->default(null); - $table->date('impact_date')->nullable()->default(null); - $table->string('impact_report_no')->nullable()->default(null); - $table->string('impact_result')->nullable()->default(null); - $table->date('metallography_date')->nullable()->default(null); - $table->string('metallography_report_no')->nullable()->default(null); - $table->string('metallography_result')->nullable()->default(null); - $table->date('ferrit_date')->nullable()->default(null); - $table->string('ferrit_report_no')->nullable()->default(null); - $table->string('ferrit_result')->nullable()->default(null); - $table->string('intergranullar_corrosion_test_date')->nullable()->default(null); - $table->string('intergranullar_corrosion_report_no')->nullable()->default(null); - $table->string('intergranullar_corrosion_result')->nullable()->default(null); - $table->date('approval_date')->nullable()->default(null); - $table->string('shop_or_field')->nullable()->default(null); - $table->string('status')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('welder_tests'); - } -} diff --git a/database/migrations/2023_03_11_104034_create_naks_consumables_table.php b/database/migrations/2023_03_11_104034_create_naks_consumables_table.php deleted file mode 100644 index 81cc9ba..0000000 --- a/database/migrations/2023_03_11_104034_create_naks_consumables_table.php +++ /dev/null @@ -1,53 +0,0 @@ -id(); - $table->timestamps(); - $table->string('type_of_consumable')->nullable()->default(null); - $table->string('brand')->nullable()->default(null); - $table->string('product_name')->nullable()->default(null); - $table->string('aws_classification')->nullable()->default(null); - $table->float('diameter', 255, 2)->nullable()->default(null); - $table->string('group_of_base_material')->nullable()->default(null); - $table->string('base_material')->nullable()->default(null); - $table->float('qty', 255, 2)->nullable()->default(null); - $table->integer('unit')->nullable()->default(null); - $table->string('batch_number')->nullable()->default(null); - $table->string('naks_certificate_no')->nullable()->default(null); - $table->date('naks_certificate_date')->nullable()->default(null); - $table->date('naks_valid_date')->nullable()->default(null); - $table->string('naks_tech_group')->nullable()->default(null); - $table->string('inspection_test_report')->nullable()->default(null); - $table->string('inspection_certificate_standart')->nullable()->default(null); - $table->date('certification_date')->nullable()->default(null); - $table->float('certification_qty', 255, 2)->nullable()->default(null); - $table->string('icm_inspection_status')->nullable()->default(null); - $table->string('icm_rfi_no')->nullable()->default(null); - $table->string('icm_akt_no')->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('naks_consumables'); - } -} diff --git a/database/migrations/2023_03_11_104747_create_register_of_experts_table.php b/database/migrations/2023_03_11_104747_create_register_of_experts_table.php deleted file mode 100644 index e39d700..0000000 --- a/database/migrations/2023_03_11_104747_create_register_of_experts_table.php +++ /dev/null @@ -1,44 +0,0 @@ -id(); - $table->timestamps(); - $table->string('location')->nullable()->default(null); - $table->string('employees_id')->nullable()->default(null); - $table->string('name_ru')->nullable()->default(null); - $table->string('name_en')->nullable()->default(null); - $table->date('date_of_birth')->nullable()->default(null); - $table->string('certificate_no')->unique(); - $table->string('welding_specialist_level')->nullable()->default(null); - $table->string('groups_of_technical_devices')->nullable()->default(null); - $table->date('date_of_attestation')->nullable()->default(null); - $table->date('expration_of_the_certificate')->nullable()->default(null); - $table->string('permit_no')->nullable()->default(null); - $table->date('permit_date')->nullable()->default(null); - $table->string('comments')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('register_of_experts'); - } -} diff --git a/database/migrations/2023_03_11_150719_create_welding_equipment_table.php b/database/migrations/2023_03_11_150719_create_welding_equipment_table.php deleted file mode 100644 index b75f861..0000000 --- a/database/migrations/2023_03_11_150719_create_welding_equipment_table.php +++ /dev/null @@ -1,43 +0,0 @@ -id(); - $table->timestamps(); - $table->string('location')->nullable()->default(null); - $table->string('attestation')->unique(); - $table->string('producer')->nullable()->default(null); - $table->string('type_of_welding_machine')->nullable()->default(null); - $table->string('brand')->nullable()->default(null); - $table->string('manufacturer_code')->nullable()->default(null); - $table->string('type_of_weld')->nullable()->default(null); - $table->string('groups_of_technical_devices')->nullable()->default(null); - $table->date('date_of_issue')->nullable()->default(null); - $table->date('valid_until')->nullable()->default(null); - $table->string('working_status')->nullable()->default(null); - $table->string('remarks')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('welding_equipment'); - } -} diff --git a/database/migrations/2023_03_13_150344_create_work_types_table.php b/database/migrations/2023_03_13_150344_create_work_types_table.php deleted file mode 100644 index 6563073..0000000 --- a/database/migrations/2023_03_13_150344_create_work_types_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title_en')->nullable()->default(null); - $table->string('title_ru')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('work_types'); - } -} diff --git a/database/migrations/2023_03_13_153033_create_performed_work_types_table.php b/database/migrations/2023_03_13_153033_create_performed_work_types_table.php deleted file mode 100644 index 35e55af..0000000 --- a/database/migrations/2023_03_13_153033_create_performed_work_types_table.php +++ /dev/null @@ -1,32 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('performed_work_types'); - } -} diff --git a/database/migrations/2023_03_17_091248_create_subcontractors_table.php b/database/migrations/2023_03_17_091248_create_subcontractors_table.php deleted file mode 100644 index 825ad02..0000000 --- a/database/migrations/2023_03_17_091248_create_subcontractors_table.php +++ /dev/null @@ -1,36 +0,0 @@ -id(); - $table->timestamps(); - $table->string('company_name_en')->nullable()->default(null); - $table->string('company_name_ru')->nullable()->default(null); - $table->string('job_description')->nullable()->default(null); - $table->string('operation_type')->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('subcontractors'); - } -} diff --git a/database/migrations/2023_03_17_101940_create_material_group_test_pieces_table.php b/database/migrations/2023_03_17_101940_create_material_group_test_pieces_table.php deleted file mode 100644 index f789542..0000000 --- a/database/migrations/2023_03_17_101940_create_material_group_test_pieces_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->timestamps(); - $table->string('incoming_value')->nullable()->default(null); - $table->string('provision_value')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('material_group_test_pieces'); - } -} diff --git a/database/migrations/2023_03_21_115042_create_type_of_consumables_table.php b/database/migrations/2023_03_21_115042_create_type_of_consumables_table.php deleted file mode 100644 index d145f26..0000000 --- a/database/migrations/2023_03_21_115042_create_type_of_consumables_table.php +++ /dev/null @@ -1,36 +0,0 @@ -id(); - $table->timestamps(); - $table->string("title_en")->nullable()->default(null); - $table->string("title_ru")->nullable()->default(null); - $table->string("electrode")->nullable()->default(null); - $table->string("wire")->nullable()->default(null); - $table->string("gas")->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('type_of_consumables'); - } -} diff --git a/database/migrations/2023_03_24_090832_create_job_descriptions_table.php b/database/migrations/2023_03_24_090832_create_job_descriptions_table.php deleted file mode 100644 index caaef0d..0000000 --- a/database/migrations/2023_03_24_090832_create_job_descriptions_table.php +++ /dev/null @@ -1,32 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('job_descriptions'); - } -} diff --git a/database/migrations/2023_04_04_114017_create_line_lists_table.php b/database/migrations/2023_04_04_114017_create_line_lists_table.php deleted file mode 100644 index 3bb31b3..0000000 --- a/database/migrations/2023_04_04_114017_create_line_lists_table.php +++ /dev/null @@ -1,58 +0,0 @@ -id(); - $table->timestamps(); - $table->string('unit')->nullable()->default(null); - $table->string('line_no')->nullable()->default(null); - $table->string('sheet')->nullable()->default(null); - $table->string('p_id')->nullable()->default(null); - $table->string('line_specification')->nullable()->default(null); - $table->string('painting_cycle')->nullable()->default(null); - $table->string('external_finish_type')->nullable()->default(null); - $table->string('rev')->nullable()->default(null); - $table->string('fluid_code')->nullable()->default(null); - $table->string('from')->nullable()->default(null); - $table->string('to')->nullable()->default(null); - $table->string('pipe_material_class')->nullable()->default(null); - $table->string('dn')->nullable()->default(null); - $table->string('design_pressure_mpa')->nullable()->default(null); - $table->string('working_pressure_mpa')->nullable()->default(null); - $table->string('working_temperature')->nullable()->default(null); - $table->string('design_temperature')->nullable()->default(null); - $table->string('density')->nullable()->default(null); - $table->string('ndt')->nullable()->default(null); - $table->string('pwht')->nullable()->default(null); - $table->string('asme_fluid_service')->nullable()->default(null); - $table->string('category')->nullable()->default(null); - $table->string('fluid_group')->nullable()->default(null); - $table->string('test_media')->nullable()->default(null); - $table->string('test_pressure_mpa')->nullable()->default(null); - $table->string('pneumatic_test_pressure')->nullable()->default(null); - $table->string('remarks')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('line_lists'); - } -} diff --git a/database/migrations/2023_04_04_145233_create_nde_matrices_table.php b/database/migrations/2023_04_04_145233_create_nde_matrices_table.php deleted file mode 100644 index 0697651..0000000 --- a/database/migrations/2023_04_04_145233_create_nde_matrices_table.php +++ /dev/null @@ -1,55 +0,0 @@ -id(); - $table->timestamps(); - $table->string('group_no')->nullable()->default(null); - $table->string('design_area')->nullable()->default(null); - // $table->string('fluid_line')->nullable()->default(null); - $table->string('fluid')->nullable()->default(null); - $table->string('line')->nullable()->default(null); - $table->string('line_spec')->nullable()->default(null); - $table->string('material')->nullable()->default(null); - $table->string('operation_temp')->nullable()->default(null); - $table->string('operations_pressure_kg')->nullable()->default(null); - $table->string('type_of_joint')->nullable()->default(null); - $table->string('pwht')->nullable()->default(null); - $table->string('ht')->nullable()->default(null); - $table->string('ndt')->nullable()->default(null); - $table->string('piping_class_according_to_gost')->nullable()->default(null); - $table->string('piping_group')->nullable()->default(null); - $table->float('rt', 255,2)->nullable()->default(null); - $table->float('ut', 255,2)->nullable()->default(null); - $table->float('mt', 255,2)->nullable()->default(null); - $table->float('pt', 255,2)->nullable()->default(null); - $table->string('phased_array')->nullable()->default(null); - $table->string('pt_procedure_approved')->nullable()->default(null); - $table->string('pmi')->nullable()->default(null); - $table->string('fn')->nullable()->default(null); - $table->string('rev')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('nde_matrices'); - } -} diff --git a/database/migrations/2023_04_05_053425_create_welder_test_plans_table.php b/database/migrations/2023_04_05_053425_create_welder_test_plans_table.php deleted file mode 100644 index 2b34111..0000000 --- a/database/migrations/2023_04_05_053425_create_welder_test_plans_table.php +++ /dev/null @@ -1,45 +0,0 @@ -id(); - $table->timestamps(); - $table->string('index')->nullable()->default(null); - $table->string('group_id')->nullable()->default(null); - $table->string('material_name')->nullable()->default(null); - $table->string('kss_number')->nullable()->default(null); - $table->string('welder_id')->nullable()->default(null); - $table->string('welder_name_ru')->nullable()->default(null); - $table->string('welder_name_en')->nullable()->default(null); - $table->string('third_party')->nullable()->default(null); - $table->string('emplooyer')->nullable()->default(null); - $table->string('hash')->nullable()->default(null); - $table->string('color')->nullable()->default(null); - $table->string('remarks')->nullable()->default(null); - $table->string('user_id')->nullable()->default(null); - $table->string('alias')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('welder_test_plans'); - } -} diff --git a/database/migrations/2023_04_05_194603_create_welder_confirm_checks_table.php b/database/migrations/2023_04_05_194603_create_welder_confirm_checks_table.php deleted file mode 100644 index 39c397f..0000000 --- a/database/migrations/2023_04_05_194603_create_welder_confirm_checks_table.php +++ /dev/null @@ -1,34 +0,0 @@ -id(); - $table->timestamps(); - $table->string('welder_id')->nullable()->default(null); - $table->string('third_party')->nullable()->default(null); - $table->string('emplooyer')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('welder_confirm_checks'); - } -} diff --git a/database/migrations/2023_04_06_120455_create_weld_logs_table.php b/database/migrations/2023_04_06_120455_create_weld_logs_table.php deleted file mode 100644 index 3113f3f..0000000 --- a/database/migrations/2023_04_06_120455_create_weld_logs_table.php +++ /dev/null @@ -1,193 +0,0 @@ -id(); - $table->timestamps(); - $table->string('general_contractor', 100)->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('ste_subcontractor', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('main_material', 100)->nullable()->default(null); - $table->string('main_nps', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('piping_class', 100)->nullable()->default(null); - $table->string('design_temperature_s', 100)->nullable()->default(null); - $table->string('design_pressure_mpa', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('painting_cycle', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->date('spool_release_date')->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->date('wps_approval_date')->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_3', 100)->nullable()->default(null); - $table->string('welding_materials_3_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_3_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - $table->string('mechanic_supervisor', 100)->nullable()->default(null); - $table->date('mechanic_supervisor_control_date')->nullable()->default(null); - $table->string('welding_supervisor', 100)->nullable()->default(null); - $table->date('welding_supervisor_control_date')->nullable()->default(null); - $table->string('certificate_no_1', 100)->nullable()->default(null); - $table->string('wpq_report_1', 100)->nullable()->default(null); - $table->string('certificate_no_2', 100)->nullable()->default(null); - $table->string('wpq_report_2', 100)->nullable()->default(null); - $table->string('pose_no_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('pose_no_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outside_diameter_2', 100)->nullable()->default(null); - $table->string('wall_thickness_2', 100)->nullable()->default(null); - $table->string('ndt_percent', 100)->nullable()->default(null); - $table->string('vt_scope', 100)->nullable()->default(null); - $table->string('vt_request_no', 100)->nullable()->default(null); - $table->string('vt_report', 100)->nullable()->default(null); - $table->date('date_of_vt')->nullable()->default(null); - $table->date('vt_request_date')->nullable()->default(null); - $table->string('test_laboratory_vt', 100)->nullable()->default(null); - - $table->string('vt_result', 100)->nullable()->default(null); - - $table->string('rt_scope', 100)->nullable()->default(null); - $table->string('rt_request_no', 100)->nullable()->default(null); - $table->string('rt_report', 100)->nullable()->default(null); - $table->date('rt_test_date')->nullable()->default(null); - $table->date('rt_request_date')->nullable()->default(null); - $table->string('test_laboratory_rt', 100)->nullable()->default(null); - $table->string('rt_result', 100)->nullable()->default(null); - - $table->string('ut_scope', 100)->nullable()->default(null); - $table->string('ut_request_no', 100)->nullable()->default(null); - $table->string('ut_report', 100)->nullable()->default(null); - $table->date('ut_test_date')->nullable()->default(null); - $table->date('ut_request_date')->nullable()->default(null); - $table->string('test_laboratory_ut', 100)->nullable()->default(null); - $table->string('ut_result', 100)->nullable()->default(null); - $table->string('ut_type', 100)->nullable()->default(null); - - $table->string('pt_scope', 100)->nullable()->default(null); - $table->string('pt_request_no', 100)->nullable()->default(null); - $table->string('pt_report', 100)->nullable()->default(null); - $table->date('pt_test_date')->nullable()->default(null); - $table->date('pt_request_date')->nullable()->default(null); - $table->string('test_laboratory_pt', 100)->nullable()->default(null); - $table->string('pt_result', 100)->nullable()->default(null); - - $table->string('mt_scope', 100)->nullable()->default(null); - $table->string('mt_request_no', 100)->nullable()->default(null); - $table->string('mt_report', 100)->nullable()->default(null); - $table->date('mt_test_date')->nullable()->default(null); - $table->date('mt_request_date')->nullable()->default(null); - $table->string('test_laboratory_mt', 100)->nullable()->default(null); - $table->string('mt_result', 100)->nullable()->default(null); - - $table->string('pmi_scope', 100)->nullable()->default(null); - $table->string('pmi_request_no', 100)->nullable()->default(null); - $table->string('pmi_report', 100)->nullable()->default(null); - $table->string('no_of_testing_report', 100)->nullable()->default(null); - $table->date('pmi_test_date')->nullable()->default(null); - $table->date('pmi_request_date')->nullable()->default(null); - $table->string('test_laboratory_pmi', 100)->nullable()->default(null); - $table->string('pmi_result', 100)->nullable()->default(null); - - $table->string('nde', 100)->nullable()->default(null); - $table->string('group_no', 100)->nullable()->default(null); - - $table->string('pwht', 100)->nullable()->default(null); - $table->date('pwht_date')->nullable()->default(null); - $table->string('no_of_pwht_report', 100)->nullable()->default(null); - $table->string('diagram_number_pwht', 100)->nullable()->default(null); - $table->string('test_laboratory_pwht', 100)->nullable()->default(null); - $table->string('nt_scope', 100)->nullable()->default(null); - $table->string('ht_request_no', 100)->nullable()->default(null); - $table->date('ht_request_date')->nullable()->default(null); - $table->date('ht_report')->nullable()->default(null); - $table->string('no_of_ht_hardnes_test', 100)->nullable()->default(null); - $table->date('ht_request_date')->nullable()->default(null); - $table->string('test_laboratory_ht', 100)->nullable()->default(null); - $table->string('ht_result', 100)->nullable()->default(null); - $table->string('ferrite_scope', 100)->nullable()->default(null); - $table->string('ferrite_request_no', 100)->nullable()->default(null); - $table->string('no_of_ferrite_check', 100)->nullable()->default(null); - $table->date('date_of_ferrite_check')->nullable()->default(null); - $table->string('test_laboratory_ferrite', 100)->nullable()->default(null); - $table->string('ferrite_result', 100)->nullable()->default(null); - $table->string('test_package_no', 100)->nullable()->default(null); - $table->string('test_pressure', 100)->nullable()->default(null); - $table->string('type_of_test', 100)->nullable()->default(null); - $table->date('date_test')->nullable()->default(null); - $table->string('test_result', 100)->nullable()->default(null); - $table->string('real_welder_1', 100)->nullable()->default(null); - $table->string('real_welder_2', 100)->nullable()->default(null); - $table->string('ste_subcontructer', 100)->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - $table->date('fit_up_date')->nullable()->default(null); - $table->date('ndt_release_date')->nullable()->default(null); - $table->string('spool_zone', 100)->nullable()->default(null); - $table->string('spool_status', 100)->nullable()->default(null); - - - }); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('weld_logs'); - } -} diff --git a/database/migrations/2023_04_06_134704_create_weld_maps_table.php b/database/migrations/2023_04_06_134704_create_weld_maps_table.php deleted file mode 100644 index ad5d3b7..0000000 --- a/database/migrations/2023_04_06_134704_create_weld_maps_table.php +++ /dev/null @@ -1,111 +0,0 @@ -id(); - $table->timestamps(); - $columns = explode("\n","General contractor - Contractor - STE Subcontructer - Design area - Fluid Number - Line Number - Iso Number - Q-ty-of-Iso - Iso Rev - Spool number - Type of joint - No of the joint As per As Built survey - Type of welds - Fit-Up Date - Welding date - WPS no - WPS approval date - Welding method - Welding materials 1 - Welding materials 1 Lot No - Welding materials 1 Certificate No - Welding materials 2 - Welding materials 2 Lot No - Welding materials 2 Certificate No - Welding materials 3 - Welding materials 3 Lot No - Welding materials 3 Certificate No - Welder 1 - Welder 2 - Mechanic Supervisor - Mechanic Supervisor Control Date - Welding Supervisor - Welding Supervisor Control Date - Member no 1 - Material no 1 - Ru material group - Certificate number of 1 - Heat number 1 - NPS - Outside Diameter mm - Wall thickness mm - no1 Element Code - Member no 2 - Material no 2 - RU material group2 - Certificate number of 2 - Heat number 2 - NPS2 - Thickness by ASME - OutsideDiameter.(mm) - Wall thickness(mm) - no2 Element Code - NDT_Percent - PWHT"); - - $numeric = explode("\n"," - - "); - - $date = explode("\n"," - Fit-Up Date - Welding date - WPS approval date - Mechanic Supervisor Control Date - Welding Supervisor Control Date - "); - - foreach($columns AS $column) { - $column2 = trim($column); - $column2 = str_slug($column2, '_'); - - if(in_array($column, $numeric)) { - $table->float($column2, 255, 2)->nullable()->default(null); - } elseif(in_array($column, $date)) { - $table->date($column2)->nullable()->default(null); - } else { - $table->string($column2, 100)->nullable()->default(null); - } - - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('weld_maps'); - } -} diff --git a/database/migrations/2023_04_11_202945_create_m_t_o_s_table.php b/database/migrations/2023_04_11_202945_create_m_t_o_s_table.php deleted file mode 100644 index ef6a4ca..0000000 --- a/database/migrations/2023_04_11_202945_create_m_t_o_s_table.php +++ /dev/null @@ -1,57 +0,0 @@ -id(); - $table->timestamps(); - $table->string('project', 100)->nullable()->default(null); - $table->string('line', 100)->nullable()->default(null); - $table->string('rev', 100)->nullable()->default(null); - $table->string('component_code_id', 100)->nullable()->default(null); - $table->string('longdescription', 100)->nullable()->default(null); - $table->string('description_en', 100)->nullable()->default(null); - $table->string('description_ru', 100)->nullable()->default(null); - $table->string('manufacturing_standard', 100)->nullable()->default(null); - $table->string('material', 100)->nullable()->default(null); - $table->string('material_quality_standard', 100)->nullable()->default(null); - $table->float('quantity', 255, 2)->nullable()->default(null); - $table->float('dia_inch_1', 255, 2)->nullable()->default(null); - $table->string('dn_1', 100)->nullable()->default(null); - $table->string('odmm_1', 100)->nullable()->default(null); - $table->string('schedule_1', 100)->nullable()->default(null); - $table->string('thicknessmm_1', 100)->nullable()->default(null); - $table->string('diainch_2', 100)->nullable()->default(null); - $table->string('dn_2', 100)->nullable()->default(null); - $table->string('odmm_2', 100)->nullable()->default(null); - $table->string('schedule_2', 100)->nullable()->default(null); - $table->string('thicknessmm_2', 100)->nullable()->default(null); - $table->string('pn_mpa', 100)->nullable()->default(null); - $table->float('weight', 255, 2)->nullable()->default(null); - $table->float('total_weight', 255, 2)->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('m_t_o_s'); - } -} diff --git a/database/migrations/2023_04_12_234017_create_results_table.php b/database/migrations/2023_04_12_234017_create_results_table.php deleted file mode 100644 index ca2cef5..0000000 --- a/database/migrations/2023_04_12_234017_create_results_table.php +++ /dev/null @@ -1,32 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('results'); - } -} diff --git a/database/migrations/2023_04_13_110704_create_fit_up_welding_follow_ups_table.php b/database/migrations/2023_04_13_110704_create_fit_up_welding_follow_ups_table.php deleted file mode 100644 index 50afdc5..0000000 --- a/database/migrations/2023_04_13_110704_create_fit_up_welding_follow_ups_table.php +++ /dev/null @@ -1,85 +0,0 @@ -id(); - $table->timestamps(); - $table->string('general_contractor', 100)->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('ste_subcontructer', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('qty_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('fit_up_date')->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->date('wps_approval_date')->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_3', 100)->nullable()->default(null); - $table->string('welding_materials_3_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_3_certificate_no', 100)->nullable()->default(null); - $table->string('welders_stamp_root_pass', 100)->nullable()->default(null); - $table->string('welders_stamp_filling_and_capping', 100)->nullable()->default(null); - $table->string('mechanic_supervisor', 100)->nullable()->default(null); - $table->date('mechanic_supervisor_control_date')->nullable()->default(null); - $table->string('welding_supervisor', 100)->nullable()->default(null); - $table->date('welding_supervisor_control_date')->nullable()->default(null); - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter', 100)->nullable()->default(null); - $table->string('wall_thickness_mm', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outsidediameter_2', 100)->nullable()->default(null); - $table->string('wallthickness_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('nde_group_no', 100)->nullable()->default(null); - $table->string('pwht', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('fit_up_welding_follow_ups'); - } -} diff --git a/database/migrations/2023_04_18_154958_create_defects_table.php b/database/migrations/2023_04_18_154958_create_defects_table.php deleted file mode 100644 index 7c5b084..0000000 --- a/database/migrations/2023_04_18_154958_create_defects_table.php +++ /dev/null @@ -1,35 +0,0 @@ -id(); - $table->timestamps(); - $table->string('en_defect_definition')->nullable()->default(null); - $table->string('ru_defect_type')->nullable()->default(null); - $table->string('en_defect_type')->nullable()->default(null); - $table->string('ru_defect_definition')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('defects'); - } -} diff --git a/database/migrations/2023_04_18_204515_create_n_d_t_s_table.php b/database/migrations/2023_04_18_204515_create_n_d_t_s_table.php deleted file mode 100644 index 03be2ef..0000000 --- a/database/migrations/2023_04_18_204515_create_n_d_t_s_table.php +++ /dev/null @@ -1,41 +0,0 @@ -id(); - $table->timestamps(); - $table->string('outsidediameter_mm', 100)->nullable()->default(null); - $table->string('wallthickness_mm', 100)->nullable()->default(null); - $table->string('no_element_code', 100)->nullable()->default(null); - $table->string('pwht', 100)->nullable()->default(null); - $table->date('pwht_date')->nullable()->default(null); - $table->string('no_of_pwht_report', 100)->nullable()->default(null); - $table->string('diagram_number_pwht', 100)->nullable()->default(null); - $table->string('test_laboratory_pwht', 100)->nullable()->default(null); - $table->string('pwht_operator', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('n_d_t_s'); - } -} diff --git a/database/migrations/2023_04_19_225712_create_radiographic_tests_table.php b/database/migrations/2023_04_19_225712_create_radiographic_tests_table.php deleted file mode 100644 index 024ad7e..0000000 --- a/database/migrations/2023_04_19_225712_create_radiographic_tests_table.php +++ /dev/null @@ -1,118 +0,0 @@ -id(); - $table->timestamps(); - $table->string('invoice_number', 100)->nullable()->default(null); - $table->date('invoice_date')->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('test_laboratory_rt', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - - $table->string('certificate_no_1', 100)->nullable()->default(null); - $table->string('wpq_report_1', 100)->nullable()->default(null); - $table->string('certificate_no_2', 100)->nullable()->default(null); - $table->string('wpq_report_2', 100)->nullable()->default(null); - - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outside_diameter_2', 100)->nullable()->default(null); - $table->string('wall_thickness_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('rt_scope', 100)->nullable()->default(null); - $table->string('rt_request_no', 100)->nullable()->default(null); - $table->string('rt_report', 100)->nullable()->default(null); - $table->date('rt_request_date')->nullable()->default(null); - $table->date('rt_test_date')->nullable()->default(null); - $table->string('rt_result', 100)->nullable()->default(null); - $table->string('tester_name', 100)->nullable()->default(null); - $table->string('real_welder_1', 100)->nullable()->default(null); - $table->string('real_welder_2', 100)->nullable()->default(null); - $table->string('aa', 100)->nullable()->default(null); - $table->string('ab', 100)->nullable()->default(null); - $table->string('ac', 100)->nullable()->default(null); - $table->string('ba', 100)->nullable()->default(null); - $table->string('bb', 100)->nullable()->default(null); - $table->string('bc', 100)->nullable()->default(null); - $table->string('ca', 100)->nullable()->default(null); - $table->string('cb', 100)->nullable()->default(null); - $table->string('cc', 100)->nullable()->default(null); - $table->string('da', 100)->nullable()->default(null); - $table->string('db', 100)->nullable()->default(null); - $table->string('dc', 100)->nullable()->default(null); - $table->string('ea', 100)->nullable()->default(null); - $table->string('eb', 100)->nullable()->default(null); - $table->string('ec', 100)->nullable()->default(null); - $table->string('fa', 100)->nullable()->default(null); - $table->string('fb', 100)->nullable()->default(null); - $table->string('other', 100)->nullable()->default(null); - - }); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('radiographic_tests'); - } -} diff --git a/database/migrations/2023_04_19_230743_create_ultrasonic_tests_table.php b/database/migrations/2023_04_19_230743_create_ultrasonic_tests_table.php deleted file mode 100644 index 95654e5..0000000 --- a/database/migrations/2023_04_19_230743_create_ultrasonic_tests_table.php +++ /dev/null @@ -1,118 +0,0 @@ -id(); - $table->timestamps(); - $table->string('invoice_number', 100)->nullable()->default(null); - $table->date('invoice_date')->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('test_laboratory_ut', 100)->nullable()->default(null); - $table->string('ut_type', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - - $table->string('certificate_no_1', 100)->nullable()->default(null); - $table->string('wpq_report_1', 100)->nullable()->default(null); - $table->string('certificate_no_2', 100)->nullable()->default(null); - $table->string('wpq_report_2', 100)->nullable()->default(null); - - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outside_diameter_2', 100)->nullable()->default(null); - $table->string('wallthickness_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('ut_scope', 100)->nullable()->default(null); - $table->string('ut_request_no', 100)->nullable()->default(null); - $table->date('ut_request_date')->nullable()->default(null); - $table->string('ut_report', 100)->nullable()->default(null); - $table->date('ut_test_date')->nullable()->default(null); - $table->string('ut_result', 100)->nullable()->default(null); - $table->string('tester_name', 100)->nullable()->default(null); - $table->string('real_welder_1', 100)->nullable()->default(null); - $table->string('real_welder_2', 100)->nullable()->default(null); - $table->string('aa', 100)->nullable()->default(null); - $table->string('ab', 100)->nullable()->default(null); - $table->string('ac', 100)->nullable()->default(null); - $table->string('ba', 100)->nullable()->default(null); - $table->string('bb', 100)->nullable()->default(null); - $table->string('bc', 100)->nullable()->default(null); - $table->string('ca', 100)->nullable()->default(null); - $table->string('cb', 100)->nullable()->default(null); - $table->string('cc', 100)->nullable()->default(null); - $table->string('da', 100)->nullable()->default(null); - $table->string('db', 100)->nullable()->default(null); - $table->string('dc', 100)->nullable()->default(null); - $table->string('ea', 100)->nullable()->default(null); - $table->string('eb', 100)->nullable()->default(null); - $table->string('ec', 100)->nullable()->default(null); - $table->string('fa', 100)->nullable()->default(null); - $table->string('fb', 100)->nullable()->default(null); - $table->string('other', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('ultrasonic_tests'); - } -} diff --git a/database/migrations/2023_04_19_231252_create_magnetic_tests_table.php b/database/migrations/2023_04_19_231252_create_magnetic_tests_table.php deleted file mode 100644 index 89c255d..0000000 --- a/database/migrations/2023_04_19_231252_create_magnetic_tests_table.php +++ /dev/null @@ -1,98 +0,0 @@ -id(); - $table->timestamps(); - $table->string('invoice_number', 100)->nullable()->default(null); - $table->date('invoice_date')->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('test_laboratory_mt', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - - $table->string('certificate_no_1', 100)->nullable()->default(null); - $table->string('wpq_report_1', 100)->nullable()->default(null); - $table->string('certificate_no_2', 100)->nullable()->default(null); - $table->string('wpq_report_2', 100)->nullable()->default(null); - - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outside_diameter_2', 100)->nullable()->default(null); - $table->string('wall_thickness_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('mt_scope', 100)->nullable()->default(null); - $table->string('mt_request_no', 100)->nullable()->default(null); - $table->string('mt_report', 100)->nullable()->default(null); - $table->date('mt_request_date')->nullable()->default(null); - $table->date('mt_test_date')->nullable()->default(null); - $table->string('mt_result', 100)->nullable()->default(null); - $table->string('defects', 100)->nullable()->default(null); - $table->string('tester_name', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('magnetic_tests'); - } -} diff --git a/database/migrations/2023_04_19_231908_create_dye_penetrant_tests_table.php b/database/migrations/2023_04_19_231908_create_dye_penetrant_tests_table.php deleted file mode 100644 index 65ec56a..0000000 --- a/database/migrations/2023_04_19_231908_create_dye_penetrant_tests_table.php +++ /dev/null @@ -1,97 +0,0 @@ -id(); - $table->timestamps(); - $table->string('invoice_number', 100)->nullable()->default(null); - $table->date('invoice_date')->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('test_laboratory', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - - $table->string('certificate_no_1', 100)->nullable()->default(null); - $table->string('wpq_report_1', 100)->nullable()->default(null); - $table->string('certificate_no_2', 100)->nullable()->default(null); - $table->string('wpq_report_2', 100)->nullable()->default(null); - - $table->string('member_no1', 100)->nullable()->default(null); - $table->string('material_no1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no2', 100)->nullable()->default(null); - $table->string('material_no2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outsidediameter_2', 100)->nullable()->default(null); - $table->string('wallthickness_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('pt_scope', 100)->nullable()->default(null); - $table->string('pt_request_no', 100)->nullable()->default(null); - $table->string('pt_report', 100)->nullable()->default(null); - $table->date('pt_test_date')->nullable()->default(null); - $table->string('pt_result', 100)->nullable()->default(null); - $table->string('defects', 100)->nullable()->default(null); - $table->string('tester_name', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('dye_penetrant_tests'); - } -} diff --git a/database/migrations/2023_04_19_232322_create_p_m_i_tests_table.php b/database/migrations/2023_04_19_232322_create_p_m_i_tests_table.php deleted file mode 100644 index cb16024..0000000 --- a/database/migrations/2023_04_19_232322_create_p_m_i_tests_table.php +++ /dev/null @@ -1,110 +0,0 @@ -id(); - $table->timestamps(); - $table->string('invoice_number', 100)->nullable()->default(null); - $table->date('invoice_date')->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('test_laboratory_pmi', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - - $table->string('certificate_no_1', 100)->nullable()->default(null); - $table->string('wpq_report_1', 100)->nullable()->default(null); - $table->string('certificate_no_2', 100)->nullable()->default(null); - $table->string('wpq_report_2', 100)->nullable()->default(null); - - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outside_diameter_2', 100)->nullable()->default(null); - $table->string('wall_thickness_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('pmi_scope', 100)->nullable()->default(null); - $table->string('pmi_request_no', 100)->nullable()->default(null); - $table->date('pmi_request_date')->nullable()->default(null); - $table->string('no_of_testing_report', 100)->nullable()->default(null); - $table->date('pmi_test_date')->nullable()->default(null); - $table->string('pmi_result', 100)->nullable()->default(null); - $table->string('tester_name', 100)->nullable()->default(null); - $table->string('carbon', 100)->nullable()->default(null); - $table->string('silicon', 100)->nullable()->default(null); - $table->string('manganese', 100)->nullable()->default(null); - $table->string('phosphorus', 100)->nullable()->default(null); - $table->string('sulfur', 100)->nullable()->default(null); - $table->string('chromium', 100)->nullable()->default(null); - $table->string('nickel', 100)->nullable()->default(null); - $table->string('molybdenum', 100)->nullable()->default(null); - $table->string('copper', 100)->nullable()->default(null); - $table->string('aluminium', 100)->nullable()->default(null); - $table->string('titanium', 100)->nullable()->default(null); - $table->string('vanadium', 100)->nullable()->default(null); - $table->string('tungsten', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('p_m_i_tests'); - } -} diff --git a/database/migrations/2023_04_19_233754_create_hardness_tests_table.php b/database/migrations/2023_04_19_233754_create_hardness_tests_table.php deleted file mode 100644 index 34392a3..0000000 --- a/database/migrations/2023_04_19_233754_create_hardness_tests_table.php +++ /dev/null @@ -1,100 +0,0 @@ -id(); - $table->timestamps(); - $table->string('invoice_number', 100)->nullable()->default(null); - $table->date('invoice_date')->nullable()->default(null); - $table->string('test_laboratory_ht', 100)->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - - - $table->string('certificate_no_1', 100)->nullable()->default(null); - $table->string('wpq_report_1', 100)->nullable()->default(null); - $table->string('certificate_no_2', 100)->nullable()->default(null); - $table->string('wpq_report_2', 100)->nullable()->default(null); - - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outside_diameter_2', 100)->nullable()->default(null); - $table->string('wall_thickness_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('ht_request_no', 100)->nullable()->default(null); - $table->string('no_of_ht_hardnes_test', 100)->nullable()->default(null); - $table->date('ht_request_date')->nullable()->default(null); - $table->date('ht_test_date')->nullable()->default(null); - $table->string('ht_result', 100)->nullable()->default(null); - $table->string('tester_name', 100)->nullable()->default(null); - $table->string('record_1_rc', 100)->nullable()->default(null); - $table->string('record_2_rc', 100)->nullable()->default(null); - $table->string('record_3_rc', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('hardness_tests'); - } -} diff --git a/database/migrations/2023_04_24_122435_create_ferrits_table.php b/database/migrations/2023_04_24_122435_create_ferrits_table.php deleted file mode 100644 index 242bc0b..0000000 --- a/database/migrations/2023_04_24_122435_create_ferrits_table.php +++ /dev/null @@ -1,100 +0,0 @@ -id(); - $table->timestamps(); - $table->string('invoice_number', 100)->nullable()->default(null); - $table->date('invoice_date')->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('test_laboratory_ferrite', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - - $table->string('certificate_no_1', 100)->nullable()->default(null); - $table->string('wpq_report_1', 100)->nullable()->default(null); - $table->string('certificate_no_2', 100)->nullable()->default(null); - $table->string('wpq_report_2', 100)->nullable()->default(null); - - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outside_diameter_2', 100)->nullable()->default(null); - $table->string('wall_thickness_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('ferrite_scope', 100)->nullable()->default(null); - $table->string('ferrite_request_no', 100)->nullable()->default(null); - $table->date('ferrite_request_date')->nullable()->default(null); - $table->string('no_of_ferrite_check', 100)->nullable()->default(null); - $table->date('date_of_ferrite_check')->nullable()->default(null); - $table->string('ferrite_result', 100)->nullable()->default(null); - $table->string('tester_name', 100)->nullable()->default(null); - $table->string('record_1_fn', 100)->nullable()->default(null); - $table->string('record_2_fn', 100)->nullable()->default(null); - $table->string('record_3_fn', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('ferrits'); - } -} diff --git a/database/migrations/2023_04_25_152652_create_incoming_controls_table.php b/database/migrations/2023_04_25_152652_create_incoming_controls_table.php deleted file mode 100644 index ea3bd79..0000000 --- a/database/migrations/2023_04_25_152652_create_incoming_controls_table.php +++ /dev/null @@ -1,77 +0,0 @@ -id(); - $table->timestamps(); - $table->string('component_code', 100)->nullable()->default(null); - $table->string('request_no', 100)->nullable()->default(null); - $table->date('request_date', 100)->nullable()->default(null); - $table->string('packing_list_number', 100)->nullable()->default(null); - $table->string('packing_list_position', 100)->nullable()->default(null); - $table->string('packing_list_quantity', 100)->nullable()->default(null); - $table->string('akt_number', 100)->nullable()->default(null); - $table->date('date_of_akt', 100)->nullable()->default(null); - $table->string('discipline', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('revision', 100)->nullable()->default(null); - $table->string('designer', 100)->nullable()->default(null); - $table->string('short_name_material', 100)->nullable()->default(null); - $table->string('description_en', 100)->nullable()->default(null); - $table->string('description_ru', 100)->nullable()->default(null); - $table->string('manufacturing_standard', 100)->nullable()->default(null); - $table->string('material', 100)->nullable()->default(null); - $table->string('material_quality_standard', 100)->nullable()->default(null); - $table->string('dia_inch_1', 100)->nullable()->default(null); - $table->string('dn_1', 100)->nullable()->default(null); - $table->string('odmm_1', 100)->nullable()->default(null); - $table->string('schedule_1', 100)->nullable()->default(null); - $table->string('thicknessmm_1', 100)->nullable()->default(null); - $table->string('diainch_2', 100)->nullable()->default(null); - $table->string('dn_2', 100)->nullable()->default(null); - $table->string('odmm_2', 100)->nullable()->default(null); - $table->string('schedule_2', 100)->nullable()->default(null); - $table->string('thicknessmm_2', 100)->nullable()->default(null); - $table->string('pn_mpa', 100)->nullable()->default(null); - $table->string('requested_quantity', 100)->nullable()->default(null); - $table->string('received_quantity', 100)->nullable()->default(null); - $table->string('certificate_quantity', 100)->nullable()->default(null); - $table->string('unit_kgmetc', 100)->nullable()->default(null); - $table->string('certificate_no', 100)->nullable()->default(null); - $table->date('certificate_date', 100)->nullable()->default(null); - $table->string('certificate_page_quantity', 100)->nullable()->default(null); - $table->string('heat_number', 100)->nullable()->default(null); - $table->string('akt_status', 100)->nullable()->default(null); - // $table->string('scan_certificate_link', 100)->nullable()->default(null); - // $table->string('scan_akt_link', 100)->nullable()->default(null); - $table->string('inspected_by', 100)->nullable()->default(null); - $table->string('third_party', 100)->nullable()->default(null); - $table->string('constructor', 100)->nullable()->default(null); - $table->string('osd_report_no', 100)->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('incoming_controls'); - } -} diff --git a/database/migrations/2023_05_12_051939_create_material_planings_table.php b/database/migrations/2023_05_12_051939_create_material_planings_table.php deleted file mode 100644 index 7f2850d..0000000 --- a/database/migrations/2023_05_12_051939_create_material_planings_table.php +++ /dev/null @@ -1,36 +0,0 @@ -id(); - $table->timestamps(); - $table->string('pl_number', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->date('site_arrivel_date')->nullable()->default(null); - $table->string('recevied_status', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('material_planings'); - } -} diff --git a/database/migrations/2023_05_12_053209_create_material_planing_details_table.php b/database/migrations/2023_05_12_053209_create_material_planing_details_table.php deleted file mode 100644 index 635964b..0000000 --- a/database/migrations/2023_05_12_053209_create_material_planing_details_table.php +++ /dev/null @@ -1,41 +0,0 @@ -id(); - $table->timestamps(); - $table->string('pl_number', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('element_code', 100)->nullable()->default(null); - $table->string('member', 100)->nullable()->default(null); - $table->string('material', 100)->nullable()->default(null); - $table->float('quantity', 255,2)->nullable()->default(null); - $table->float('unit_weight', 255,2)->nullable()->default(null); - $table->float('total_weight', 255,2)->nullable()->default(null); - $table->string('status_of_elements', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('material_planing_details'); - } -} diff --git a/database/migrations/2023_05_30_030441_create_paint_follow_ups_table.php b/database/migrations/2023_05_30_030441_create_paint_follow_ups_table.php deleted file mode 100644 index 6b40261..0000000 --- a/database/migrations/2023_05_30_030441_create_paint_follow_ups_table.php +++ /dev/null @@ -1,110 +0,0 @@ -id(); - $table->timestamps(); - $table->string('project', 100)->nullable()->default(null); - $table->string('description', 100)->nullable()->default(null); - $table->string('area', 100)->nullable()->default(null); - $table->string('location', 100)->nullable()->default(null); - $table->string('line', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('spool_no_joint_no', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('fluid_code_description', 100)->nullable()->default(null); - $table->string('cycle', 100)->nullable()->default(null); - $table->string('primer_coat_name_1', 100)->nullable()->default(null); - $table->string('brend_name_1', 100)->nullable()->default(null); - $table->string('colour_1', 100)->nullable()->default(null); - $table->string('ral_code_1', 100)->nullable()->default(null); - $table->string('thickness_1', 100)->nullable()->default(null); - $table->string('intermediate_coat_name_2', 100)->nullable()->default(null); - $table->string('brend_name_2', 100)->nullable()->default(null); - $table->string('colour_2', 100)->nullable()->default(null); - $table->string('ral_code_2', 100)->nullable()->default(null); - $table->string('thickness_2', 100)->nullable()->default(null); - $table->string('final_coat_name_3', 100)->nullable()->default(null); - $table->string('brend_name_3', 100)->nullable()->default(null); - $table->string('colour_3', 100)->nullable()->default(null); - $table->string('ral_code_3', 100)->nullable()->default(null); - $table->string('thickness_3', 100)->nullable()->default(null); - $table->string('incoming_control_akt_no_1', 100)->nullable()->default(null); - $table->string('incoming_control_rfi_no_1', 100)->nullable()->default(null); - $table->date('akt_date_1')->nullable()->default(null); - $table->string('standartgost_iso_en_1', 100)->nullable()->default(null); - $table->string('certificate_passport_no_1', 100)->nullable()->default(null); - $table->date('certificate_passport_date_1')->nullable()->default(null); - $table->string('incoming_control_akt_no_2', 100)->nullable()->default(null); - $table->string('incoming_control_rfi_no_2', 100)->nullable()->default(null); - $table->date('akt_date_2')->nullable()->default(null); - $table->string('standartgost_iso_en_2', 100)->nullable()->default(null); - $table->string('certificate_passport_no_2', 100)->nullable()->default(null); - $table->date('certificate_passport_date_2')->nullable()->default(null); - $table->string('incoming_control_akt_no_3', 100)->nullable()->default(null); - $table->string('incoming_control_rfi_no_3', 100)->nullable()->default(null); - $table->date('akt_date_3')->nullable()->default(null); - $table->string('standartgost_iso_en_3', 100)->nullable()->default(null); - $table->string('certificate_passport_no_3', 100)->nullable()->default(null); - $table->date('certificate_passport_date_3')->nullable()->default(null); - $table->string('surface_preparation_equipment', 100)->nullable()->default(null); - $table->string('surface_roughness', 100)->nullable()->default(null); - $table->string('standartgost_iso_en_cleaning', 100)->nullable()->default(null); - $table->string('protocol_no_cleaning', 100)->nullable()->default(null); - $table->date('protocol_date_cleaning')->nullable()->default(null); - $table->string('surface_preparation_rfi_no', 100)->nullable()->default(null); - $table->string('substrate_temprature', 100)->nullable()->default(null); - $table->string('ambient_temprature', 100)->nullable()->default(null); - $table->string('primer_measured_thickness_1', 100)->nullable()->default(null); - $table->string('primer_coating_protocol_no', 100)->nullable()->default(null); - $table->date('primer_coating_protocol_date')->nullable()->default(null); - $table->date('primer_coating_start_date')->nullable()->default(null); - $table->date('primer_coating_finish_date')->nullable()->default(null); - $table->string('primer_coating_rfi_no', 100)->nullable()->default(null); - $table->date('primer_coating_rfi_date_1')->nullable()->default(null); - $table->string('volumem2', 100)->nullable()->default(null); - $table->string('intermediate_measured_thickness_2', 100)->nullable()->default(null); - $table->string('intermediate_coating_protocol_no_2', 100)->nullable()->default(null); - $table->date('intermediate_coating_protocol_date2')->nullable()->default(null); - $table->date('start_intermediate_date2')->nullable()->default(null); - $table->date('finish_intermediate_date2')->nullable()->default(null); - $table->string('intermediate_coating_rfi_no2', 100)->nullable()->default(null); - $table->date('intermediate_coating_rfi_date_3')->nullable()->default(null); - $table->string('volumem22', 100)->nullable()->default(null); - $table->string('final_coating_measured_thickness_3', 100)->nullable()->default(null); - $table->string('final_coating_protocol_no_3', 100)->nullable()->default(null); - $table->date('final_coatingprotocol_date_3')->nullable()->default(null); - $table->date('final_coat_start_date3')->nullable()->default(null); - $table->date('final_coat_finish_date3')->nullable()->default(null); - $table->string('final_coating_rfi_no3', 100)->nullable()->default(null); - $table->date('final_coating_rfi_date_3')->nullable()->default(null); - $table->string('volumem23', 100)->nullable()->default(null); - $table->string('total_volumem3', 100)->nullable()->default(null); - $table->string('status', 100)->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('paint_follow_ups'); - } -} diff --git a/database/migrations/2023_05_30_030616_create_paint_matrices_table.php b/database/migrations/2023_05_30_030616_create_paint_matrices_table.php deleted file mode 100644 index 608e925..0000000 --- a/database/migrations/2023_05_30_030616_create_paint_matrices_table.php +++ /dev/null @@ -1,60 +0,0 @@ -id(); - $table->timestamps(); - $table->string('project', 100)->nullable()->default(null); - $table->string('description', 100)->nullable()->default(null); - $table->string('area', 100)->nullable()->default(null); - $table->string('line', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('fluid_code_description', 100)->nullable()->default(null); - $table->string('design_temperature', 100)->nullable()->default(null); - $table->string('operation_temperature', 100)->nullable()->default(null); - $table->string('paint_cycle', 100)->nullable()->default(null); - $table->string('surface_preparation', 100)->nullable()->default(null); - $table->string('touch_up_of_damaged_parts', 100)->nullable()->default(null); - $table->string('primer_coat', 100)->nullable()->default(null); - $table->string('brend_name_1', 100)->nullable()->default(null); - $table->string('colour_1', 100)->nullable()->default(null); - $table->string('ral_code_1', 100)->nullable()->default(null); - $table->string('thickness_1', 100)->nullable()->default(null); - $table->string('intermediate_coat', 100)->nullable()->default(null); - $table->string('brend_name_2', 100)->nullable()->default(null); - $table->string('colour_2', 100)->nullable()->default(null); - $table->string('ral_code_2', 100)->nullable()->default(null); - $table->string('thickness_2', 100)->nullable()->default(null); - $table->string('final_coat', 100)->nullable()->default(null); - $table->string('brend_name_3', 100)->nullable()->default(null); - $table->string('colour_3', 100)->nullable()->default(null); - $table->string('ral_code_3', 100)->nullable()->default(null); - $table->string('thickness_3', 100)->nullable()->default(null); - $table->string('total_thickness', 100)->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('paint_matrices'); - } -} diff --git a/database/migrations/2023_06_10_035418_create_cut_lists_table.php b/database/migrations/2023_06_10_035418_create_cut_lists_table.php deleted file mode 100644 index b6a2900..0000000 --- a/database/migrations/2023_06_10_035418_create_cut_lists_table.php +++ /dev/null @@ -1,58 +0,0 @@ -id(); - $table->timestamps(); - $table->string('drawing_no', 100)->nullable()->default(null); - // $table->string('seq', 100)->nullable()->default(null); - $table->string('work_order_no', 100)->nullable()->default(null); - $table->string('zone', 100)->nullable()->default(null); - $table->string('subcontructer', 100)->nullable()->default(null); - $table->string('line_no', 100)->nullable()->default(null); - $table->string('area', 100)->nullable()->default(null); - $table->string('sheet', 100)->nullable()->default(null); - $table->string('rev', 100)->nullable()->default(null); - $table->string('material', 100)->nullable()->default(null); - $table->string('id_number', 100)->nullable()->default(null); - $table->string('pose_no', 100)->nullable()->default(null); - $table->string('piece_no', 100)->nullable()->default(null); - $table->string('inch', 100)->nullable()->default(null); - $table->string('diamm', 100)->nullable()->default(null); - $table->string('thicknessmm', 100)->nullable()->default(null); - $table->string('heat_number', 100)->nullable()->default(null); - $table->string('manufacturing_pipe_no', 100)->nullable()->default(null); - $table->string('beveeling_1', 100)->nullable()->default(null); - $table->string('beveeling_2', 100)->nullable()->default(null); - $table->string('cut_pipe_length', 100)->nullable()->default(null); - $table->string('mesasured_length', 100)->nullable()->default(null); - $table->date('cutting_date')->nullable()->default(null); - $table->string('formen', 100)->nullable()->default(null); - $table->string('inspector', 100)->nullable()->default(null); - $table->date('release_date')->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('cut_lists'); - } -} diff --git a/database/migrations/2023_06_10_041310_create_document_revisions_table.php b/database/migrations/2023_06_10_041310_create_document_revisions_table.php deleted file mode 100644 index 8d3f0f5..0000000 --- a/database/migrations/2023_06_10_041310_create_document_revisions_table.php +++ /dev/null @@ -1,43 +0,0 @@ -id(); - $table->timestamps(); - // $table->string('seq', 100)->nullable()->default(null); - $table->string('transmittal_document', 100)->nullable()->default(null); - $table->date('publish_date')->nullable()->default(null); - $table->string('zone', 100)->nullable()->default(null); - $table->string('subcontructer', 100)->nullable()->default(null); - $table->string('area', 100)->nullable()->default(null); - $table->string('drawing_no', 100)->nullable()->default(null); - $table->string('revision_no', 100)->nullable()->default(null); - // $table->string('pdf_link', 100)->nullable()->default(null); - $table->string('add_drawing', 100)->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('document_revisions'); - } -} diff --git a/database/migrations/2023_06_21_144710_create_line_list_categories_table.php b/database/migrations/2023_06_21_144710_create_line_list_categories_table.php deleted file mode 100644 index 0490289..0000000 --- a/database/migrations/2023_06_21_144710_create_line_list_categories_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->timestamps(); - $table->string('category_title', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('line_list_categories'); - } -} diff --git a/database/migrations/2023_06_21_150235_create_line_list_groups_table.php b/database/migrations/2023_06_21_150235_create_line_list_groups_table.php deleted file mode 100644 index e832ecd..0000000 --- a/database/migrations/2023_06_21_150235_create_line_list_groups_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->timestamps(); - $table->string('group_title', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('line_list_groups'); - } -} diff --git a/database/migrations/2023_06_26_171805_rename_column_in_weld_logs.php b/database/migrations/2023_06_26_171805_rename_column_in_weld_logs.php deleted file mode 100644 index 43c1226..0000000 --- a/database/migrations/2023_06_26_171805_rename_column_in_weld_logs.php +++ /dev/null @@ -1,32 +0,0 @@ -renameColumn('wallthickness_2', 'wall_thickness_2'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('ultrasonic_tests', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2023_07_03_103743_create_u_t_types_table.php b/database/migrations/2023_07_03_103743_create_u_t_types_table.php deleted file mode 100644 index 07f3e3f..0000000 --- a/database/migrations/2023_07_03_103743_create_u_t_types_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->timestamps(); - $table->string('ut_type_title', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('u_t_types'); - } -} diff --git a/database/migrations/2023_07_06_103305_create_n_c_r_logs_table.php b/database/migrations/2023_07_06_103305_create_n_c_r_logs_table.php deleted file mode 100644 index 9cea1e0..0000000 --- a/database/migrations/2023_07_06_103305_create_n_c_r_logs_table.php +++ /dev/null @@ -1,54 +0,0 @@ -id(); - $table->timestamps(); - $table->date('date')->nullable()->default(null); - $table->string('type', 100)->nullable()->default(null); - $table->string('ncr_no', 100)->nullable()->default(null); - $table->string('department', 100)->nullable()->default(null); - $table->string('description_ru', 100)->nullable()->default(null); - $table->string('description_eng', 100)->nullable()->default(null); - $table->string('corrective_action_ru', 100)->nullable()->default(null); - $table->string('corrective_action_eng', 100)->nullable()->default(null); - $table->string('root_cause_investigation', 100)->nullable()->default(null); - $table->string('current_status', 100)->nullable()->default(null); - $table->string('issued_by', 100)->nullable()->default(null); - $table->date('issue_date')->nullable()->default(null); - $table->date('planned_close_out_date')->nullable()->default(null); - $table->date('close_out_date')->nullable()->default(null); - $table->string('on_time', 100)->nullable()->default(null); - $table->integer('difference_day')->nullable()->default(null); - $table->float('construction_cost', 2)->nullable()->default(null); - $table->float('technical_office_cost', 2)->nullable()->default(null); - $table->float('quality_cost', 2)->nullable()->default(null); - $table->float('total_cost', 2)->nullable()->default(null); - $table->string('related_ncrciar', 100)->nullable()->default(null); - $table->string('effectiveness', 100)->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('n_c_r_logs'); - } -} diff --git a/database/migrations/2023_07_13_100829_create_beveelings_table.php b/database/migrations/2023_07_13_100829_create_beveelings_table.php deleted file mode 100644 index 9f9a7fe..0000000 --- a/database/migrations/2023_07_13_100829_create_beveelings_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->timestamps(); - $table->string('beveeling_title', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('beveelings'); - } -} diff --git a/database/migrations/2023_07_17_173548_remove_column_document_revision.php b/database/migrations/2023_07_17_173548_remove_column_document_revision.php deleted file mode 100644 index 8825329..0000000 --- a/database/migrations/2023_07_17_173548_remove_column_document_revision.php +++ /dev/null @@ -1,30 +0,0 @@ -dropColumn(['add_drawing']); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_07_18_061005_create_disciplines_table.php b/database/migrations/2023_07_18_061005_create_disciplines_table.php deleted file mode 100644 index 20b120b..0000000 --- a/database/migrations/2023_07_18_061005_create_disciplines_table.php +++ /dev/null @@ -1,32 +0,0 @@ -id(); - $table->timestamps(); - $table->string('discipline_title', 100)->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('disciplines'); - } -} diff --git a/database/migrations/2023_07_18_063152_remove_column_any.php b/database/migrations/2023_07_18_063152_remove_column_any.php deleted file mode 100644 index 6eb44a3..0000000 --- a/database/migrations/2023_07_18_063152_remove_column_any.php +++ /dev/null @@ -1,34 +0,0 @@ -dropColumn( - [ - 'scan_akt_link', - ] - ); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_07_24_131208_change_engine.php b/database/migrations/2023_07_24_131208_change_engine.php deleted file mode 100644 index 76c4751..0000000 --- a/database/migrations/2023_07_24_131208_change_engine.php +++ /dev/null @@ -1,38 +0,0 @@ -string('pwht_operator_id')->nullable()->after('pwht_operator'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('p_w_h_t_s', function (Blueprint $table) { - $table->dropColumn('pwht_operator_id'); - }); - } -} \ No newline at end of file diff --git a/database/migrations/2023_08_05_085858_add_column.php b/database/migrations/2023_08_05_085858_add_column.php deleted file mode 100644 index 16aac7e..0000000 --- a/database/migrations/2023_08_05_085858_add_column.php +++ /dev/null @@ -1,46 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->string($addColumn)->nullable(); - }); - } - - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2023_08_05_085858_add_column2.php b/database/migrations/2023_08_05_085858_add_column2.php deleted file mode 100644 index a77c4f0..0000000 --- a/database/migrations/2023_08_05_085858_add_column2.php +++ /dev/null @@ -1,46 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->string($addColumn)->nullable(); - }); - } - - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2023_08_08_080219_create_work_permit_documents_table.php b/database/migrations/2023_08_08_080219_create_work_permit_documents_table.php deleted file mode 100644 index 96c57bc..0000000 --- a/database/migrations/2023_08_08_080219_create_work_permit_documents_table.php +++ /dev/null @@ -1,45 +0,0 @@ -id(); - $table->timestamps(); - $table->string('document_code', 100)->nullable()->default(null); - $table->string('document_number', 100)->nullable()->default(null); - $table->string('revision', 100)->nullable()->default(null); - $table->date('date_of_issue')->nullable()->default(null); - $table->string('company', 100)->nullable()->default(null); - $table->string('duty', 100)->nullable()->default(null); - $table->string('certificates_number', 100)->nullable()->default(null); - $table->string('name_surname', 100)->nullable()->default(null); - $table->string('id_no', 100)->nullable()->default(null); - $table->string('level', 100)->nullable()->default(null); - $table->string('description', 100)->nullable()->default(null); - $table->string('status', 100)->nullable()->default(null); - $table->string('dept', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('work_permit_documents'); - } -} diff --git a/database/migrations/2023_08_10_114005_create_p_w_h_t_s_table.php b/database/migrations/2023_08_10_114005_create_p_w_h_t_s_table.php deleted file mode 100644 index 2640415..0000000 --- a/database/migrations/2023_08_10_114005_create_p_w_h_t_s_table.php +++ /dev/null @@ -1,96 +0,0 @@ -id(); - $table->timestamps(); - $table->string('invoice_no', 100)->nullable()->default(null); - $table->date('invoice_date')->nullable()->default(null); - $table->string('test_laboratory_pwht', 100)->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - $table->string('certificate_no', 100)->nullable()->default(null); - $table->string('wpq_report', 100)->nullable()->default(null); - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outside_diameter_2', 100)->nullable()->default(null); - $table->string('wall_thickness_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('pwht', 100)->nullable()->default(null); - $table->string('pwht_request_no', 100)->nullable()->default(null); - $table->date('pwht_request_date')->nullable()->default(null); - $table->string('no_of_pwht_report', 100)->nullable()->default(null); - $table->date('pwht_date')->nullable()->default(null); - $table->string('diagram_number_pwht', 100)->nullable()->default(null); - $table->string('pwht_operator', 100)->nullable()->default(null); - $table->string('pwht_result', 100)->nullable()->default(null); - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('p_w_h_t_s'); - } -} diff --git a/database/migrations/2023_08_10_122223_create_p_t_logs_table.php b/database/migrations/2023_08_10_122223_create_p_t_logs_table.php deleted file mode 100644 index 38293ab..0000000 --- a/database/migrations/2023_08_10_122223_create_p_t_logs_table.php +++ /dev/null @@ -1,97 +0,0 @@ -id(); - $table->timestamps(); - $table->string('invoice_number', 100)->nullable()->default(null); - $table->date('invoice_date')->nullable()->default(null); - $table->string('serial_number', 100)->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('test_laboratory_pt', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - $table->string('certificate_no', 100)->nullable()->default(null); - $table->string('wpq_report', 100)->nullable()->default(null); - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outside_diameter_2', 100)->nullable()->default(null); - $table->string('wall_thickness_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('pt_scope', 100)->nullable()->default(null); - $table->string('pt_request_no', 100)->nullable()->default(null); - $table->date('pt_request_date')->nullable()->default(null); - $table->string('pt_report', 100)->nullable()->default(null); - $table->date('pt_test_date')->nullable()->default(null); - $table->string('pt_result', 100)->nullable()->default(null); - $table->string('defects', 100)->nullable()->default(null); - $table->string('tester_name', 100)->nullable()->default(null); - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('p_t_logs'); - } -} diff --git a/database/migrations/2023_08_10_123029_create_v_t_logs_table.php b/database/migrations/2023_08_10_123029_create_v_t_logs_table.php deleted file mode 100644 index c491366..0000000 --- a/database/migrations/2023_08_10_123029_create_v_t_logs_table.php +++ /dev/null @@ -1,112 +0,0 @@ -id(); - $table->timestamps(); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('invoice_no', 100)->nullable()->default(null); - $table->date('invoice_date')->nullable()->default(null); - $table->string('test_laboratory_vt', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - $table->string('certificate_no', 100)->nullable()->default(null); - $table->string('wpq_report', 100)->nullable()->default(null); - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outside_diameter_2', 100)->nullable()->default(null); - $table->string('wall_thickness_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('vt_scope', 100)->nullable()->default(null); - $table->string('vt_request_no', 100)->nullable()->default(null); - $table->date('vt_request_date')->nullable()->default(null); - $table->string('vt_report', 100)->nullable()->default(null); - $table->date('vt_test_date')->nullable()->default(null); - $table->string('vt_result', 100)->nullable()->default(null); - $table->string('tester_name', 100)->nullable()->default(null); - $table->string('aa', 100)->nullable()->default(null); - $table->string('ab', 100)->nullable()->default(null); - $table->string('ac', 100)->nullable()->default(null); - $table->string('ba', 100)->nullable()->default(null); - $table->string('bb', 100)->nullable()->default(null); - $table->string('bc', 100)->nullable()->default(null); - $table->string('ca', 100)->nullable()->default(null); - $table->string('cb', 100)->nullable()->default(null); - $table->string('cc', 100)->nullable()->default(null); - $table->string('da', 100)->nullable()->default(null); - $table->string('db', 100)->nullable()->default(null); - $table->string('dc', 100)->nullable()->default(null); - $table->string('ea', 100)->nullable()->default(null); - $table->string('eb', 100)->nullable()->default(null); - $table->string('ec', 100)->nullable()->default(null); - $table->string('fa', 100)->nullable()->default(null); - $table->string('fb', 100)->nullable()->default(null); - $table->string('other', 100)->nullable()->default(null); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('v_t_logs'); - } -} diff --git a/database/migrations/2023_08_19_050916_create_deleted_joints_table.php b/database/migrations/2023_08_19_050916_create_deleted_joints_table.php deleted file mode 100644 index 2fb69a8..0000000 --- a/database/migrations/2023_08_19_050916_create_deleted_joints_table.php +++ /dev/null @@ -1,194 +0,0 @@ -id(); - $table->timestamps(); - $table->string('comment', 255)->nullable()->default(null); - $table->date('deleted_date')->nullable()->default(null); - $table->string('general_contractor', 100)->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('ste_subcontractor', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('design_area', 100)->nullable()->default(null); - $table->string('line_specification', 100)->nullable()->default(null); - $table->string('line_number', 100)->nullable()->default(null); - $table->string('main_material', 100)->nullable()->default(null); - $table->string('main_nps', 100)->nullable()->default(null); - $table->string('fluid_code', 100)->nullable()->default(null); - $table->string('service_category', 100)->nullable()->default(null); - $table->string('fluid_group', 100)->nullable()->default(null); - $table->string('piping_class', 100)->nullable()->default(null); - $table->string('design_temperature_s', 100)->nullable()->default(null); - $table->string('design_pressure_mpa', 100)->nullable()->default(null); - $table->string('operating_temperature_s', 100)->nullable()->default(null); - $table->string('operating_pressure_mpa', 100)->nullable()->default(null); - $table->string('painting_cycle', 100)->nullable()->default(null); - $table->string('external_finish_type', 100)->nullable()->default(null); - $table->string('iso_number', 100)->nullable()->default(null); - $table->string('quantity_of_iso', 100)->nullable()->default(null); - $table->string('iso_rev', 100)->nullable()->default(null); - $table->string('spool_number', 100)->nullable()->default(null); - $table->date('spool_release_date')->nullable()->default(null); - $table->string('type_of_joint', 100)->nullable()->default(null); - $table->string('no_of_the_joint_as_per_as_built_survey', 100)->nullable()->default(null); - $table->string('type_of_welds', 100)->nullable()->default(null); - $table->date('welding_date')->nullable()->default(null); - $table->string('wps_no', 100)->nullable()->default(null); - $table->date('wps_approval_date')->nullable()->default(null); - $table->string('welding_method', 100)->nullable()->default(null); - $table->string('welding_materials_1', 100)->nullable()->default(null); - $table->string('welding_materials_1_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_1_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_2', 100)->nullable()->default(null); - $table->string('welding_materials_2_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_2_certificate_no', 100)->nullable()->default(null); - $table->string('welding_materials_3', 100)->nullable()->default(null); - $table->string('welding_materials_3_lot_no', 100)->nullable()->default(null); - $table->string('welding_materials_3_certificate_no', 100)->nullable()->default(null); - $table->string('welder_1', 100)->nullable()->default(null); - $table->string('welder_2', 100)->nullable()->default(null); - $table->string('mechanic_supervisor', 100)->nullable()->default(null); - $table->date('mechanic_supervisor_control_date')->nullable()->default(null); - $table->string('welding_supervisor', 100)->nullable()->default(null); - $table->date('welding_supervisor_control_date')->nullable()->default(null); - $table->string('certificate_no_1', 100)->nullable()->default(null); - $table->string('wpq_report_1', 100)->nullable()->default(null); - $table->string('certificate_no_2', 100)->nullable()->default(null); - $table->string('wpq_report_2', 100)->nullable()->default(null); - $table->string('pose_no_1', 100)->nullable()->default(null); - $table->string('element_code_1', 100)->nullable()->default(null); - $table->string('member_no_1', 100)->nullable()->default(null); - $table->string('material_no_1', 100)->nullable()->default(null); - $table->string('ru_material_group_1', 100)->nullable()->default(null); - $table->string('certificate_number_of_1', 100)->nullable()->default(null); - $table->string('heat_number_1', 100)->nullable()->default(null); - $table->string('nps_1', 100)->nullable()->default(null); - $table->string('thickness_by_asme_1', 100)->nullable()->default(null); - $table->string('outside_diameter_1', 100)->nullable()->default(null); - $table->string('wall_thickness_1', 100)->nullable()->default(null); - $table->string('pose_no_2', 100)->nullable()->default(null); - $table->string('element_code_2', 100)->nullable()->default(null); - $table->string('member_no_2', 100)->nullable()->default(null); - $table->string('material_no_2', 100)->nullable()->default(null); - $table->string('ru_material_group_2', 100)->nullable()->default(null); - $table->string('certificate_number_of_2', 100)->nullable()->default(null); - $table->string('heat_number_2', 100)->nullable()->default(null); - $table->string('nps_2', 100)->nullable()->default(null); - $table->string('thickness_by_asme_2', 100)->nullable()->default(null); - $table->string('outside_diameter_2', 100)->nullable()->default(null); - $table->string('wall_thickness_2', 100)->nullable()->default(null); - $table->string('ndt_percent', 100)->nullable()->default(null); - $table->string('vt_scope', 100)->nullable()->default(null); - $table->string('vt_request_no', 100)->nullable()->default(null); - $table->string('vt_report', 100)->nullable()->default(null); - $table->date('date_of_vt')->nullable()->default(null); - $table->date('vt_request_date')->nullable()->default(null); - $table->string('test_laboratory_vt', 100)->nullable()->default(null); - - $table->string('vt_result', 100)->nullable()->default(null); - - $table->string('rt_scope', 100)->nullable()->default(null); - $table->string('rt_request_no', 100)->nullable()->default(null); - $table->string('rt_report', 100)->nullable()->default(null); - $table->date('rt_test_date')->nullable()->default(null); - $table->date('rt_request_date')->nullable()->default(null); - $table->string('test_laboratory_rt', 100)->nullable()->default(null); - $table->string('rt_result', 100)->nullable()->default(null); - - $table->string('ut_scope', 100)->nullable()->default(null); - $table->string('ut_request_no', 100)->nullable()->default(null); - $table->string('ut_report', 100)->nullable()->default(null); - $table->date('ut_test_date')->nullable()->default(null); - $table->date('ut_request_date')->nullable()->default(null); - $table->string('test_laboratory_ut', 100)->nullable()->default(null); - $table->string('ut_result', 100)->nullable()->default(null); - $table->string('ut_type', 100)->nullable()->default(null); - - $table->string('pt_scope', 100)->nullable()->default(null); - $table->string('pt_request_no', 100)->nullable()->default(null); - $table->string('pt_report', 100)->nullable()->default(null); - $table->date('pt_test_date')->nullable()->default(null); - $table->date('pt_request_date')->nullable()->default(null); - $table->string('test_laboratory_pt', 100)->nullable()->default(null); - $table->string('pt_result', 100)->nullable()->default(null); - - $table->string('mt_scope', 100)->nullable()->default(null); - $table->string('mt_request_no', 100)->nullable()->default(null); - $table->string('mt_report', 100)->nullable()->default(null); - $table->date('mt_test_date')->nullable()->default(null); - $table->date('mt_request_date')->nullable()->default(null); - $table->string('test_laboratory_mt', 100)->nullable()->default(null); - $table->string('mt_result', 100)->nullable()->default(null); - - $table->string('pmi_scope', 100)->nullable()->default(null); - $table->string('pmi_request_no', 100)->nullable()->default(null); - $table->string('pmi_report', 100)->nullable()->default(null); - $table->string('no_of_testing_report', 100)->nullable()->default(null); - $table->date('pmi_test_date')->nullable()->default(null); - $table->date('pmi_request_date')->nullable()->default(null); - $table->string('test_laboratory_pmi', 100)->nullable()->default(null); - $table->string('pmi_result', 100)->nullable()->default(null); - - $table->string('nde', 100)->nullable()->default(null); - $table->string('group_no', 100)->nullable()->default(null); - - $table->string('pwht', 100)->nullable()->default(null); - $table->date('pwht_date')->nullable()->default(null); - $table->string('no_of_pwht_report', 100)->nullable()->default(null); - $table->string('diagram_number_pwht', 100)->nullable()->default(null); - $table->string('test_laboratory_pwht', 100)->nullable()->default(null); - $table->string('ht_scope', 100)->nullable()->default(null); - $table->string('ht_request_no', 100)->nullable()->default(null); - $table->date('ht_request_date')->nullable()->default(null); - $table->date('ht_report')->nullable()->default(null); - $table->string('no_of_ht_hardnes_test', 100)->nullable()->default(null); - $table->date('ht_request_date')->nullable()->default(null); - $table->string('test_laboratory_ht', 100)->nullable()->default(null); - $table->string('ht_result', 100)->nullable()->default(null); - $table->string('ferrite_scope', 100)->nullable()->default(null); - $table->string('ferrite_request_no', 100)->nullable()->default(null); - $table->string('no_of_ferrite_check', 100)->nullable()->default(null); - $table->date('date_of_ferrite_check')->nullable()->default(null); - $table->string('test_laboratory_ferrite', 100)->nullable()->default(null); - $table->string('ferrite_result', 100)->nullable()->default(null); - $table->string('test_package_no', 100)->nullable()->default(null); - $table->string('test_pressure', 100)->nullable()->default(null); - $table->string('type_of_test', 100)->nullable()->default(null); - $table->date('date_test')->nullable()->default(null); - $table->string('test_result', 100)->nullable()->default(null); - $table->string('real_welder_1', 100)->nullable()->default(null); - $table->string('real_welder_2', 100)->nullable()->default(null); - $table->string('ste_subcontructer', 100)->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - $table->date('fit_up_date')->nullable()->default(null); - $table->date('ndt_release_date')->nullable()->default(null); - $table->string('spool_zone', 100)->nullable()->default(null); - $table->string('spool_status', 100)->nullable()->default(null); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('deleted_joints'); - } -} diff --git a/database/migrations/2023_09_01_045847_create_welder_locations_table.php b/database/migrations/2023_09_01_045847_create_welder_locations_table.php deleted file mode 100644 index 7739903..0000000 --- a/database/migrations/2023_09_01_045847_create_welder_locations_table.php +++ /dev/null @@ -1,36 +0,0 @@ -id(); - $table->timestamps(); - $table->string('naks_id', 100)->nullable()->default(null); - $table->string('name_surname', 100)->nullable()->default(null); - $table->string('subcontructor', 100)->nullable()->default(null); - $table->string('location', 100)->nullable()->default(null); - $table->string('status', 100)->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('welder_locations'); - } -} diff --git a/database/migrations/2023_09_07_134643_create_locations_table.php b/database/migrations/2023_09_07_134643_create_locations_table.php deleted file mode 100644 index 018c7d5..0000000 --- a/database/migrations/2023_09_07_134643_create_locations_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('locations'); - } -} diff --git a/database/migrations/2023_09_15_053231_create_test_packages_table.php b/database/migrations/2023_09_15_053231_create_test_packages_table.php deleted file mode 100644 index 10b979c..0000000 --- a/database/migrations/2023_09_15_053231_create_test_packages_table.php +++ /dev/null @@ -1,81 +0,0 @@ -id(); - $table->timestamps(); - $table->string('unit', 100)->nullable()->default(null); - $table->string('discipline', 100)->nullable()->default(null); - $table->string('test_package_number', 100)->nullable()->default(null); - $table->string('circuit_number', 100)->nullable()->default(null); - $table->string('p_id', 100)->nullable()->default(null); - $table->string('iso_quantity', 100)->nullable()->default(null); - $table->string('subcontractor', 100)->nullable()->default(null); - $table->string('welding_status', 100)->nullable()->default(null); - $table->string('total_wdi', 100)->nullable()->default(null); - $table->string('total_complated_wdi', 100)->nullable()->default(null); - $table->string('total_shop_wdi', 100)->nullable()->default(null); - $table->string('total_complated_shop_wdi', 100)->nullable()->default(null); - $table->string('total_field_wdi', 100)->nullable()->default(null); - $table->string('total_complated_field_wdi', 100)->nullable()->default(null); - $table->string('test_type', 100)->nullable()->default(null); - $table->string('test_medium', 100)->nullable()->default(null); - $table->string('test_pressure', 100)->nullable()->default(null); - $table->string('golden_joints', 100)->nullable()->default(null); - $table->string('tp_general_status', 100)->nullable()->default(null); - $table->date('test_package_sent_date')->nullable()->default(null); - $table->string('status', 100)->nullable()->default(null); - $table->date('test_package_approval_date')->nullable()->default(null); - $table->date('walkdown_date')->nullable()->default(null); - $table->string('punch_list', 100)->nullable()->default(null); - $table->string('a_punch_point_open', 100)->nullable()->default(null); - $table->string('b_punch_point_open', 100)->nullable()->default(null); - $table->string('c_punch_point_open', 100)->nullable()->default(null); - $table->date('received_by_qc')->nullable()->default(null); - $table->string('ndt_status', 100)->nullable()->default(null); - $table->string('repair_status_total', 100)->nullable()->default(null); - $table->date('planned_test')->nullable()->default(null); - $table->string('responsible_test', 100)->nullable()->default(null); - $table->string('rfi_no', 100)->nullable()->default(null); - $table->date('rfi_date')->nullable()->default(null); - $table->date('test_status')->nullable()->default(null); - $table->string('cleaning_blowing_drying_rfi', 100)->nullable()->default(null); - $table->string('responsible_cleaning', 100)->nullable()->default(null); - $table->string('cleaning_blowing_drying_status', 100)->nullable()->default(null); - $table->date('cleaning_blowing_drying_date')->nullable()->default(null); - $table->string('cleaning_blowing_drying_rfi_no', 100)->nullable()->default(null); - $table->string('reinstatement_rfi', 100)->nullable()->default(null); - $table->date('responsible_reinstatement')->nullable()->default(null); - $table->string('reinstatement_status', 100)->nullable()->default(null); - $table->date('reinstatement_date')->nullable()->default(null); - $table->string('cw', 100)->nullable()->default(null); - $table->string('priority', 100)->nullable()->default(null); - $table->string('priority_info', 100)->nullable()->default(null); - $table->string('system_combine', 100)->nullable()->default(null); - $table->date('planned_test_date')->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('test_packages'); - } -} diff --git a/database/migrations/2023_09_15_060416_create_test_pack_base_statuses_table.php b/database/migrations/2023_09_15_060416_create_test_pack_base_statuses_table.php deleted file mode 100644 index 0d46fe3..0000000 --- a/database/migrations/2023_09_15_060416_create_test_pack_base_statuses_table.php +++ /dev/null @@ -1,62 +0,0 @@ -id(); - $table->timestamps(); - $table->string('drawing_no', 100)->nullable()->default(null); - $table->string('test_package_no', 100)->nullable()->default(null); - $table->string('subcontractor', 100)->nullable()->default(null); - $table->string('responsible_person', 100)->nullable()->default(null); - $table->string('iso_qty', 100)->nullable()->default(null); - $table->string('priority', 100)->nullable()->default(null); - $table->string('priority_info', 100)->nullable()->default(null); - $table->date('target_test_date')->nullable()->default(null); - $table->string('test_medium', 100)->nullable()->default(null); - $table->string('test_pressure_mpa', 100)->nullable()->default(null); - $table->string('tp_status', 100)->nullable()->default(null); - $table->string('total_iso_quantity', 100)->nullable()->default(null); - $table->string('welding_status', 100)->nullable()->default(null); - $table->string('remaining_wdi', 100)->nullable()->default(null); - $table->string('total_wdi', 100)->nullable()->default(null); - $table->string('total_complated_wdi', 100)->nullable()->default(null); - $table->string('pipe_progress', 100)->nullable()->default(null); - $table->string('total_joint_qty', 100)->nullable()->default(null); - $table->string('total_welded_joint_qty', 100)->nullable()->default(null); - $table->string('welded_support_quantity', 100)->nullable()->default(null); - $table->string('punch_a_quantity', 100)->nullable()->default(null); - $table->string('punch_b_quantity', 100)->nullable()->default(null); - $table->string('punch_c_quantity', 100)->nullable()->default(null); - $table->string('repair_qty', 100)->nullable()->default(null); - $table->string('rt_ut_status', 100)->nullable()->default(null); - $table->string('rt_ut_backlog', 100)->nullable()->default(null); - $table->string('rt_ut_done', 100)->nullable()->default(null); - $table->string('mt_pt_backlog', 100)->nullable()->default(null); - $table->string('mt_pt_done', 100)->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('test_pack_base_statuses'); - } -} diff --git a/database/migrations/2023_09_15_084509_create_punch_lists_table.php b/database/migrations/2023_09_15_084509_create_punch_lists_table.php deleted file mode 100644 index f533adf..0000000 --- a/database/migrations/2023_09_15_084509_create_punch_lists_table.php +++ /dev/null @@ -1,55 +0,0 @@ -id(); - $table->timestamps(); - $table->string('subcontractor', 100)->nullable()->default(null); - $table->string('discipline', 100)->nullable()->default(null); - $table->string('unit', 100)->nullable()->default(null); - $table->string('area', 100)->nullable()->default(null); - $table->string('test_package', 100)->nullable()->default(null); - $table->string('line_isometric_no', 100)->nullable()->default(null); - $table->string('punch_list_no', 100)->nullable()->default(null); - $table->string('code_number', 100)->nullable()->default(null); - $table->string('eng', 100)->nullable()->default(null); - $table->string('rus', 100)->nullable()->default(null); - $table->string('category', 100)->nullable()->default(null); - $table->string('rfi_no', 100)->nullable()->default(null); - $table->date('rfi_date')->nullable()->default(null); - $table->string('reference_document', 100)->nullable()->default(null); - $table->string('originator_name', 100)->nullable()->default(null); - $table->string('originator_company', 100)->nullable()->default(null); - $table->date('found_date')->nullable()->default(null); - $table->date('close_target_date')->nullable()->default(null); - $table->string('action_by', 100)->nullable()->default(null); - $table->string('status', 100)->nullable()->default(null); - $table->string('items_cleared_by_name', 100)->nullable()->default(null); - $table->date('items_cleared_by_close_date')->nullable()->default(null); - $table->string('responsible', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('punch_lists'); - } -} diff --git a/database/migrations/2023_09_19_104739_create_incoming_control_paints_table.php b/database/migrations/2023_09_19_104739_create_incoming_control_paints_table.php deleted file mode 100644 index 3531667..0000000 --- a/database/migrations/2023_09_19_104739_create_incoming_control_paints_table.php +++ /dev/null @@ -1,54 +0,0 @@ -id(); - $table->timestamps(); - $table->string('rfi_no', 100)->nullable()->default(null); - $table->date('rfi_date')->nullable()->default(null); - $table->string('akt_number', 100)->nullable()->default(null); - $table->date('akt_date')->nullable()->default(null); - $table->string('suplier', 100)->nullable()->default(null); - $table->string('project', 100)->nullable()->default(null); - $table->string('revision', 100)->nullable()->default(null); - $table->string('component_name', 100)->nullable()->default(null); - $table->string('brend_name', 100)->nullable()->default(null); - $table->string('colour', 100)->nullable()->default(null); - $table->string('ral_code', 100)->nullable()->default(null); - $table->string('certificate_no', 100)->nullable()->default(null); - $table->date('certificate_date')->nullable()->default(null); - $table->string('certificate_quantity', 100)->nullable()->default(null); - $table->string('manufacturing_standard', 100)->nullable()->default(null); - $table->string('lot_no', 100)->nullable()->default(null); - $table->string('quantity', 100)->nullable()->default(null); - $table->string('unit_kgmetc', 100)->nullable()->default(null); - $table->string('certificate_page_quantity', 100)->nullable()->default(null); - $table->string('akt_status', 100)->nullable()->default(null); - $table->string('inspected_by', 100)->nullable()->default(null); - $table->string('third_party', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('incoming_control_paints'); - } -} diff --git a/database/migrations/2023_09_20_073015_create_r_f_i_s_table.php b/database/migrations/2023_09_20_073015_create_r_f_i_s_table.php deleted file mode 100644 index 1057d53..0000000 --- a/database/migrations/2023_09_20_073015_create_r_f_i_s_table.php +++ /dev/null @@ -1,64 +0,0 @@ -id(); - $table->timestamps(); - $table->date('preparing_date')->nullable()->default(null); - $table->time('preparing_time')->nullable()->default(null); // Düzeltilmiş - $table->string('project_no', 100)->nullable()->default(null); - $table->string('itp', 100)->nullable()->default(null); - $table->string('discipline', 100)->nullable()->default(null); - $table->string('rfi_no', 100)->nullable()->default(null); - $table->date('inspection_date')->nullable()->default(null); - $table->date('result_date')->nullable()->default(null); - $table->time('inspection_time')->nullable()->default(null); // Düzeltilmiş - $table->string('the_period_between', 100)->nullable()->default(null); - $table->string('subcontractor', 100)->nullable()->default(null); - $table->string('subcontractor_responsiable', 100)->nullable()->default(null); - $table->string('contractor', 100)->nullable()->default(null); - $table->string('contractor_responsiable_1', 100)->nullable()->default(null); - $table->string('thirdparty', 100)->nullable()->default(null); - $table->string('thirdparty_responsiable_2', 100)->nullable()->default(null); - $table->string('company', 100)->nullable()->default(null); - $table->string('company_responsiable_3', 100)->nullable()->default(null); - $table->string('unit', 100)->nullable()->default(null); - $table->string('area', 100)->nullable()->default(null); - $table->string('location', 100)->nullable()->default(null); - $table->string('qc_activity', 100)->nullable()->default(null); - $table->string('phase', 100)->nullable()->default(null); - $table->string('item', 100)->nullable()->default(null); - $table->string('description', 100)->nullable()->default(null); - $table->string('description_ru', 100)->nullable()->default(null); - $table->string('working_documents', 100)->nullable()->default(null); - $table->string('system', 100)->nullable()->default(null); - $table->string('subsystem', 100)->nullable()->default(null); - $table->string('revision', 100)->nullable()->default(null); - $table->string('revision_reasions', 100)->nullable()->default(null); - $table->string('status', 100)->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('r_f_i_s'); - } -} diff --git a/database/migrations/2023_09_21_062928_create_counters_table.php b/database/migrations/2023_09_21_062928_create_counters_table.php deleted file mode 100644 index 6bac54d..0000000 --- a/database/migrations/2023_09_21_062928_create_counters_table.php +++ /dev/null @@ -1,34 +0,0 @@ -id(); - $table->timestamps(); - $table->string('prefix', 100)->nullable()->default(null); - $table->integer('value')->nullable()->default(0); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('counters'); - } -} diff --git a/database/migrations/2023_09_25_064219_create_i_t_p_s_table.php b/database/migrations/2023_09_25_064219_create_i_t_p_s_table.php deleted file mode 100644 index a6100f7..0000000 --- a/database/migrations/2023_09_25_064219_create_i_t_p_s_table.php +++ /dev/null @@ -1,44 +0,0 @@ -id(); - $table->timestamps(); - $table->string('itp_no', 100)->nullable()->default(null); - $table->string('item_no', 100)->nullable()->default(null); - $table->string('inspection_step_ru', 100)->nullable()->default(null); - $table->string('inspection_step_en', 100)->nullable()->default(null); - $table->string('standard_procedures', 100)->nullable()->default(null); - $table->string('working_drawing', 100)->nullable()->default(null); - $table->string('report_document_protocol', 100)->nullable()->default(null); - $table->string('inspection_control', 100)->nullable()->default(null); - $table->string('subcontractor', 100)->nullable()->default(null); - $table->string('ste', 100)->nullable()->default(null); - $table->string('cas', 100)->nullable()->default(null); - $table->string('mf', 100)->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('i_t_p_s'); - } -} diff --git a/database/migrations/2023_09_25_120026_create_piping_types_table.php b/database/migrations/2023_09_25_120026_create_piping_types_table.php deleted file mode 100644 index 4399727..0000000 --- a/database/migrations/2023_09_25_120026_create_piping_types_table.php +++ /dev/null @@ -1,32 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title', 100)->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('piping_types'); - } -} diff --git a/database/migrations/2023_09_25_122851_create_punch_descriptions_table.php b/database/migrations/2023_09_25_122851_create_punch_descriptions_table.php deleted file mode 100644 index 1bca0f6..0000000 --- a/database/migrations/2023_09_25_122851_create_punch_descriptions_table.php +++ /dev/null @@ -1,37 +0,0 @@ -id(); - $table->timestamps(); - $table->string('code', 100)->nullable()->default(null); - $table->string('discipline', 100)->nullable()->default(null); - $table->string('description', 100)->nullable()->default(null); - $table->string('description_ru', 100)->nullable()->default(null); - $table->string('category', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('punch_descriptions'); - } -} diff --git a/database/migrations/2023_09_25_134007_create_general_disciplines_table.php b/database/migrations/2023_09_25_134007_create_general_disciplines_table.php deleted file mode 100644 index ba27999..0000000 --- a/database/migrations/2023_09_25_134007_create_general_disciplines_table.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('general_disciplines'); - } -} diff --git a/database/migrations/2023_10_05_105049_unique_columns.php b/database/migrations/2023_10_05_105049_unique_columns.php deleted file mode 100644 index d000a0c..0000000 --- a/database/migrations/2023_10_05_105049_unique_columns.php +++ /dev/null @@ -1,40 +0,0 @@ -unique(['line', 'type_of_joint', 'fluid']); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_10_11_115042_add_clearence_column_weldlog.php b/database/migrations/2023_10_11_115042_add_clearence_column_weldlog.php deleted file mode 100644 index b4ddd5a..0000000 --- a/database/migrations/2023_10_11_115042_add_clearence_column_weldlog.php +++ /dev/null @@ -1,45 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->string($addColumn)->nullable(); - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_10_13_123457_rename_v_t_testing_date_column.php b/database/migrations/2023_10_13_123457_rename_v_t_testing_date_column.php deleted file mode 100644 index ffbead0..0000000 --- a/database/migrations/2023_10_13_123457_rename_v_t_testing_date_column.php +++ /dev/null @@ -1,31 +0,0 @@ -renameColumn('vt_testing_date', 'vt_test_date'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_10_31_092128_add_real_welder_n_d_t_logs.php b/database/migrations/2023_10_31_092128_add_real_welder_n_d_t_logs.php deleted file mode 100644 index 509abbe..0000000 --- a/database/migrations/2023_10_31_092128_add_real_welder_n_d_t_logs.php +++ /dev/null @@ -1,49 +0,0 @@ -dropColumn($addColumn); - }); - dump("$sameTable already real welder"); - } else { - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->string($addColumn)->nullable()->default(null); - }); - dump("$sameTable added real welder"); - } - - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_11_01_165725_add_project_incoming_control.php b/database/migrations/2023_11_01_165725_add_project_incoming_control.php deleted file mode 100644 index 4429901..0000000 --- a/database/migrations/2023_11_01_165725_add_project_incoming_control.php +++ /dev/null @@ -1,49 +0,0 @@ -dropColumn($addColumn); - }); - dump("$sameTable already $addColumn"); - } else { - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->string($addColumn)->nullable()->default(null); - }); - dump("$sameTable added $addColumn"); - } - - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_11_02_104059_add_designer_incoming_control.php b/database/migrations/2023_11_02_104059_add_designer_incoming_control.php deleted file mode 100644 index ab3078c..0000000 --- a/database/migrations/2023_11_02_104059_add_designer_incoming_control.php +++ /dev/null @@ -1,49 +0,0 @@ -dropColumn($addColumn); - }); - dump("$sameTable already $addColumn"); - } else { - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->string($addColumn)->nullable()->default(null); - }); - dump("$sameTable added $addColumn"); - } - - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_11_08_142217_create_punch_list_comments_table.php b/database/migrations/2023_11_08_142217_create_punch_list_comments_table.php deleted file mode 100644 index aa8ceb8..0000000 --- a/database/migrations/2023_11_08_142217_create_punch_list_comments_table.php +++ /dev/null @@ -1,37 +0,0 @@ -id(); - $table->timestamps(); - $table->string('code', 10)->nullable()->default(null); - $table->string('discipline', 255)->nullable()->default(null); - $table->string('description_en', 255)->nullable()->default(null); - $table->string('opisanie_rus', 100)->nullable()->default(null); - $table->string('category', 10)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('punch_list_comments'); - } -} diff --git a/database/migrations/2023_11_17_071632_change_column_name_paint_follow_up.php b/database/migrations/2023_11_17_071632_change_column_name_paint_follow_up.php deleted file mode 100644 index 5c2810b..0000000 --- a/database/migrations/2023_11_17_071632_change_column_name_paint_follow_up.php +++ /dev/null @@ -1,33 +0,0 @@ -renameColumn('volumem2', 'volume_1'); - $table->renameColumn('volumem22', 'volume_2'); - $table->renameColumn('volumem23', 'volume_3'); - $table->renameColumn('total_volumem3', 'total_volume'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_12_06_072719_create_duty_types_table.php b/database/migrations/2023_12_06_072719_create_duty_types_table.php deleted file mode 100644 index d53b26e..0000000 --- a/database/migrations/2023_12_06_072719_create_duty_types_table.php +++ /dev/null @@ -1,32 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title', 100)->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('duty_types'); - } -} diff --git a/database/migrations/2023_12_07_071430_add_address_etc_subcontractor.php b/database/migrations/2023_12_07_071430_add_address_etc_subcontractor.php deleted file mode 100644 index fd0722d..0000000 --- a/database/migrations/2023_12_07_071430_add_address_etc_subcontractor.php +++ /dev/null @@ -1,45 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->string($addColumn)->nullable(); - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_12_07_074955_add_zone_work_permit.php b/database/migrations/2023_12_07_074955_add_zone_work_permit.php deleted file mode 100644 index 94ea457..0000000 --- a/database/migrations/2023_12_07_074955_add_zone_work_permit.php +++ /dev/null @@ -1,45 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->string($addColumn)->nullable(); - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_12_14_103340_add_register_paint_weldlog.php b/database/migrations/2023_12_14_103340_add_register_paint_weldlog.php deleted file mode 100644 index 955553e..0000000 --- a/database/migrations/2023_12_14_103340_add_register_paint_weldlog.php +++ /dev/null @@ -1,51 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - - if(strpos($addColumn, 'date') !== false) { - $table->date($addColumn)->nullable(); - } else { - $table->string($addColumn)->nullable(); - } - - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_12_22_174254_create_user_levels_table.php b/database/migrations/2023_12_22_174254_create_user_levels_table.php deleted file mode 100644 index 942591b..0000000 --- a/database/migrations/2023_12_22_174254_create_user_levels_table.php +++ /dev/null @@ -1,42 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title', 100)->nullable()->default(null); - $table->integer('level_index'); - $table->integer('full_control'); - $table->integer('write'); - $table->integer('read'); - $table->integer('modify'); - $table->string('description', 100)->nullable()->default(null); - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('user_levels'); - } -} diff --git a/database/migrations/2023_12_23_100126_add_p_w_h_t_operator_in_weld_log.php b/database/migrations/2023_12_23_100126_add_p_w_h_t_operator_in_weld_log.php deleted file mode 100644 index 8bcc604..0000000 --- a/database/migrations/2023_12_23_100126_add_p_w_h_t_operator_in_weld_log.php +++ /dev/null @@ -1,53 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - - if(strpos($addColumn, 'date') !== false) { - $table->date($addColumn)->nullable(); - } else { - $table->string($addColumn)->nullable(); - } - - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('weld_logs', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2023_12_28_074530_add_test_date_test_package.php b/database/migrations/2023_12_28_074530_add_test_date_test_package.php deleted file mode 100644 index a220b43..0000000 --- a/database/migrations/2023_12_28_074530_add_test_date_test_package.php +++ /dev/null @@ -1,51 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - - if(strpos($addColumn, 'date') !== false) { - $table->date($addColumn)->nullable(); - } else { - $table->string($addColumn)->nullable(); - } - - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_12_28_081654_add_column_test_iso_base.php b/database/migrations/2023_12_28_081654_add_column_test_iso_base.php deleted file mode 100644 index b14f0b9..0000000 --- a/database/migrations/2023_12_28_081654_add_column_test_iso_base.php +++ /dev/null @@ -1,51 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - - if(strpos($addColumn, 'date') !== false) { - $table->date($addColumn)->nullable(); - } else { - $table->string($addColumn)->nullable(); - } - - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2024_01_01_000001_add_performance_indexes_for_spool_status.php b/database/migrations/2024_01_01_000001_add_performance_indexes_for_spool_status.php deleted file mode 100644 index d7dd92a..0000000 --- a/database/migrations/2024_01_01_000001_add_performance_indexes_for_spool_status.php +++ /dev/null @@ -1,70 +0,0 @@ -index(['iso_number', 'spool_number'], 'idx_weld_logs_iso_spool'); - - // Index for updated_at ordering within partitions - $table->index(['iso_number', 'spool_number', 'updated_at'], 'idx_weld_logs_iso_spool_updated'); - - // Index for spool_status filtering - $table->index('spool_status', 'idx_weld_logs_spool_status'); - - // Index for type_of_joint filtering - $table->index('type_of_joint', 'idx_weld_logs_type_of_joint'); - - // Index for painting_cycle filtering - $table->index('painting_cycle', 'idx_weld_logs_painting_cycle'); - - // Composite index for status update conditions - $table->index(['spool_status', 'painting_cycle', 'paint_release_date', 'ndt_release_date'], 'idx_weld_logs_status_conditions'); - }); - - Schema::table('construction_paint_logs', function (Blueprint $table) { - // Composite index for iso_drawings + spool lookups - $table->index(['iso_drawings', 'spool'], 'idx_paint_logs_iso_spool'); - - // Index for line filtering - $table->index('line', 'idx_paint_logs_line'); - - // Index for spool filtering - $table->index('spool', 'idx_paint_logs_spool'); - - // Composite index for line + spool filtering - $table->index(['line', 'spool'], 'idx_paint_logs_line_spool'); - }); - } - - /** - * Reverse the migrations - */ - public function down() - { - Schema::table('weld_logs', function (Blueprint $table) { - $table->dropIndex('idx_weld_logs_iso_spool'); - $table->dropIndex('idx_weld_logs_iso_spool_updated'); - $table->dropIndex('idx_weld_logs_spool_status'); - $table->dropIndex('idx_weld_logs_type_of_joint'); - $table->dropIndex('idx_weld_logs_painting_cycle'); - $table->dropIndex('idx_weld_logs_status_conditions'); - }); - - Schema::table('construction_paint_logs', function (Blueprint $table) { - $table->dropIndex('idx_paint_logs_iso_spool'); - $table->dropIndex('idx_paint_logs_line'); - $table->dropIndex('idx_paint_logs_spool'); - $table->dropIndex('idx_paint_logs_line_spool'); - }); - } -}; diff --git a/database/migrations/2024_01_03_141817_create_document_procedures_table.php b/database/migrations/2024_01_03_141817_create_document_procedures_table.php deleted file mode 100644 index 22a88aa..0000000 --- a/database/migrations/2024_01_03_141817_create_document_procedures_table.php +++ /dev/null @@ -1,49 +0,0 @@ -id(); - $table->timestamps(); - $table->string('scope', 100)->nullable()->default(null); - $table->string('publisher', 100)->nullable()->default(null); - $table->date('publish_date')->nullable()->default(null); - $table->string('document_no', 100)->nullable()->default(null); - $table->string('disipline', 100)->nullable()->default(null); - $table->string('description', 100)->nullable()->default(null); - $table->string('language', 100)->nullable()->default(null); - $table->string('prepared_by', 100)->nullable()->default(null); - $table->string('document_type', 100)->nullable()->default(null); - $table->string('status', 100)->nullable()->default(null); - $table->string('revision_info', 100)->nullable()->default(null); - $table->date('revision_date')->nullable()->default(null); - $table->string('controller', 100)->nullable()->default(null); - $table->date('control_given_date')->nullable()->default(null); - $table->string('remarks', 100)->nullable()->default(null); - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('document_procedures'); - } -} diff --git a/database/migrations/2024_01_11_071057_create_material_group_maps_table.php b/database/migrations/2024_01_11_071057_create_material_group_maps_table.php deleted file mode 100644 index 8cd1b76..0000000 --- a/database/migrations/2024_01_11_071057_create_material_group_maps_table.php +++ /dev/null @@ -1,34 +0,0 @@ -id(); - $table->timestamps(); - $table->string('material_name', 100)->nullable()->default(null); - $table->string('qualified_materials', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('material_group_maps'); - } -} diff --git a/database/migrations/2024_02_09_080156_add_p_d_f_link_columns_weldlog.php b/database/migrations/2024_02_09_080156_add_p_d_f_link_columns_weldlog.php deleted file mode 100644 index 51376c8..0000000 --- a/database/migrations/2024_02_09_080156_add_p_d_f_link_columns_weldlog.php +++ /dev/null @@ -1,45 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->text($addColumn)->nullable(); - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2024_02_16_124635_create_column_descriptions_table.php b/database/migrations/2024_02_16_124635_create_column_descriptions_table.php deleted file mode 100644 index bf69e87..0000000 --- a/database/migrations/2024_02_16_124635_create_column_descriptions_table.php +++ /dev/null @@ -1,35 +0,0 @@ -id(); - $table->timestamps(); - $table->string('module_name', 100)->nullable()->default(null); - $table->string('column_name', 100)->nullable()->default(null); - $table->string('description', 100)->nullable()->default(null); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('column_descriptions'); - } -} diff --git a/database/migrations/2024_02_19_070745_add_column_subcontructor.php b/database/migrations/2024_02_19_070745_add_column_subcontructor.php deleted file mode 100644 index e38030d..0000000 --- a/database/migrations/2024_02_19_070745_add_column_subcontructor.php +++ /dev/null @@ -1,56 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - if($addColumn == "sign_order") { - $table->integer($addColumn)->nullable(); - } else { - $table->string($addColumn)->nullable(); - } - - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2024_02_19_072924_add_column_work_permit_document.php b/database/migrations/2024_02_19_072924_add_column_work_permit_document.php deleted file mode 100644 index 13365ef..0000000 --- a/database/migrations/2024_02_19_072924_add_column_work_permit_document.php +++ /dev/null @@ -1,53 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - if($addColumn == "sign_order") { - $table->integer($addColumn)->nullable(); - } else { - $table->longText($addColumn)->nullable(); - } - - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2024_03_15_103937_add_fc_column_to_radiographic_tests_table.php b/database/migrations/2024_03_15_103937_add_fc_column_to_radiographic_tests_table.php deleted file mode 100644 index ccb6f38..0000000 --- a/database/migrations/2024_03_15_103937_add_fc_column_to_radiographic_tests_table.php +++ /dev/null @@ -1,34 +0,0 @@ -after('fb', function ($table) { - $table->string('fc')->nullable(); - }); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('radiographic_tests', function (Blueprint $table) { - $table->dropColumn('fc'); - }); - } -} diff --git a/database/migrations/2024_03_21_create_deleted_records_table.php b/database/migrations/2024_03_21_create_deleted_records_table.php deleted file mode 100644 index 0a7afc8..0000000 --- a/database/migrations/2024_03_21_create_deleted_records_table.php +++ /dev/null @@ -1,31 +0,0 @@ -id(); - $table->string('table_name'); - $table->unsignedBigInteger('record_id'); - $table->json('deleted_data'); - $table->unsignedBigInteger('deleted_by')->nullable(); - $table->string('deleted_by_name')->nullable(); - $table->timestamps(); - - // İndeksler - $table->index('table_name'); - $table->index('record_id'); - $table->index('deleted_by'); - }); - } - - public function down() - { - Schema::dropIfExists('deleted_records'); - } -}; \ No newline at end of file diff --git a/database/migrations/2024_05_07_042947_n_d_t_p_d_f_links_add.php b/database/migrations/2024_05_07_042947_n_d_t_p_d_f_links_add.php deleted file mode 100644 index b7fb541..0000000 --- a/database/migrations/2024_05_07_042947_n_d_t_p_d_f_links_add.php +++ /dev/null @@ -1,47 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->text($addColumn)->nullable(); - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2024_05_07_072854_add_p_d_f_document_revision.php b/database/migrations/2024_05_07_072854_add_p_d_f_document_revision.php deleted file mode 100644 index ca7802e..0000000 --- a/database/migrations/2024_05_07_072854_add_p_d_f_document_revision.php +++ /dev/null @@ -1,48 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->text($addColumn)->nullable(); - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2024_05_08_052258_addspool_ndt_check_date.php b/database/migrations/2024_05_08_052258_addspool_ndt_check_date.php deleted file mode 100644 index 373c370..0000000 --- a/database/migrations/2024_05_08_052258_addspool_ndt_check_date.php +++ /dev/null @@ -1,46 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->date($addColumn)->nullable(); - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2024_05_09_151628_add_clearance_date_in_weld_logs.php b/database/migrations/2024_05_09_151628_add_clearance_date_in_weld_logs.php deleted file mode 100644 index 6f2b432..0000000 --- a/database/migrations/2024_05_09_151628_add_clearance_date_in_weld_logs.php +++ /dev/null @@ -1,47 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->date($addColumn)->nullable(); - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('weld_logs', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2024_05_16_064156_spool_remarks_in_weld_logs.php b/database/migrations/2024_05_16_064156_spool_remarks_in_weld_logs.php deleted file mode 100644 index 5d05714..0000000 --- a/database/migrations/2024_05_16_064156_spool_remarks_in_weld_logs.php +++ /dev/null @@ -1,47 +0,0 @@ -dropColumn($addColumn); - }); - } - Schema::table($sameTable, function (Blueprint $table) use($addColumn) { - $table->string($addColumn, 50)->nullable(); - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('weld_logs', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2024_05_22_091832_create_handovers_table.php b/database/migrations/2024_05_22_091832_create_handovers_table.php deleted file mode 100644 index c56da09..0000000 --- a/database/migrations/2024_05_22_091832_create_handovers_table.php +++ /dev/null @@ -1,88 +0,0 @@ -id(); - $table->string('object'); - $table->string('work_type'); - $table->string('project'); - $table->integer('total_volumes'); - $table->integer('collected_volumes'); - $table->integer('not_collected_volumes')->default(1); - $table->string('responsible'); - $table->date('date_of_transfer1')->nullable(); - $table->date('date_of_return1')->nullable(); - $table->string('status1')->nullable(); - $table->date('date_of_transfer2')->nullable(); - $table->date('date_of_return2')->nullable(); - $table->string('status2')->nullable(); - $table->date('date_of_transfer3')->nullable(); - $table->date('date_of_return3')->nullable(); - $table->string('status3')->nullable(); - $table->string('waiting_tech1')->nullable(); - $table->string('waiting_tech2')->nullable(); - $table->string('waiting_tech3')->nullable(); - $table->integer('sum_tech')->nullable(); - $table->string('waiting_ste1')->nullable(); - $table->string('waiting_ste2')->nullable(); - $table->string('waiting_ste3')->nullable(); - $table->integer('sum_ste')->nullable(); - $table->date('date_of_transfer_ste1')->nullable(); - $table->date('date_of_return_ste1')->nullable(); - $table->string('status_ste1')->nullable(); - $table->date('date_of_transfer_ste2')->nullable(); - $table->date('date_of_return_ste2')->nullable(); - $table->string('status_ste2')->nullable(); - $table->string('waiting_apat1')->nullable(); - $table->string('waiting_apat2')->nullable(); - $table->integer('sum_apat')->nullable(); - $table->string('waiting_ste_apat1')->nullable(); - $table->string('waiting_ste_apat2')->nullable(); - $table->integer('sum_ste_apat')->nullable(); - $table->string('atg')->nullable(); - $table->string('archive')->nullable(); - $table->string('location')->nullable(); - $table->string('status_atg')->nullable(); - $table->integer('atg_count')->nullable(); - $table->string('reminder')->nullable(); - $table->integer('month_tex1')->nullable(); - $table->integer('year_tex1')->nullable(); - $table->string('year_month_tex1')->nullable(); - $table->integer('month_tex2')->nullable(); - $table->integer('year_tex2')->nullable(); - $table->string('year_month_tex2')->nullable(); - $table->integer('month_tex3')->nullable(); - $table->integer('year_tex3')->nullable(); - $table->string('year_month_tex3')->nullable(); - $table->integer('month_apatit1')->nullable(); - $table->integer('year_apatit1')->nullable(); - $table->string('year_month_apatit1')->nullable(); - $table->integer('month_apatit2')->nullable(); - $table->integer('year_apatit2')->nullable(); - $table->string('year_month_apatit2')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('handovers'); - } -} diff --git a/database/migrations/2024_05_24_093937_add_total_thickness_to_paint_follow_ups_table.php b/database/migrations/2024_05_24_093937_add_total_thickness_to_paint_follow_ups_table.php deleted file mode 100644 index 9120d51..0000000 --- a/database/migrations/2024_05_24_093937_add_total_thickness_to_paint_follow_ups_table.php +++ /dev/null @@ -1,32 +0,0 @@ -decimal('total_thickness', 8, 2)->after('total_volume'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('paint_follow_ups', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2024_05_28_170934_add_line_number_document_revision.php b/database/migrations/2024_05_28_170934_add_line_number_document_revision.php deleted file mode 100644 index cefd25b..0000000 --- a/database/migrations/2024_05_28_170934_add_line_number_document_revision.php +++ /dev/null @@ -1,33 +0,0 @@ -string('line_number')->after('drawing_no')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('document_revisions', function (Blueprint $table) { - $table->dropColumn('line_number'); - }); - } -} diff --git a/database/migrations/2024_06_06_105431_add_k_s_s_journal_in_w_p_q__follow_ups.php b/database/migrations/2024_06_06_105431_add_k_s_s_journal_in_w_p_q__follow_ups.php deleted file mode 100644 index ae19c43..0000000 --- a/database/migrations/2024_06_06_105431_add_k_s_s_journal_in_w_p_q__follow_ups.php +++ /dev/null @@ -1,32 +0,0 @@ -string('kss_journal')->after('id')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('welder_tests', function (Blueprint $table) { - $table->dropColumn('kss_journal'); - }); - } -} diff --git a/database/migrations/2024_06_10_105140_add_discipline_in_i_t_p.php b/database/migrations/2024_06_10_105140_add_discipline_in_i_t_p.php deleted file mode 100644 index 20e1dcd..0000000 --- a/database/migrations/2024_06_10_105140_add_discipline_in_i_t_p.php +++ /dev/null @@ -1,32 +0,0 @@ -string('discipline')->before('itp_no'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('i_t_p_s', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2024_06_11_174932_create_q_c_activities_table.php b/database/migrations/2024_06_11_174932_create_q_c_activities_table.php deleted file mode 100644 index 1cec5cd..0000000 --- a/database/migrations/2024_06_11_174932_create_q_c_activities_table.php +++ /dev/null @@ -1,32 +0,0 @@ -id(); - $table->timestamps(); - $table->string('title')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('q_c_activities'); - } -} diff --git a/database/migrations/2024_06_13_111212_add_tax_to_subcontractors_table.php b/database/migrations/2024_06_13_111212_add_tax_to_subcontractors_table.php deleted file mode 100644 index 1595c42..0000000 --- a/database/migrations/2024_06_13_111212_add_tax_to_subcontractors_table.php +++ /dev/null @@ -1,40 +0,0 @@ -string('address_ru2')->nullable()->after('address_ru'); - $table->string('tax')->nullable()->after('address_ru2'); - $table->string('tax2')->nullable()->after('tax'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('subcontractors', function (Blueprint $table) { - // Drop the column if the migration is rolled back - - $table->dropColumn('tax'); - $table->dropColumn('address_ru2'); - $table->dropColumn('tax2'); - - }); - } -} diff --git a/database/migrations/2024_06_13_145548_add_certificate_date_work_permit.php b/database/migrations/2024_06_13_145548_add_certificate_date_work_permit.php deleted file mode 100644 index 63bdf25..0000000 --- a/database/migrations/2024_06_13_145548_add_certificate_date_work_permit.php +++ /dev/null @@ -1,34 +0,0 @@ -date('certificate_date')->nullable()->after('certificates_number'); - $table->string('attorney')->nullable()->after('certificate_date'); - $table->date('attorney_date')->nullable()->after('attorney'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2024_06_13_162517_add_engineering_and_project_to_line_lists_table.php b/database/migrations/2024_06_13_162517_add_engineering_and_project_to_line_lists_table.php deleted file mode 100644 index 408f45b..0000000 --- a/database/migrations/2024_06_13_162517_add_engineering_and_project_to_line_lists_table.php +++ /dev/null @@ -1,35 +0,0 @@ -string('engineering')->after('unit')->nullable(); - // $table->string('project')->after('engineering')->nullable(); - $table->string('plant')->after('unit')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('line_lists', function (Blueprint $table) { - $table->dropColumn('engineering'); - $table->dropColumn('plant'); - }); - } -} diff --git a/database/migrations/2024_06_25_071906_support.php b/database/migrations/2024_06_25_071906_support.php deleted file mode 100644 index a276d16..0000000 --- a/database/migrations/2024_06_25_071906_support.php +++ /dev/null @@ -1,28 +0,0 @@ -id(); - $table->string('dwg_no'); - $table->string('support_code'); - $table->string('status'); - $table->string('rev'); - $table->string('materials'); - $table->string('erection_type'); - $table->string('style'); - $table->decimal('pipe_dia', 8, 2); - $table->string('welded_pad_measure'); - $table->decimal('thickness', 8, 2); - $table->string('ancillary'); - $table->string('zone'); - $table->string('line_number'); - $table->string('drawing_no'); - $table->decimal('elevation', 8, 2); - $table->integer('quantity'); - $table->decimal('unit_weight', 8, 2); - $table->integer('assembled_su_rt_quanti'); - $table->date('weld_or_assembled_date'); - $table->decimal('total_weight', 8, 2); - $table->text('remarks')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('supports'); - } -} diff --git a/database/migrations/2024_07_04_165507_add_column_in_test_packages.php b/database/migrations/2024_07_04_165507_add_column_in_test_packages.php deleted file mode 100644 index 5983255..0000000 --- a/database/migrations/2024_07_04_165507_add_column_in_test_packages.php +++ /dev/null @@ -1,35 +0,0 @@ -string('responsible_person')->nullable(); // Örnek olarak string türünde bir sütun ekler - }); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_packages', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2024_07_04_175916_add_column_test_pack_base_statues.php b/database/migrations/2024_07_04_175916_add_column_test_pack_base_statues.php deleted file mode 100644 index 7f802e0..0000000 --- a/database/migrations/2024_07_04_175916_add_column_test_pack_base_statues.php +++ /dev/null @@ -1,37 +0,0 @@ -string('pwht_backlog')->nullable(); // Örnek olarak string türünde bir sütun ekler - $table->string('pmi_backlog')->nullable(); // Örnek olarak string türünde bir sütun ekler - $table->string('ferrit_backlog')->nullable(); // Örnek olarak string türünde bir sütun ekler - }); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2024_07_10_155518_add_designer_to_supports_table.php b/database/migrations/2024_07_10_155518_add_designer_to_supports_table.php deleted file mode 100644 index 4345a10..0000000 --- a/database/migrations/2024_07_10_155518_add_designer_to_supports_table.php +++ /dev/null @@ -1,34 +0,0 @@ -string('designer')->nullable()->after('dwg_no'); // Replace 'existing_column' with the name of the column after which you want to add the new column - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('supports', function (Blueprint $table) { - //$table->dropColumn('designer'); - }); - } -} diff --git a/database/migrations/2024_07_10_160043_add_erection_materials_name_to_supports_table.php b/database/migrations/2024_07_10_160043_add_erection_materials_name_to_supports_table.php deleted file mode 100644 index 942a1ce..0000000 --- a/database/migrations/2024_07_10_160043_add_erection_materials_name_to_supports_table.php +++ /dev/null @@ -1,32 +0,0 @@ -string('erection_materials_name')->nullable()->after('dwg_no'); // Replace 'existing_column' with the name of the column after which you want to add the new column - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('supports', function (Blueprint $table) { - $table->dropColumn('erection_materials_name'); - }); - } -} diff --git a/database/migrations/2024_07_11_061555_add_standart_column_to_supports_table.php b/database/migrations/2024_07_11_061555_add_standart_column_to_supports_table.php deleted file mode 100644 index a28cbda..0000000 --- a/database/migrations/2024_07_11_061555_add_standart_column_to_supports_table.php +++ /dev/null @@ -1,32 +0,0 @@ -string('standart')->nullable()->after('drawing_no'); // Kolonun eklenmesi - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('supports', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2024_07_12_084304_add_download_to_all_tables.php b/database/migrations/2024_07_12_084304_add_download_to_all_tables.php deleted file mode 100644 index 615d7db..0000000 --- a/database/migrations/2024_07_12_084304_add_download_to_all_tables.php +++ /dev/null @@ -1,84 +0,0 @@ -getTable(), 'download')) { - $table->string('download')->after('id')->nullable(); - } - }); - } - - Schema::table('naks_consumables', function (Blueprint $table) { - if (!Schema::hasColumn($table->getTable(), 'naks_technology')) { - $table->string('naks_technology')->after('id')->nullable(); - } - if (!Schema::hasColumn($table->getTable(), 'inspection_test_report_download')) { - $table->string('inspection_test_report_download')->after('id')->nullable(); - } - }); - - - Schema::table('test_packages', function (Blueprint $table) { - if (!Schema::hasColumn($table->getTable(), 'punch_list_download')) { - $table->string('punch_list_download')->after('id')->nullable(); - } - if (!Schema::hasColumn($table->getTable(), 'test_pack_download')) { - $table->string('test_pack_download')->after('id')->nullable(); - } - }); - - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - if (!Schema::hasColumn($table->getTable(), 'punch_list_download')) { - $table->string('punch_list_download')->after('id')->nullable(); - } - if (!Schema::hasColumn($table->getTable(), 'test_pack_download')) { - $table->string('test_pack_download')->after('id')->nullable(); - } - }); - - Schema::table('punch_lists', function (Blueprint $table) { - if (!Schema::hasColumn($table->getTable(), 'punch_list_download')) { - $table->string('punch_list_download')->after('id')->nullable(); - } - if (!Schema::hasColumn($table->getTable(), 'test_pack_download')) { - $table->string('test_pack_download')->after('id')->nullable(); - } - - }); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2024_09_09_105013_update_status_default_in_punch_lists_table.php b/database/migrations/2024_09_09_105013_update_status_default_in_punch_lists_table.php deleted file mode 100644 index 4612b77..0000000 --- a/database/migrations/2024_09_09_105013_update_status_default_in_punch_lists_table.php +++ /dev/null @@ -1,36 +0,0 @@ -string('status')->default('Open')->change(); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('punch_lists', function (Blueprint $table) { - // - $table->string('status')->default(null)->change(); - - }); - } -} diff --git a/database/migrations/2024_09_14_072627_add_project_column_to_nde_matrices_table.php b/database/migrations/2024_09_14_072627_add_project_column_to_nde_matrices_table.php deleted file mode 100644 index 6b72668..0000000 --- a/database/migrations/2024_09_14_072627_add_project_column_to_nde_matrices_table.php +++ /dev/null @@ -1,32 +0,0 @@ -string('project')->after('id')->nullable(); // project sütununu en başa eklemek için id'den sonra ekliyoruz - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('nde_matrices', function (Blueprint $table) { - $table->dropColumn('project'); - }); - } -} diff --git a/database/migrations/2024_10_08_160355_create_paint_systems_table.php b/database/migrations/2024_10_08_160355_create_paint_systems_table.php deleted file mode 100644 index d81e383..0000000 --- a/database/migrations/2024_10_08_160355_create_paint_systems_table.php +++ /dev/null @@ -1,58 +0,0 @@ -id(); - $table->string('paint_cycle'); - $table->string('surface_preparation'); - $table->string('surface_roughness'); - $table->string('revision'); - - // First Layer - $table->string('primer_coat_name_1'); - $table->string('brand_name_1'); - $table->float('thickness_1'); - $table->float('consumption_paint_kg_1'); - - // Second Layer - $table->string('primer_coat_name_2')->nullable(); - $table->string('brand_name_2')->nullable(); - $table->float('thickness_2')->nullable(); - $table->float('consumption_paint_kg_2')->nullable(); - - // Third Layer - $table->string('primer_coat_name_3')->nullable(); - $table->string('brand_name_3')->nullable(); - $table->float('thickness_3')->nullable(); - $table->float('consumption_paint_kg_3')->nullable(); - - // Totals - $table->float('total_kg')->nullable(); - $table->float('total_microns')->nullable(); - - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('paint_systems'); - } -} diff --git a/database/migrations/2024_10_08_161302_create_color_systems_table.php b/database/migrations/2024_10_08_161302_create_color_systems_table.php deleted file mode 100644 index 4487ae8..0000000 --- a/database/migrations/2024_10_08_161302_create_color_systems_table.php +++ /dev/null @@ -1,39 +0,0 @@ -id(); - $table->string('unit'); - $table->string('fluid_code'); - $table->string('fluid_code_description'); - $table->float('working_temperature'); - $table->float('design_temperature'); - $table->string('ral_1')->nullable(); - $table->string('ral_2')->nullable(); - $table->string('ral_3')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('color_systems'); - } -} diff --git a/database/migrations/2024_10_11_141723_add_index_to_pain_follow_ups_table.php b/database/migrations/2024_10_11_141723_add_index_to_pain_follow_ups_table.php deleted file mode 100644 index bcafe65..0000000 --- a/database/migrations/2024_10_11_141723_add_index_to_pain_follow_ups_table.php +++ /dev/null @@ -1,39 +0,0 @@ -index(['fluid_code', 'spool_no_joint_no', 'line'], 'paint_follow_ups_composite_index'); - $table->index('line', 'paint_follow_ups_line_index'); - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('paint_follow_ups', function (Blueprint $table) { - - $table->dropIndex('paint_follow_ups_composite_index'); - $table->dropIndex('paint_follow_ups_line_index'); - - - - }); - } -} diff --git a/database/migrations/2024_10_11_142530_add_index_to_paint_matrices_table.php b/database/migrations/2024_10_11_142530_add_index_to_paint_matrices_table.php deleted file mode 100644 index 9296606..0000000 --- a/database/migrations/2024_10_11_142530_add_index_to_paint_matrices_table.php +++ /dev/null @@ -1,32 +0,0 @@ -index(['line', 'fluid_code'], 'paint_matrices_composite_index'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('paint_matrices', function (Blueprint $table) { - $table->dropIndex('paint_matrices_composite_index'); - }); - } -} diff --git a/database/migrations/2024_10_11_143032_add_index_to_weld_logs_table.php b/database/migrations/2024_10_11_143032_add_index_to_weld_logs_table.php deleted file mode 100644 index 1eb4bde..0000000 --- a/database/migrations/2024_10_11_143032_add_index_to_weld_logs_table.php +++ /dev/null @@ -1,32 +0,0 @@ -index(['line_number', 'design_area'], 'weld_logs_line_number_design_area_index'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('weld_logs', function (Blueprint $table) { - $table->dropIndex('weld_logs_line_number_design_area_index'); - }); - } -} diff --git a/database/migrations/2024_10_11_144651_add_index_to_test_packages_table.php b/database/migrations/2024_10_11_144651_add_index_to_test_packages_table.php deleted file mode 100644 index f1d49a9..0000000 --- a/database/migrations/2024_10_11_144651_add_index_to_test_packages_table.php +++ /dev/null @@ -1,38 +0,0 @@ -index('test_package_number', 'test_packages_test_package_number_index'); - }); - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - $table->index(['test_package_no', 'drawing_no'], 'test_pack_base_statuses_composite_index'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_packages', function (Blueprint $table) { - $table->dropIndex('test_packages_test_package_number_index'); - }); - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - $table->dropIndex('test_pack_base_statuses_composite_index'); - }); - } -} diff --git a/database/migrations/2024_10_11_150034_add_index_to_mtos_table.php b/database/migrations/2024_10_11_150034_add_index_to_mtos_table.php deleted file mode 100644 index e3c6a0b..0000000 --- a/database/migrations/2024_10_11_150034_add_index_to_mtos_table.php +++ /dev/null @@ -1,33 +0,0 @@ -index(['line', 'component_code_id'], 'mtos_line_component_code_id_index'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('m_t_o_s', function (Blueprint $table) { - $table->dropIndex('mtos_line_component_code_id_index'); - }); - } - -} diff --git a/database/migrations/2024_10_19_110745_add_test_type_to_test_pack_base_statuses_table.php b/database/migrations/2024_10_19_110745_add_test_type_to_test_pack_base_statuses_table.php deleted file mode 100644 index 9999ebb..0000000 --- a/database/migrations/2024_10_19_110745_add_test_type_to_test_pack_base_statuses_table.php +++ /dev/null @@ -1,34 +0,0 @@ -string('test_type')->nullable()->before('test_medium'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - // test_type sütununu kaldır - $table->dropColumn('test_type'); - }); - } -} diff --git a/database/migrations/2024_10_19_112547_add_support_fields_to_test_pack_base_statuses_table.php b/database/migrations/2024_10_19_112547_add_support_fields_to_test_pack_base_statuses_table.php deleted file mode 100644 index e4022d4..0000000 --- a/database/migrations/2024_10_19_112547_add_support_fields_to_test_pack_base_statuses_table.php +++ /dev/null @@ -1,36 +0,0 @@ -decimal('support_remaining', 8, 2)->nullable(); - $table->decimal('support_progress', 8, 2)->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - // support_remaining ve support_progress sütunlarını kaldır - $table->dropColumn(['support_remaining', 'support_progress']); - }); - } -} diff --git a/database/migrations/2024_10_19_114529_add_repair_fields_to_test_pack_base_statuses_table.php b/database/migrations/2024_10_19_114529_add_repair_fields_to_test_pack_base_statuses_table.php deleted file mode 100644 index e592807..0000000 --- a/database/migrations/2024_10_19_114529_add_repair_fields_to_test_pack_base_statuses_table.php +++ /dev/null @@ -1,35 +0,0 @@ -double('repair_completed')->nullable()->after('repair_qty'); - $table->double('repair_remaining')->nullable()->after('repair_completed'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - // repair_completed ve repair_remaining sütunlarını kaldır - $table->dropColumn(['repair_completed', 'repair_remaining']); - }); - } -} diff --git a/database/migrations/2024_10_19_121015_add_welding_progress_to_test_packages_table.php b/database/migrations/2024_10_19_121015_add_welding_progress_to_test_packages_table.php deleted file mode 100644 index 2899dde..0000000 --- a/database/migrations/2024_10_19_121015_add_welding_progress_to_test_packages_table.php +++ /dev/null @@ -1,34 +0,0 @@ -double('welding_progress')->nullable()->after('total_complated_wdi'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_packages', function (Blueprint $table) { - // welding_progress sütununu kaldır - $table->dropColumn('welding_progress'); - }); - } -} diff --git a/database/migrations/2024_10_19_121902_add_isolation_and_tracing_to_test_packages_table.php b/database/migrations/2024_10_19_121902_add_isolation_and_tracing_to_test_packages_table.php deleted file mode 100644 index 33e45c1..0000000 --- a/database/migrations/2024_10_19_121902_add_isolation_and_tracing_to_test_packages_table.php +++ /dev/null @@ -1,35 +0,0 @@ -string('isolation')->nullable()->after('test_package_number'); - $table->string('tracing')->nullable()->after('isolation'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_packages', function (Blueprint $table) { - // isolation ve tracing sütunlarını kaldır - $table->dropColumn(['isolation', 'tracing']); - }); - } -} diff --git a/database/migrations/2024_10_20_000000_add_brend_passport_columns_to_paint_follow_ups_table.php b/database/migrations/2024_10_20_000000_add_brend_passport_columns_to_paint_follow_ups_table.php deleted file mode 100644 index dc68336..0000000 --- a/database/migrations/2024_10_20_000000_add_brend_passport_columns_to_paint_follow_ups_table.php +++ /dev/null @@ -1,36 +0,0 @@ -string('brend_name', 100)->nullable()->default(null)->after('remarks'); - $table->string('passport_no', 100)->nullable()->default(null)->after('brend_name'); - $table->date('passport_date')->nullable()->default(null)->after('passport_no'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('paint_follow_ups', function (Blueprint $table) { - $table->dropColumn('brend_name'); - $table->dropColumn('passport_no'); - $table->dropColumn('passport_date'); - }); - } -} \ No newline at end of file diff --git a/database/migrations/2024_10_22_093826_add_backlog_columns_to_test_pack_base_statuses_table.php b/database/migrations/2024_10_22_093826_add_backlog_columns_to_test_pack_base_statuses_table.php deleted file mode 100644 index 487ba25..0000000 --- a/database/migrations/2024_10_22_093826_add_backlog_columns_to_test_pack_base_statuses_table.php +++ /dev/null @@ -1,50 +0,0 @@ -integer('rt_backlog')->nullable(); - $table->integer('ut_backlog')->nullable(); - $table->integer('mt_backlog')->nullable(); - // $table->integer('pmi_backlog')->nullable(); - $table->integer('vt_backlog')->nullable(); - $table->integer('pt_backlog')->nullable(); - // $table->integer('ferrite_backlog')->nullable(); - // $table->integer('pwht_backlog')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - $table->dropColumn([ - 'rt_backlog', - 'ut_backlog', - 'mt_backlog', - // 'pmi_backlog', - 'vt_backlog', - 'pt_backlog', - // 'ferrite_backlog', - // 'pwht_backlog', - ]); - }); - }); - } -} diff --git a/database/migrations/2024_10_23_082049_add_backlog_columns_to_test_packages_table.php b/database/migrations/2024_10_23_082049_add_backlog_columns_to_test_packages_table.php deleted file mode 100644 index c7964c5..0000000 --- a/database/migrations/2024_10_23_082049_add_backlog_columns_to_test_packages_table.php +++ /dev/null @@ -1,48 +0,0 @@ -integer('vt_backlog')->nullable(); - $table->integer('rt_backlog')->nullable(); - $table->integer('ut_backlog')->nullable(); - $table->integer('mt_backlog')->nullable(); - $table->integer('pmi_backlog')->nullable(); - $table->integer('pt_backlog')->nullable(); - $table->integer('ferrit_backlog')->nullable(); - $table->integer('pwht_backlog')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_packages', function (Blueprint $table) { - $table->dropColumn([ - 'vt_backlog', - 'rt_backlog', - 'ut_backlog', - 'mt_backlog', - 'pmi_backlog', - 'pt_backlog', - 'ferrit_backlog', - 'pwht_backlog', - ]); - }); - } -} diff --git a/database/migrations/2024_10_24_073425_add_repair_columns_to_test_packages_table.php b/database/migrations/2024_10_24_073425_add_repair_columns_to_test_packages_table.php deleted file mode 100644 index 6205434..0000000 --- a/database/migrations/2024_10_24_073425_add_repair_columns_to_test_packages_table.php +++ /dev/null @@ -1,34 +0,0 @@ -double('repair_qty')->nullable()->after('repair_status_total'); - $table->double('repair_completed')->nullable()->after('repair_qty'); - $table->double('repair_remaining')->nullable()->after('repair_completed'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_packages', function (Blueprint $table) { - $table->dropColumn(['repair_qty', 'repair_completed', 'repair_remaining']); - }); - } -} diff --git a/database/migrations/2024_10_24_115823_add_support_columns_to_test_packages_table.php b/database/migrations/2024_10_24_115823_add_support_columns_to_test_packages_table.php deleted file mode 100644 index 722d9dc..0000000 --- a/database/migrations/2024_10_24_115823_add_support_columns_to_test_packages_table.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('support_progress')->nullable(); - $table->integer('support_remaining')->nullable(); - $table->integer('welded_support_quantity')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_packages', function (Blueprint $table) { - $table->dropColumn('support_progress'); - $table->dropColumn('support_remaining'); - $table->dropColumn('welded_support_quantity'); - }); - } -} diff --git a/database/migrations/2024_10_29_164713_add_punch_status_to_test_packages_and_test_pack_base_statuses.php b/database/migrations/2024_10_29_164713_add_punch_status_to_test_packages_and_test_pack_base_statuses.php deleted file mode 100644 index b23f147..0000000 --- a/database/migrations/2024_10_29_164713_add_punch_status_to_test_packages_and_test_pack_base_statuses.php +++ /dev/null @@ -1,35 +0,0 @@ -string('punch_status')->nullable()->after('punch_list'); - }); - - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - $table->string('punch_status')->nullable()->after('punch_c_quantity'); - }); - } - - public function down() - { - Schema::table('test_packages', function (Blueprint $table) { - $table->dropColumn('punch_status'); - }); - - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - $table->dropColumn('punch_status'); - }); - } -} diff --git a/database/migrations/2024_10_30_162314_make_weld_or_assembled_date_nullable_in_supports_table.php b/database/migrations/2024_10_30_162314_make_weld_or_assembled_date_nullable_in_supports_table.php deleted file mode 100644 index 4c02389..0000000 --- a/database/migrations/2024_10_30_162314_make_weld_or_assembled_date_nullable_in_supports_table.php +++ /dev/null @@ -1,32 +0,0 @@ -date('weld_or_assembled_date')->nullable()->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('supports', function (Blueprint $table) { - $table->date('weld_or_assembled_date')->nullable(false)->change(); - }); - } -} diff --git a/database/migrations/2024_11_21_101145_add_enabled_to_types_table.php b/database/migrations/2024_11_21_101145_add_enabled_to_types_table.php deleted file mode 100644 index 0532f29..0000000 --- a/database/migrations/2024_11_21_101145_add_enabled_to_types_table.php +++ /dev/null @@ -1,32 +0,0 @@ -boolean('enabled')->default(true); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('types', function (Blueprint $table) { - $table->dropColumn('enabled'); - }); - } -} diff --git a/database/migrations/2024_11_27_104745_add_spool_number2_to_weld_logs_table.php b/database/migrations/2024_11_27_104745_add_spool_number2_to_weld_logs_table.php deleted file mode 100644 index a16819e..0000000 --- a/database/migrations/2024_11_27_104745_add_spool_number2_to_weld_logs_table.php +++ /dev/null @@ -1,61 +0,0 @@ -string('spool_number2', 10)->nullable()->after('spool_number'); - }); - } - - if (!Schema::hasColumn('deleted_joints', 'spool_number2')) { - Schema::table('deleted_joints', function (Blueprint $table) { - $table->string('spool_number2', 10)->nullable()->after('spool_number'); - }); - } - - if (!Schema::hasColumn('repair_logs', 'spool_number2')) { - Schema::table('repair_logs', function (Blueprint $table) { - $table->string('spool_number2', 10)->nullable()->after('spool_number'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasColumn('weld_logs', 'spool_number2')) { - Schema::table('weld_logs', function (Blueprint $table) { - $table->dropColumn('spool_number2'); - }); - } - - if (Schema::hasColumn('deleted_joints', 'spool_number2')) { - Schema::table('deleted_joints', function (Blueprint $table) { - $table->dropColumn('spool_number2'); - }); - } - - if (Schema::hasColumn('repair_logs', 'spool_number2')) { - Schema::table('repair_logs', function (Blueprint $table) { - $table->dropColumn('spool_number2'); - }); - } - } -} - -?> \ No newline at end of file diff --git a/database/migrations/2024_12_03_090534_update_weld_log_fields_and_fix_decimal_values.php b/database/migrations/2024_12_03_090534_update_weld_log_fields_and_fix_decimal_values.php deleted file mode 100644 index c3804bf..0000000 --- a/database/migrations/2024_12_03_090534_update_weld_log_fields_and_fix_decimal_values.php +++ /dev/null @@ -1,47 +0,0 @@ -decimal('nps_1', 8, 2)->change(); - $table->decimal('nps_2', 8, 2)->change(); - $table->decimal('outside_diameter_1', 8, 2)->change(); - $table->decimal('outside_diameter_2', 8, 2)->change(); - $table->decimal('wall_thickness_1', 8, 2)->change(); - $table->decimal('wall_thickness_2', 8, 2)->change(); - }); - } - - public function down() - { - // Geri alma işlemi için sütunları string olarak eski haline getiriyoruz - Schema::table('weld_logs', function (Blueprint $table) { - $table->string('nps_1')->change(); - $table->string('nps_2')->change(); - $table->string('outside_diameter_1')->change(); - $table->string('outside_diameter_2')->change(); - $table->string('wall_thickness_1')->change(); - $table->string('wall_thickness_2')->change(); - }); - - // Verileri eski haline döndüremeyiz, bu nedenle burada bir işlem yapmıyoruz - } -} diff --git a/database/migrations/2024_12_03_122843_modify_quantity_column_in_supports_table.php b/database/migrations/2024_12_03_122843_modify_quantity_column_in_supports_table.php deleted file mode 100644 index b65272d..0000000 --- a/database/migrations/2024_12_03_122843_modify_quantity_column_in_supports_table.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('quantity')->nullable()->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('supports', function (Blueprint $table) { - // quantity sütununun nullable özelliğini geri alıyoruz - $table->decimal('quantity')->nullable(false)->change(); - }); - } -} diff --git a/database/migrations/2024_12_18_090105_add_material_type_grade2_to_w_p_s_table.php b/database/migrations/2024_12_18_090105_add_material_type_grade2_to_w_p_s_table.php deleted file mode 100644 index fe68ed0..0000000 --- a/database/migrations/2024_12_18_090105_add_material_type_grade2_to_w_p_s_table.php +++ /dev/null @@ -1,32 +0,0 @@ -string('material_type_grade2')->after('material_type_grade')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('w_p_s', function (Blueprint $table) { - $table->dropColumn('material_type_grade2'); - }); - } -} diff --git a/database/migrations/2024_12_22_000001_add_responsible_company_subcontractor_to_handovers.php b/database/migrations/2024_12_22_000001_add_responsible_company_subcontractor_to_handovers.php deleted file mode 100644 index 67e7d0a..0000000 --- a/database/migrations/2024_12_22_000001_add_responsible_company_subcontractor_to_handovers.php +++ /dev/null @@ -1,44 +0,0 @@ -string('responsible_company')->nullable()->after('responsible'); - } - if (!Schema::hasColumn('handovers', 'subcontractor')) { - $table->string('subcontractor')->nullable()->after('responsible_company'); - } - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('handovers', function (Blueprint $table) { - $columnsToCheck = ['responsible_company', 'subcontractor']; - $existingColumns = []; - - foreach ($columnsToCheck as $column) { - if (Schema::hasColumn('handovers', $column)) { - $existingColumns[] = $column; - } - } - - if (!empty($existingColumns)) { - $table->dropColumn($existingColumns); - } - }); - } -}; \ No newline at end of file diff --git a/database/migrations/2025_01_07_000001_create_sync_states_table.php b/database/migrations/2025_01_07_000001_create_sync_states_table.php deleted file mode 100644 index 240bb3e..0000000 --- a/database/migrations/2025_01_07_000001_create_sync_states_table.php +++ /dev/null @@ -1,43 +0,0 @@ -id(); - $table->string('table_name'); // e.g., naks_certificates - $table->string('source_url'); // e.g., https://101.qms.stellarcons.com - $table->unsignedBigInteger('last_synced_id')->default(0); // Last synced record ID - $table->timestamp('last_synced_at')->nullable(); // Last sync timestamp - $table->unsignedInteger('synced_count')->default(0); // Total synced records count - $table->unsignedInteger('failed_count')->default(0); // Failed sync attempts - $table->json('metadata')->nullable(); // Additional sync info - $table->timestamps(); - - // Unique constraint for table + source combination - $table->unique(['table_name', 'source_url'], 'sync_states_unique'); - - // Index for faster lookups - $table->index('table_name'); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('sync_states'); - } -}; diff --git a/database/migrations/2025_01_07_151851_add_columns_to_ncr_logs_table.php b/database/migrations/2025_01_07_151851_add_columns_to_ncr_logs_table.php deleted file mode 100644 index 40acb66..0000000 --- a/database/migrations/2025_01_07_151851_add_columns_to_ncr_logs_table.php +++ /dev/null @@ -1,38 +0,0 @@ -string('project')->nullable()->after('id'); - $table->text('evidence_or_ref_documents')->nullable()->after('project'); - $table->string('location')->nullable()->after('evidence_or_ref_documents'); - $table->string('subcontractor')->nullable()->after('location'); - $table->string('discipline')->nullable()->before('department'); - $table->string('approved_percent')->nullable()->after('issue_date'); - $table->date('approved_date')->nullable()->after('approved_percent'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('n_c_r_logs', function (Blueprint $table) { - $table->dropColumn(['project', 'evidence_or_ref_documents', 'location', 'subcontractor', 'discipline', 'approved_percent', 'approved_date']); - }); - } -} diff --git a/database/migrations/2025_01_14_191450_add_columns_to_r_f_i_s_table.php b/database/migrations/2025_01_14_191450_add_columns_to_r_f_i_s_table.php deleted file mode 100644 index 789b519..0000000 --- a/database/migrations/2025_01_14_191450_add_columns_to_r_f_i_s_table.php +++ /dev/null @@ -1,35 +0,0 @@ -string('sub')->nullable(); - $table->string('ste')->nullable(); - $table->string('cas')->nullable(); - $table->string('mf')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('r_f_i_s', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2025_01_15_120000_add_joint_and_ndt_release_fields_to_weld_logs_table.php b/database/migrations/2025_01_15_120000_add_joint_and_ndt_release_fields_to_weld_logs_table.php deleted file mode 100644 index aa0d908..0000000 --- a/database/migrations/2025_01_15_120000_add_joint_and_ndt_release_fields_to_weld_logs_table.php +++ /dev/null @@ -1,144 +0,0 @@ -addColumnIfNotExists($tableName, 'joint_release_rfi_no', 'string', 100, 'ndt_release_date'); - $this->addColumnIfNotExists($tableName, 'joint_release_rfi_date', 'date', null, 'joint_release_rfi_no'); - $this->addColumnIfNotExists($tableName, 'joint_release_document_no', 'string', 100, 'joint_release_rfi_date'); - $this->addColumnIfNotExists($tableName, 'joint_release_document_date', 'date', null, 'joint_release_document_no'); - - // RT Release Fields (2 fields) - $this->addColumnIfNotExists($tableName, 'rt_release_rfi_no', 'string', 100, 'rt_result'); - $this->addColumnIfNotExists($tableName, 'rt_release_rfi_date', 'date', null, 'rt_release_rfi_no'); - - // UT Release Fields (2 fields) - $this->addColumnIfNotExists($tableName, 'ut_release_rfi_no', 'string', 100, 'ut_result'); - $this->addColumnIfNotExists($tableName, 'ut_release_rfi_date', 'date', null, 'ut_release_rfi_no'); - - // PT Release Fields (2 fields) - $this->addColumnIfNotExists($tableName, 'pt_release_rfi_no', 'string', 100, 'pt_result'); - $this->addColumnIfNotExists($tableName, 'pt_release_rfi_date', 'date', null, 'pt_release_rfi_no'); - - // MT Release Fields (2 fields) - $this->addColumnIfNotExists($tableName, 'mt_release_rfi_no', 'string', 100, 'mt_result'); - $this->addColumnIfNotExists($tableName, 'mt_release_rfi_date', 'date', null, 'mt_release_rfi_no'); - - // PMI Release Fields (2 fields) - $this->addColumnIfNotExists($tableName, 'pmi_release_rfi_no', 'string', 100, 'pmi_result'); - $this->addColumnIfNotExists($tableName, 'pmi_release_rfi_date', 'date', null, 'pmi_release_rfi_no'); - - // VT Release Fields (2 fields) - $this->addColumnIfNotExists($tableName, 'vt_release_rfi_no', 'string', 100, 'vt_result'); - $this->addColumnIfNotExists($tableName, 'vt_release_rfi_date', 'date', null, 'vt_release_rfi_no'); - - // PWHT Release Fields (2 fields) - $this->addColumnIfNotExists($tableName, 'pwht_release_rfi_no', 'string', 100, 'test_laboratory_pwht'); - $this->addColumnIfNotExists($tableName, 'pwht_release_rfi_date', 'date', null, 'pwht_release_rfi_no'); - - // HT Release Fields (2 fields) - $this->addColumnIfNotExists($tableName, 'ht_release_rfi_no', 'string', 100, 'ht_result'); - $this->addColumnIfNotExists($tableName, 'ht_release_rfi_date', 'date', null, 'ht_release_rfi_no'); - - // Ferrite Release Fields (2 fields) - $this->addColumnIfNotExists($tableName, 'ferrite_release_rfi_no', 'string', 100, 'ferrite_result'); - $this->addColumnIfNotExists($tableName, 'ferrite_release_rfi_date', 'date', null, 'ferrite_release_rfi_no'); - } - } - - /** - * Helper method to add column if it doesn't exist - */ - private function addColumnIfNotExists($tableName, $columnName, $type, $length = null, $afterColumn = null) - { - if (Schema::hasColumn($tableName, $columnName)) { - return; // Column already exists, skip - } - - Schema::table($tableName, function (Blueprint $table) use ($columnName, $type, $length, $afterColumn) { - if ($type === 'string') { - $column = $table->string($columnName, $length)->nullable(); - } elseif ($type === 'date') { - $column = $table->date($columnName)->nullable(); - } else { - return; - } - - // Add after specific column if provided and column exists - if ($afterColumn !== null && Schema::hasColumn($table->getTable(), $afterColumn)) { - $column->after($afterColumn); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - $sameTables = ['weld_logs', 'repair_logs', 'deleted_joints']; - - $columns = [ - // Joint Release - 'joint_release_rfi_no', - 'joint_release_rfi_date', - 'joint_release_document_no', - 'joint_release_document_date', - // RT Release - 'rt_release_rfi_no', - 'rt_release_rfi_date', - // UT Release - 'ut_release_rfi_no', - 'ut_release_rfi_date', - // PT Release - 'pt_release_rfi_no', - 'pt_release_rfi_date', - // MT Release - 'mt_release_rfi_no', - 'mt_release_rfi_date', - // PMI Release - 'pmi_release_rfi_no', - 'pmi_release_rfi_date', - // VT Release - 'vt_release_rfi_no', - 'vt_release_rfi_date', - // PWHT Release - 'pwht_release_rfi_no', - 'pwht_release_rfi_date', - // HT Release - 'ht_release_rfi_no', - 'ht_release_rfi_date', - // Ferrite Release - 'ferrite_release_rfi_no', - 'ferrite_release_rfi_date', - ]; - - foreach($sameTables as $tableName) { - if (Schema::hasTable($tableName)) { - Schema::table($tableName, function (Blueprint $table) use ($columns) { - $table->dropColumn($columns); - }); - } - } - } -} diff --git a/database/migrations/2025_01_15_125437_update_columns_to_text_in_n_c_r_logs_table.php b/database/migrations/2025_01_15_125437_update_columns_to_text_in_n_c_r_logs_table.php deleted file mode 100644 index 6cc9331..0000000 --- a/database/migrations/2025_01_15_125437_update_columns_to_text_in_n_c_r_logs_table.php +++ /dev/null @@ -1,42 +0,0 @@ -text('department')->nullable()->change(); - $table->text('description_ru')->nullable()->change(); - $table->text('description_eng')->nullable()->change(); - $table->text('corrective_action_ru')->nullable()->change(); - $table->text('corrective_action_eng')->nullable()->change(); - $table->text('root_cause_investigation')->nullable()->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('n_c_r_logs', function (Blueprint $table) { - $table->string('department', 100)->nullable()->change(); - $table->string('description_ru', 100)->nullable()->change(); - $table->string('description_eng', 100)->nullable()->change(); - $table->string('corrective_action_ru', 100)->nullable()->change(); - $table->string('corrective_action_eng', 100)->nullable()->change(); - $table->string('root_cause_investigation', 100)->nullable()->change(); - }); - } -} diff --git a/database/migrations/2025_01_17_122149_update_n_c_r_logs_defaults.php b/database/migrations/2025_01_17_122149_update_n_c_r_logs_defaults.php deleted file mode 100644 index 1b2cb14..0000000 --- a/database/migrations/2025_01_17_122149_update_n_c_r_logs_defaults.php +++ /dev/null @@ -1,29 +0,0 @@ -string('type')->default('Internal')->change(); - $table->string('current_status')->default('Open')->change(); - }); - } - - public function down(): void - { - Schema::table('n_c_r_logs', function (Blueprint $table) { - $table->string('type')->default(null)->change(); - $table->string('current_status')->default(null)->change(); - }); - } -} diff --git a/database/migrations/2025_02_05_111311_add_element_no_to_supports_table.php b/database/migrations/2025_02_05_111311_add_element_no_to_supports_table.php deleted file mode 100644 index 99cdf03..0000000 --- a/database/migrations/2025_02_05_111311_add_element_no_to_supports_table.php +++ /dev/null @@ -1,27 +0,0 @@ -string('element_no')->after('ancillary')->nullable(); - }); - } - - public function down() - { - Schema::table('supports', function (Blueprint $table) { - $table->dropColumn('element_no'); - }); - } -} diff --git a/database/migrations/2025_02_06_092819_add_document_name_in_document_revisions.php b/database/migrations/2025_02_06_092819_add_document_name_in_document_revisions.php deleted file mode 100644 index 3f8198a..0000000 --- a/database/migrations/2025_02_06_092819_add_document_name_in_document_revisions.php +++ /dev/null @@ -1,27 +0,0 @@ -string('document_name')->before('zone'); // 'zone' sütununun öncesine eklemek için - }); - } - - public function down() - { - Schema::table('document_revisions', function (Blueprint $table) { - $table->dropColumn('document_name'); - }); - } -} diff --git a/database/migrations/2025_02_13_100947_n_d_t_logs_unique_colums.php b/database/migrations/2025_02_13_100947_n_d_t_logs_unique_colums.php deleted file mode 100644 index 9fc8cca..0000000 --- a/database/migrations/2025_02_13_100947_n_d_t_logs_unique_colums.php +++ /dev/null @@ -1,86 +0,0 @@ - t2.id AND - t1.iso_number = t2.iso_number AND - t1.no_of_the_joint_as_per_as_built_survey = t2.no_of_the_joint_as_per_as_built_survey AND - t1.welding_date = t2.welding_date - "); - */ - - // Mevcut index'i kontrol et ve sil - $indexExists = DB::select(" - SELECT 1 - FROM INFORMATION_SCHEMA.STATISTICS - WHERE table_schema = DATABASE() - AND table_name = '{$tableName}' - AND index_name = '{$tableName}_unique_joint' - "); - - if (!empty($indexExists)) { - DB::statement("DROP INDEX `{$tableName}_unique_joint` ON `{$tableName}`"); - } - - // Yeni unique constraint ekle - Schema::table($tableName, function (Blueprint $table) use ($tableName) { - // Önce welding_date'in null olmamasını sağlayalım - $table->date('welding_date')->nullable(false)->change(); - - $table->unique([ - 'iso_number', - 'no_of_the_joint_as_per_as_built_survey', - 'welding_date' - ], "{$tableName}_unique_joint"); - }); - } - } - - public function down() - { - $tables = [ - 'hardness_tests', - 'radiographic_tests', - 'ultrasonic_tests', - 'magnetic_tests', - 'p_m_i_tests', - 'v_t_logs', - 'p_t_logs', - 'ferrits', - 'p_w_h_t_s', - ]; - - foreach ($tables as $tableName) { - Schema::table($tableName, function (Blueprint $table) use ($tableName) { - $table->dropUnique("{$tableName}_unique_joint"); - }); - } - } - -} diff --git a/database/migrations/2025_03_19_183151_add_certificate_file_and_akt_file_to_incoming_controls.php b/database/migrations/2025_03_19_183151_add_certificate_file_and_akt_file_to_incoming_controls.php deleted file mode 100644 index aea71f2..0000000 --- a/database/migrations/2025_03_19_183151_add_certificate_file_and_akt_file_to_incoming_controls.php +++ /dev/null @@ -1,25 +0,0 @@ -after('id', function (Blueprint $table) { - $table->string('certificate_file')->nullable(); - $table->string('akt_file')->nullable(); - }); - }); - } - - public function down(): void - { - Schema::table('incoming_controls', function (Blueprint $table) { - $table->dropColumn(['certificate_file', 'akt_file']); - }); - } -}; - -?> \ No newline at end of file diff --git a/database/migrations/2025_03_24_161008_add_excel_analysis_document_template.php b/database/migrations/2025_03_24_161008_add_excel_analysis_document_template.php deleted file mode 100644 index 2e97ffd..0000000 --- a/database/migrations/2025_03_24_161008_add_excel_analysis_document_template.php +++ /dev/null @@ -1,32 +0,0 @@ -json('excel_analysis')->nullable()->after('files'); - }); - } - - /** - * Reverse the migration. - * - * @return void - */ - public function down() - { - Schema::table('document_templates', function (Blueprint $table) { - $table->dropColumn('excel_analysis'); - }); - } -} diff --git a/database/migrations/2025_03_27_110254_add_cleaning_colums_incoming_control.php b/database/migrations/2025_03_27_110254_add_cleaning_colums_incoming_control.php deleted file mode 100644 index de98c70..0000000 --- a/database/migrations/2025_03_27_110254_add_cleaning_colums_incoming_control.php +++ /dev/null @@ -1,37 +0,0 @@ -string('cleaning_certificate_no')->nullable(); - $table->date('cleaning_certificate_date')->nullable(); - $table->integer('cleaning_certificate_page_quantity')->nullable(); - $table->string('cleaning_heat_number')->nullable(); - $table->string('cleaning_akt_status')->nullable(); - }); - } - - public function down() - { - Schema::table('incoming_controls', function (Blueprint $table) { - $table->dropColumn([ - 'cleaning_certificate_no', - 'cleaning_certificate_date', - 'cleaning_certificate_page_quantity', - 'cleaning_heat_number', - 'cleaning_akt_status' - ]); - }); - } -} diff --git a/database/migrations/2025_04_12_065201_create_column_comments_table.php b/database/migrations/2025_04_12_065201_create_column_comments_table.php deleted file mode 100644 index 41540e9..0000000 --- a/database/migrations/2025_04_12_065201_create_column_comments_table.php +++ /dev/null @@ -1,42 +0,0 @@ -id(); - $table->string('table_name')->comment('Table name that contains the column'); - $table->unsignedBigInteger('record_id')->comment('Record ID from the related table'); - $table->string('column_name')->comment('Column name being commented on'); - $table->text('comment')->comment('User comment on the column value'); - $table->string('column_value')->nullable()->comment('Value of the column at the time of comment'); - $table->unsignedBigInteger('user_id')->comment('User who created the comment'); - $table->string('ip_address')->nullable()->comment('IP address of the user'); - $table->timestamps(); - - // Index for better performance - $table->index(['table_name', 'record_id', 'column_name']); - $table->index('user_id'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('column_comments'); - } -} diff --git a/database/migrations/2025_04_28_091034_p_t_o_p_m_l.php b/database/migrations/2025_04_28_091034_p_t_o_p_m_l.php deleted file mode 100644 index 994ef9a..0000000 --- a/database/migrations/2025_04_28_091034_p_t_o_p_m_l.php +++ /dev/null @@ -1,47 +0,0 @@ -id(); - $table->string('project')->nullable(); - $table->string('line')->nullable(); - $table->string('revision')->nullable(); - $table->string('group')->nullable(); - $table->string('list')->nullable(); - $table->string('position')->nullable(); - $table->string('material_name_en')->nullable(); - $table->string('material_name_ru')->nullable(); - $table->string('dn')->nullable(); - $table->string('id_code')->nullable(); - $table->integer('quantity')->nullable(); - $table->string('thickness')->nullable(); - $table->string('material')->nullable(); - $table->string('standard')->nullable(); - $table->string('section')->nullable(); - $table->string('pn')->nullable(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('pto_pmls'); - } -} diff --git a/database/migrations/2025_04_29_154925_create_construction_paint_logs_table.php b/database/migrations/2025_04_29_154925_create_construction_paint_logs_table.php deleted file mode 100644 index 7aa9f1f..0000000 --- a/database/migrations/2025_04_29_154925_create_construction_paint_logs_table.php +++ /dev/null @@ -1,119 +0,0 @@ -id(); - - // Ana Bilgiler - $table->string('report_no')->nullable(); - $table->string('engineering')->nullable(); - $table->string('area')->nullable(); - $table->string('unit')->nullable(); - $table->string('test_package')->nullable(); - $table->string('line')->nullable(); - $table->string('iso_drawings')->nullable(); - $table->string('spool')->nullable(); - $table->string('spool_status')->nullable(); - - // Boya Alt Yüklenici Bilgileri - $table->string('paint_subcontructer')->nullable(); - $table->string('fluid_code')->nullable(); - $table->string('fluid_code_description')->nullable(); - $table->string('isolation_info')->nullable(); - $table->string('sheet')->nullable(); - $table->string('painting_system_type_1')->nullable(); - $table->string('rev')->nullable(); - $table->string('painting_system_type_2')->nullable(); - - // Boya Katman Bilgileri - $table->string('brend_name_1')->nullable(); - $table->string('ral_1')->nullable(); - $table->string('thickness_1')->nullable(); - $table->string('brend_name_2')->nullable(); - $table->string('ral_2')->nullable(); - $table->string('thickness_2')->nullable(); - $table->string('brend_name_3')->nullable(); - $table->string('ral_3')->nullable(); - $table->string('thickness_3')->nullable(); - - // Boru Ölçü Bilgileri - $table->float('dn_1')->nullable(); - $table->float('dn_2')->nullable(); - $table->float('dn_3')->nullable(); - $table->integer('line_pipe_mm_1')->nullable(); - $table->integer('line_pipe_mm_2')->nullable(); - $table->integer('cutting_mm')->nullable(); - $table->integer('total_line_mm')->nullable(); - - // Fitting Bilgileri - $table->integer('elbow_pcs')->nullable(); - $table->integer('elbow_45_pcs')->nullable(); - $table->float('elbow_m2')->nullable(); - $table->integer('tee_pcs')->nullable(); - $table->float('tee_m2')->nullable(); - $table->integer('reductions_pcs')->nullable(); - $table->float('reductions_m2')->nullable(); - $table->integer('vent_pcs')->nullable(); - $table->float('vent_m2')->nullable(); - $table->integer('cap_pcs')->nullable(); - $table->float('cap_m2')->nullable(); - $table->integer('flange_pcs')->nullable(); - $table->float('flange_m2')->nullable(); - - // Alan Hesaplamaları - $table->float('fittings_m2')->nullable(); - $table->float('pipe_m2')->nullable(); - $table->float('total_m2')->nullable(); - - // Katman Bilgileri - $table->float('first_layer')->nullable(); - $table->float('second_layer')->nullable(); - $table->float('third_layer')->nullable(); - $table->float('total_layer')->nullable(); - - // Rapor Bilgileri - $table->string('construction_report_no')->nullable(); - - // İşlem Tarihleri ve RFI Bilgileri - $table->date('blasting_date')->nullable(); - $table->date('blasting_finish_date')->nullable(); - $table->string('blasting_rfi_no')->nullable(); - $table->date('painting_date_1')->nullable(); - $table->date('painting_finish_date_1')->nullable(); - $table->date('rfi_date_1')->nullable(); - $table->string('rfi_no_1')->nullable(); - $table->date('painting_date_2')->nullable(); - $table->date('painting_finish_date_2')->nullable(); - $table->date('rfi_date_2')->nullable(); - $table->string('rfi_no_2')->nullable(); - $table->date('painting_date_3')->nullable(); - $table->date('painting_finish_date_3')->nullable(); - $table->date('rfi_date_3')->nullable(); - $table->string('rfi_no_3')->nullable(); - - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('construction_paint_logs'); - } -} diff --git a/database/migrations/2025_05_01_000000_add_is_manual_field_to_test_tables.php b/database/migrations/2025_05_01_000000_add_is_manual_field_to_test_tables.php deleted file mode 100644 index a5949e5..0000000 --- a/database/migrations/2025_05_01_000000_add_is_manual_field_to_test_tables.php +++ /dev/null @@ -1,40 +0,0 @@ -boolean('is_manual')->default(0)->comment('Flag to identify manually added records'); - }); - - Schema::table('test_packages', function (Blueprint $table) { - $table->boolean('is_manual')->default(0)->comment('Flag to identify manually added records'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - $table->dropColumn('is_manual'); - }); - - Schema::table('test_packages', function (Blueprint $table) { - $table->dropColumn('is_manual'); - }); - } -} \ No newline at end of file diff --git a/database/migrations/2025_05_02_092225_add_sign_order_job_description_on_work_permit_document.php b/database/migrations/2025_05_02_092225_add_sign_order_job_description_on_work_permit_document.php deleted file mode 100644 index 781a120..0000000 --- a/database/migrations/2025_05_02_092225_add_sign_order_job_description_on_work_permit_document.php +++ /dev/null @@ -1,33 +0,0 @@ -string('job_description')->nullable()->after('id'); - $table->integer('company_sign_order')->nullable()->after('job_description'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('work_permit_documents', function (Blueprint $table) { - $table->dropColumn(['job_description', 'company_sign_order']); - }); - } -} diff --git a/database/migrations/2025_05_07_092345_add_indexes_for_performance.php b/database/migrations/2025_05_07_092345_add_indexes_for_performance.php deleted file mode 100644 index fa266d4..0000000 --- a/database/migrations/2025_05_07_092345_add_indexes_for_performance.php +++ /dev/null @@ -1,53 +0,0 @@ -index('inspection_test_report', 'idx_inspection_test_report'); - }); - - Schema::table('naks_welders', function (Blueprint $table) { - $table->index('welder_id', 'idx_welder_id'); - }); - - Schema::table('line_lists', function (Blueprint $table) { - $table->index('line_no', 'idx_line_no'); - }); - - Schema::table('incoming_controls', function (Blueprint $table) { - $table->index(['description_ru', 'component_code'], 'idx_description_ru_code'); - $table->index(['description_en', 'component_code'], 'idx_description_en_code'); - }); - } - - public function down() - { - Schema::table('naks_consumables', function (Blueprint $table) { - $table->dropIndex('idx_inspection_test_report'); - }); - - Schema::table('naks_welders', function (Blueprint $table) { - $table->dropIndex('idx_welder_id'); - }); - - Schema::table('line_lists', function (Blueprint $table) { - $table->dropIndex('idx_line_no'); - }); - - Schema::table('incoming_controls', function (Blueprint $table) { - $table->dropIndex('idx_description_ru_code'); - $table->dropIndex('idx_description_en_code'); - }); - } -} diff --git a/database/migrations/2025_05_24_120628_add_line_list_leakage_test_pressure_columns.php b/database/migrations/2025_05_24_120628_add_line_list_leakage_test_pressure_columns.php deleted file mode 100644 index 80edbba..0000000 --- a/database/migrations/2025_05_24_120628_add_line_list_leakage_test_pressure_columns.php +++ /dev/null @@ -1,33 +0,0 @@ -decimal('test_pressure', 10, 2)->nullable()->before('remarks'); - $table->string('leakage')->nullable()->before('remarks'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('line_lists', function (Blueprint $table) { - $table->dropColumn(['test_pressure', 'leakage']); - }); - } -} diff --git a/database/migrations/2025_05_24_121818_add_test_packages_leakage_test_pressure.php b/database/migrations/2025_05_24_121818_add_test_packages_leakage_test_pressure.php deleted file mode 100644 index 64703e4..0000000 --- a/database/migrations/2025_05_24_121818_add_test_packages_leakage_test_pressure.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('leakage_test_pressure', 10, 2)->nullable()->before('golden_joints'); - $table->string('leakage')->nullable()->before('golden_joints'); - $table->date('leakage_test_date')->nullable()->before('golden_joints'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_packages', function (Blueprint $table) { - $table->dropColumn(['leakage_test_pressure', 'leakage', 'leakage_test_date']); - }); - } -} diff --git a/database/migrations/2025_05_24_122941_add_welder_test_w_p_q_test_type_column.php b/database/migrations/2025_05_24_122941_add_welder_test_w_p_q_test_type_column.php deleted file mode 100644 index 73072e1..0000000 --- a/database/migrations/2025_05_24_122941_add_welder_test_w_p_q_test_type_column.php +++ /dev/null @@ -1,32 +0,0 @@ -string('wpq_test_type')->nullable()->after('id'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('welder_tests', function (Blueprint $table) { - $table->dropColumn('wpq_test_type'); - }); - } -} diff --git a/database/migrations/2025_05_24_151826_add_material_product_standart_column.php b/database/migrations/2025_05_24_151826_add_material_product_standart_column.php deleted file mode 100644 index 0b91dec..0000000 --- a/database/migrations/2025_05_24_151826_add_material_product_standart_column.php +++ /dev/null @@ -1,32 +0,0 @@ -string('product_standart')->nullable()->after('id'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('materials', function (Blueprint $table) { - $table->dropColumn('product_standart'); - }); - } -} diff --git a/database/migrations/2025_05_24_152124_add_weld_log_product_standart_column.php b/database/migrations/2025_05_24_152124_add_weld_log_product_standart_column.php deleted file mode 100644 index 185cb9e..0000000 --- a/database/migrations/2025_05_24_152124_add_weld_log_product_standart_column.php +++ /dev/null @@ -1,57 +0,0 @@ -text('product_standart_1')->nullable()->after('material_no_1'); - } - if (!Schema::hasColumn($sameTable, 'product_standart_2')) { - $table->text('product_standart_2')->nullable()->after('material_no_2'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - $sameTables = ['weld_logs', 'deleted_joints', 'repair_logs']; - - foreach ($sameTables as $sameTable) { - Schema::table($sameTable, function (Blueprint $table) use ($sameTable) { - if (Schema::hasColumn($sameTable, 'product_standart_1')) { - $table->dropColumn('product_standart_1'); - } - if (Schema::hasColumn($sameTable, 'product_standart_2')) { - $table->dropColumn('product_standart_2'); - } - }); - - // Karakter setini geri al - DB::statement("ALTER TABLE {$sameTable} CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci"); - } - } -} diff --git a/database/migrations/2025_06_30_121107_add_controls_handovers.php b/database/migrations/2025_06_30_121107_add_controls_handovers.php deleted file mode 100644 index c47b644..0000000 --- a/database/migrations/2025_06_30_121107_add_controls_handovers.php +++ /dev/null @@ -1,78 +0,0 @@ -string("control{$i}_controller", 50)->nullable()->after($afterColumn); - } - if (!Schema::hasColumn('handovers', "control{$i}_date1")) { - $table->date("control{$i}_date1")->nullable()->after("control{$i}_controller"); - } - if (!Schema::hasColumn('handovers', "control{$i}_date2")) { - $table->date("control{$i}_date2")->nullable()->after("control{$i}_date1"); - } - if (!Schema::hasColumn('handovers', "control{$i}_date3")) { - $table->date("control{$i}_date3")->nullable()->after("control{$i}_date2"); - } - if (!Schema::hasColumn('handovers', "control{$i}_id_status")) { - $table->string("control{$i}_id_status", 50)->nullable()->after("control{$i}_date3"); - } - if (!Schema::hasColumn('handovers', "control{$i}_comments")) { - $table->string("control{$i}_comments", 100)->nullable()->after("control{$i}_id_status"); - } - if (!Schema::hasColumn('handovers', "control{$i}_responsible")) { - $table->string("control{$i}_responsible", 50)->nullable()->after("control{$i}_comments"); - } - $afterColumn = "control{$i}_responsible"; - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('handovers', function (Blueprint $table) { - for ($i = 1; $i <= 10; $i++) { - $columnsToCheck = [ - "control{$i}_controller", - "control{$i}_date1", - "control{$i}_date2", - "control{$i}_date3", - "control{$i}_id_status", - "control{$i}_responsible", - "control{$i}_comments" - ]; - - $existingColumns = []; - foreach ($columnsToCheck as $column) { - if (Schema::hasColumn('handovers', $column)) { - $existingColumns[] = $column; - } - } - - if (!empty($existingColumns)) { - $table->dropColumn($existingColumns); - } - } - }); - } -}; diff --git a/database/migrations/2025_07_03_163545_index_for_welding_jurnal.php b/database/migrations/2025_07_03_163545_index_for_welding_jurnal.php deleted file mode 100644 index 90d7cd9..0000000 --- a/database/migrations/2025_07_03_163545_index_for_welding_jurnal.php +++ /dev/null @@ -1,545 +0,0 @@ -index(['line_number', 'welding_date'], 'idx_weld_logs_line_welding'); - dump("✓ idx_weld_logs_line_welding index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_line_welding index zaten var - already exists"); - } - - // ISO ve joint no için composite index (duplicate kontrolü) - try { - $table->index(['iso_number', 'id'], 'idx_weld_logs_iso_joint'); - dump("✓ idx_weld_logs_iso_joint index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_iso_joint index zaten var - already exists"); - } - - // ISO number için ayrı index (sık kullanılan) - try { - $table->index('iso_number', 'idx_weld_logs_iso'); - dump("✓ idx_weld_logs_iso index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_iso index zaten var - already exists"); - } - - // Joint number için ayrı index - try { - $table->index('no_of_the_joint_as_per_as_built_survey', 'idx_weld_logs_joint'); - dump("✓ idx_weld_logs_joint index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_joint index zaten var - already exists"); - } - - // Welder bilgileri için indexler - try { - $table->index('welder_1', 'idx_weld_logs_welder1'); - dump("✓ idx_weld_logs_welder1 index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_welder1 index zaten var - already exists"); - } - try { - $table->index('welder_2', 'idx_weld_logs_welder2'); - dump("✓ idx_weld_logs_welder2 index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_welder2 index zaten var - already exists"); - } - - // Material certificate bilgileri için indexler - try { - $table->index('welding_materials_1_certificate_no', 'idx_weld_logs_cert1'); - dump("✓ idx_weld_logs_cert1 index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_cert1 index zaten var - already exists"); - } - try { - $table->index('welding_materials_2_certificate_no', 'idx_weld_logs_cert2'); - dump("✓ idx_weld_logs_cert2 index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_cert2 index zaten var - already exists"); - } - try { - $table->index('welding_materials_3_certificate_no', 'idx_weld_logs_cert3'); - dump("✓ idx_weld_logs_cert3 index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_cert3 index zaten var - already exists"); - } - - // Element codes için indexler - try { - $table->index('element_code_1', 'idx_weld_logs_element1'); - dump("✓ idx_weld_logs_element1 index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_element1 index zaten var - already exists"); - } - try { - $table->index('element_code_2', 'idx_weld_logs_element2'); - dump("✓ idx_weld_logs_element2 index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_element2 index zaten var - already exists"); - } - - // WPS number için index - try { - $table->index('wps_no', 'idx_weld_logs_wps'); - dump("✓ idx_weld_logs_wps index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_wps index zaten var - already exists"); - } - - // Test result'ları için indexler - try { - $table->index('vt_result', 'idx_weld_logs_vt_result'); - dump("✓ idx_weld_logs_vt_result index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_vt_result index zaten var - already exists"); - } - try { - $table->index('rt_result', 'idx_weld_logs_rt_result'); - dump("✓ idx_weld_logs_rt_result index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_rt_result index zaten var - already exists"); - } - try { - $table->index('ut_result', 'idx_weld_logs_ut_result'); - dump("✓ idx_weld_logs_ut_result index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_ut_result index zaten var - already exists"); - } - try { - $table->index('pt_result', 'idx_weld_logs_pt_result'); - dump("✓ idx_weld_logs_pt_result index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_pt_result index zaten var - already exists"); - } - try { - $table->index('mt_result', 'idx_weld_logs_mt_result'); - dump("✓ idx_weld_logs_mt_result index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_mt_result index zaten var - already exists"); - } - try { - $table->index('pmi_result', 'idx_weld_logs_pmi_result'); - dump("✓ idx_weld_logs_pmi_result index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_pmi_result index zaten var - already exists"); - } - - // Optimize edilmiş composite indexler - try { - $table->index(['line_number', 'iso_number'], 'idx_weld_logs_line_iso'); - dump("✓ idx_weld_logs_line_iso index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_line_iso index zaten var - already exists"); - } - try { - $table->index(['welding_date', 'vt_result'], 'idx_weld_logs_date_vt'); - dump("✓ idx_weld_logs_date_vt index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_date_vt index zaten var - already exists"); - } - try { - $table->index(['wps_no', 'welder_1'], 'idx_weld_logs_wps_welder'); - dump("✓ idx_weld_logs_wps_welder index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_wps_welder index zaten var - already exists"); - } - }); - } catch (\Exception $e) { - // Tablo yoksa veya başka bir hata varsa sessizce geç - dump("❌ weld_logs tablosu için index oluşturulamadı: " . $e->getMessage()); - \Log::info('weld_logs tablosu için index oluşturulamadı: ' . $e->getMessage()); - } - - // =================================== - // LINE_LISTS TABLO İNDEKSLERİ - // =================================== - - try { - Schema::table('line_lists', function (Blueprint $table) { - try { - $table->index('line_no', 'idx_line_lists_line_no'); - dump("✓ idx_line_lists_line_no index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_line_lists_line_no index zaten var - already exists"); - } - try { - $table->index('plant', 'idx_line_lists_plant'); - dump("✓ idx_line_lists_plant index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_line_lists_plant index zaten var - already exists"); - } - try { - $table->index('fluid_group', 'idx_line_lists_fluid_group'); - dump("✓ idx_line_lists_fluid_group index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_line_lists_fluid_group index zaten var - already exists"); - } - try { - $table->index('category', 'idx_line_lists_category'); - dump("✓ idx_line_lists_category index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_line_lists_category index zaten var - already exists"); - } - }); - } catch (\Exception $e) { - dump("❌ line_lists tablosu için index oluşturulamadı: " . $e->getMessage()); - \Log::info('line_lists tablosu için index oluşturulamadı: ' . $e->getMessage()); - } - - // =================================== - // NAKS_WELDERS TABLO İNDEKSLERİ - // =================================== - - try { - Schema::table('naks_welders', function (Blueprint $table) { - try { - $table->index('welder_id', 'idx_naks_welders_id'); - dump("✓ idx_naks_welders_id index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_naks_welders_id index zaten var - already exists"); - } - }); - } catch (\Exception $e) { - dump("❌ naks_welders tablosu için index oluşturulamadı: " . $e->getMessage()); - \Log::info('naks_welders tablosu için index oluşturulamadı: ' . $e->getMessage()); - } - - // =================================== - // NAKS_CONSUMABLES TABLO İNDEKSLERİ - // =================================== - - try { - Schema::table('naks_consumables', function (Blueprint $table) { - try { - $table->index('inspection_test_report', 'idx_naks_consumables_report'); - dump("✓ idx_naks_consumables_report index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_naks_consumables_report index zaten var - already exists"); - } - }); - } catch (\Exception $e) { - dump("❌ naks_consumables tablosu için index oluşturulamadı: " . $e->getMessage()); - \Log::info('naks_consumables tablosu için index oluşturulamadı: ' . $e->getMessage()); - } - - // =================================== - // INCOMING_CONTROLS TABLO İNDEKSLERİ - // =================================== - - try { - Schema::table('incoming_controls', function (Blueprint $table) { - try { - $table->index('component_code', 'idx_incoming_controls_code'); - dump("✓ idx_incoming_controls_code index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_incoming_controls_code index zaten var - already exists"); - } - }); - } catch (\Exception $e) { - dump("❌ incoming_controls tablosu için index oluşturulamadı: " . $e->getMessage()); - \Log::info('incoming_controls tablosu için index oluşturulamadı: ' . $e->getMessage()); - } - - // =================================== - // PROSEDURE_QUALIFICATION_RECORDS TABLO İNDEKSLERİ - // =================================== - - try { - Schema::table('prosedure_qualification_records', function (Blueprint $table) { - try { - $table->index('pwps_no', 'idx_pqr_pwps'); - dump("✓ idx_pqr_pwps index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_pqr_pwps index zaten var - already exists"); - } - }); - } catch (\Exception $e) { - dump("❌ prosedure_qualification_records tablosu için index oluşturulamadı: " . $e->getMessage()); - \Log::info('prosedure_qualification_records tablosu için index oluşturulamadı: ' . $e->getMessage()); - } - - // =================================== - // WHERE CLAUSE'LI SPECIAL INDEX - // =================================== - - try { - // Laravel Schema Builder WHERE clause'ı desteklemediği için raw SQL kullanıyoruz - DB::statement("CREATE INDEX IF NOT EXISTS idx_weld_logs_line_welding_where ON weld_logs(line_number, welding_date)"); - dump("✓ idx_weld_logs_line_welding_where (WHERE clause'lı) index'i oluşturuldu"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_line_welding_where index zaten var - already exists"); - \Log::info('WHERE clause\'lı index oluşturulamadı: ' . $e->getMessage()); - } - - dump("🎉 Welding Journal indexleri migration işlemi tamamlandı!"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - dump("🔄 Welding Journal indexleri geri alınıyor..."); - - // =================================== - // İNDEKSLERİ KALDIRMA - // =================================== - - try { - Schema::table('weld_logs', function (Blueprint $table) { - try { - $table->dropIndex('idx_weld_logs_line_welding'); - dump("🗑️ idx_weld_logs_line_welding index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_line_welding index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_iso_joint'); - dump("🗑️ idx_weld_logs_iso_joint index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_iso_joint index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_iso'); - dump("🗑️ idx_weld_logs_iso index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_iso index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_joint'); - dump("🗑️ idx_weld_logs_joint index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_joint index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_welder1'); - dump("🗑️ idx_weld_logs_welder1 index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_welder1 index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_welder2'); - dump("🗑️ idx_weld_logs_welder2 index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_welder2 index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_cert1'); - dump("🗑️ idx_weld_logs_cert1 index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_cert1 index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_cert2'); - dump("🗑️ idx_weld_logs_cert2 index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_cert2 index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_cert3'); - dump("🗑️ idx_weld_logs_cert3 index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_cert3 index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_element1'); - dump("🗑️ idx_weld_logs_element1 index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_element1 index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_element2'); - dump("🗑️ idx_weld_logs_element2 index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_element2 index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_wps'); - dump("🗑️ idx_weld_logs_wps index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_wps index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_vt_result'); - dump("🗑️ idx_weld_logs_vt_result index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_vt_result index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_rt_result'); - dump("🗑️ idx_weld_logs_rt_result index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_rt_result index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_ut_result'); - dump("��️ idx_weld_logs_ut_result index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_ut_result index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_pt_result'); - dump("🗑️ idx_weld_logs_pt_result index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_pt_result index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_mt_result'); - dump("��️ idx_weld_logs_mt_result index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_mt_result index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_pmi_result'); - dump("🗑️ idx_weld_logs_pmi_result index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_pmi_result index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_line_iso'); - dump("🗑️ idx_weld_logs_line_iso index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_line_iso index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_date_vt'); - dump("🗑️ idx_weld_logs_date_vt index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_date_vt index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_weld_logs_wps_welder'); - dump("🗑️ idx_weld_logs_wps_welder index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_wps_welder index zaten yok - already not exists"); - } - }); - } catch (\Exception $e) { - dump("❌ weld_logs indexleri silinemedi: " . $e->getMessage()); - \Log::info('weld_logs indexleri silinemedi: ' . $e->getMessage()); - } - - try { - Schema::table('line_lists', function (Blueprint $table) { - try { - $table->dropIndex('idx_line_lists_line_no'); - dump("🗑️ idx_line_lists_line_no index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_line_lists_line_no index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_line_lists_plant'); - dump("🗑️ idx_line_lists_plant index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_line_lists_plant index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_line_lists_fluid_group'); - dump("🗑️ idx_line_lists_fluid_group index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_line_lists_fluid_group index zaten yok - already not exists"); - } - try { - $table->dropIndex('idx_line_lists_category'); - dump("🗑️ idx_line_lists_category index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_line_lists_category index zaten yok - already not exists"); - } - }); - } catch (\Exception $e) { - dump("❌ line_lists indexleri silinemedi: " . $e->getMessage()); - \Log::info('line_lists indexleri silinemedi: ' . $e->getMessage()); - } - - try { - Schema::table('naks_welders', function (Blueprint $table) { - try { - $table->dropIndex('idx_naks_welders_id'); - dump("🗑️ idx_naks_welders_id index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_naks_welders_id index zaten yok - already not exists"); - } - }); - } catch (\Exception $e) { - dump("❌ naks_welders indexleri silinemedi: " . $e->getMessage()); - \Log::info('naks_welders indexleri silinemedi: ' . $e->getMessage()); - } - - try { - Schema::table('naks_consumables', function (Blueprint $table) { - try { - $table->dropIndex('idx_naks_consumables_report'); - dump("🗑️ idx_naks_consumables_report index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_naks_consumables_report index zaten yok - already not exists"); - } - }); - } catch (\Exception $e) { - dump("❌ naks_consumables indexleri silinemedi: " . $e->getMessage()); - \Log::info('naks_consumables indexleri silinemedi: ' . $e->getMessage()); - } - - try { - Schema::table('incoming_controls', function (Blueprint $table) { - try { - $table->dropIndex('idx_incoming_controls_code'); - dump("🗑️ idx_incoming_controls_code index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_incoming_controls_code index zaten yok - already not exists"); - } - }); - } catch (\Exception $e) { - dump("❌ incoming_controls indexleri silinemedi: " . $e->getMessage()); - \Log::info('incoming_controls indexleri silinemedi: ' . $e->getMessage()); - } - - try { - Schema::table('prosedure_qualification_records', function (Blueprint $table) { - try { - $table->dropIndex('idx_pqr_pwps'); - dump("🗑️ idx_pqr_pwps index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_pqr_pwps index zaten yok - already not exists"); - } - }); - } catch (\Exception $e) { - dump("❌ prosedure_qualification_records indexleri silinemedi: " . $e->getMessage()); - \Log::info('prosedure_qualification_records indexleri silinemedi: ' . $e->getMessage()); - } - - try { - // WHERE clause'lı special index'i kaldırma - DB::statement("DROP INDEX IF EXISTS idx_weld_logs_line_welding_where"); - dump("🗑️ idx_weld_logs_line_welding_where (WHERE clause'lı) index'i silindi"); - } catch (\Exception $e) { - dump("⚠ idx_weld_logs_line_welding_where index zaten yok - already not exists"); - \Log::info('WHERE clause\'lı index silinemedi: ' . $e->getMessage()); - } - - dump("🎉 Welding Journal indexleri rollback işlemi tamamlandı!"); - } -} diff --git a/database/migrations/2025_07_12_082405_add_date_columns_hand_over.php b/database/migrations/2025_07_12_082405_add_date_columns_hand_over.php deleted file mode 100644 index 0a720d2..0000000 --- a/database/migrations/2025_07_12_082405_add_date_columns_hand_over.php +++ /dev/null @@ -1,51 +0,0 @@ -date('created_date')->nullable()->after('location'); - } - if (!Schema::hasColumn('handovers', 'revision_date')) { - $table->date('revision_date')->nullable()->after('created_date'); - } - if (!Schema::hasColumn('handovers', 'final_status')) { - $table->string('final_status')->nullable()->after('revision_date'); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('handovers', function (Blueprint $table) { - $columnsToCheck = ['created_date', 'revision_date', 'final_status']; - $existingColumns = []; - - foreach ($columnsToCheck as $column) { - if (Schema::hasColumn('handovers', $column)) { - $existingColumns[] = $column; - } - } - - if (!empty($existingColumns)) { - $table->dropColumn($existingColumns); - } - }); - } -} diff --git a/database/migrations/2025_07_14_000000_fix_duplicate_test_packages.php b/database/migrations/2025_07_14_000000_fix_duplicate_test_packages.php deleted file mode 100644 index 122040c..0000000 --- a/database/migrations/2025_07_14_000000_fix_duplicate_test_packages.php +++ /dev/null @@ -1,65 +0,0 @@ - t2.id - AND t1.test_package_number IS NOT NULL - AND t1.test_package_number != '' - "); - - // test_package_number alanına unique constraint ekle (eğer yoksa) - $indexExists = DB::select(" - SELECT COUNT(*) as count - FROM INFORMATION_SCHEMA.STATISTICS - WHERE table_schema = DATABASE() - AND table_name = 'test_packages' - AND index_name = 'test_packages_test_package_number_unique' - "); - - if ($indexExists[0]->count == 0) { - Schema::table('test_packages', function (Blueprint $table) { - $table->unique('test_package_number', 'test_packages_test_package_number_unique'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // Unique constraint'in var olup olmadığını kontrol et - $indexExists = DB::select(" - SELECT COUNT(*) as count - FROM INFORMATION_SCHEMA.STATISTICS - WHERE table_schema = DATABASE() - AND table_name = 'test_packages' - AND index_name = 'test_packages_test_package_number_unique' - "); - - if ($indexExists[0]->count > 0) { - Schema::table('test_packages', function (Blueprint $table) { - $table->dropUnique('test_packages_test_package_number_unique'); - }); - } - } -} \ No newline at end of file diff --git a/database/migrations/2025_07_16_223419_document_history.php b/database/migrations/2025_07_16_223419_document_history.php deleted file mode 100644 index 7e7e876..0000000 --- a/database/migrations/2025_07_16_223419_document_history.php +++ /dev/null @@ -1,46 +0,0 @@ -id(); - $table->string('table_name')->nullable(); // Hangi tablo - $table->string('column_name')->nullable(); // Hangi sütun - $table->unsignedBigInteger('row_id')->nullable(); // Hangi satır ID'si - $table->string('user_name')->nullable(); // Kullanıcı adı - $table->string('action'); // Upload, Download, Archive, Delete - $table->string('file_name'); // Dosya adı - $table->string('file_size')->nullable(); // Dosya boyutu - $table->string('moved_from')->nullable(); // Kaynak klasör - $table->string('moved_to')->nullable(); // Hedef klasör - $table->timestamp('action_date'); // İşlem tarihi - $table->text('file_path'); // Dosya yolu - $table->text('notes')->nullable(); // Ek notlar - $table->timestamps(); - - $table->index(['table_name', 'column_name', 'row_id']); - $table->index(['file_name', 'table_name']); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('document_history'); - } -} diff --git a/database/migrations/2025_07_17_163842_add_columns_weld_log_and_document_revision.php b/database/migrations/2025_07_17_163842_add_columns_weld_log_and_document_revision.php deleted file mode 100644 index 9cf1781..0000000 --- a/database/migrations/2025_07_17_163842_add_columns_weld_log_and_document_revision.php +++ /dev/null @@ -1,45 +0,0 @@ -string('working_documentation', 100)->nullable()->default(null); - $table->string('axonometry', 100)->nullable()->default(null); - }); - - // weld_logs tablosuna sütun ekleme - Schema::table('weld_logs', function (Blueprint $table) { - $table->string('remarks2', 100)->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // document_revisions tablosundan sütunları kaldırma - Schema::table('document_revisions', function (Blueprint $table) { - $table->dropColumn(['working_documentation', 'axonometry']); - }); - - // weld_logs tablosundan sütunu kaldırma - Schema::table('weld_logs', function (Blueprint $table) { - $table->dropColumn('remarks2'); - }); - } -} diff --git a/database/migrations/2025_07_18_095058_add_remarks2_deleted_and_repair_log.php b/database/migrations/2025_07_18_095058_add_remarks2_deleted_and_repair_log.php deleted file mode 100644 index e351be8..0000000 --- a/database/migrations/2025_07_18_095058_add_remarks2_deleted_and_repair_log.php +++ /dev/null @@ -1,54 +0,0 @@ -string('remarks2', 100)->nullable()->default(null); - }); - - Schema::table('deleted_joints', function (Blueprint $table) { - $table->string('remarks2', 100)->nullable()->default(null); - }); - - // weld_logs tablosunda is_manual sütunu varsa sil - if (Schema::hasColumn('weld_logs', 'is_manual')) { - Schema::table('weld_logs', function (Blueprint $table) { - $table->dropColumn('is_manual'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('repair_logs', function (Blueprint $table) { - $table->dropColumn('remarks2'); - }); - - Schema::table('deleted_joints', function (Blueprint $table) { - $table->dropColumn('remarks2'); - }); - - // weld_logs tablosuna is_manual sütununu geri ekle - if (!Schema::hasColumn('weld_logs', 'is_manual')) { - Schema::table('weld_logs', function (Blueprint $table) { - $table->boolean('is_manual')->nullable()->default(null); - }); - } - } -} diff --git a/database/migrations/2025_07_24_163646_fix_update_weld_log_id.php b/database/migrations/2025_07_24_163646_fix_update_weld_log_id.php deleted file mode 100644 index 55ef649..0000000 --- a/database/migrations/2025_07_24_163646_fix_update_weld_log_id.php +++ /dev/null @@ -1,62 +0,0 @@ -Key_name, ['iso_number', 'weld_logs_iso_number_unique'])) { - Schema::table('weld_logs', function (Blueprint $table) use ($index) { - $table->dropUnique($index->Key_name); - echo "✅ Eski unique constraint ({$index->Key_name}) kaldırıldı\n"; - }); - } - } - - // Doğru unique constraint'i ekle: welding_date dahil 3'lü kombinasyon - Schema::table('weld_logs', function (Blueprint $table) { - $table->unique([ - 'iso_number', - 'no_of_the_joint_as_per_as_built_survey', - 'welding_date' - ], 'weld_logs_unique_joint'); - - echo "✅ Yeni unique constraint (iso_number + joint + welding_date) eklendi\n"; - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // Yeni constraint'i kaldır (eğer varsa) - $indexes = DB::select("SHOW INDEX FROM weld_logs WHERE Key_name = 'weld_logs_unique_joint'"); - if (!empty($indexes)) { - Schema::table('weld_logs', function (Blueprint $table) { - $table->dropUnique('weld_logs_unique_joint'); - echo "✅ Yeni constraint (weld_logs_unique_joint) kaldırıldı\n"; - }); - } - - // Eski constraint'i geri ekle (isteğe bağlı) - // Not: Orijinal sistem constraint olmadan çalışıyor gibi görünüyor - // Bu yüzden eski constraint'i geri eklemiyoruz - echo "✅ Rollback tamamlandı\n"; - } -} diff --git a/database/migrations/2025_08_04_000000_create_jobs_table.php b/database/migrations/2025_08_04_000000_create_jobs_table.php deleted file mode 100644 index 50f1ba4..0000000 --- a/database/migrations/2025_08_04_000000_create_jobs_table.php +++ /dev/null @@ -1,34 +0,0 @@ -bigIncrements('id'); - $table->string('queue')->index(); - $table->longText('payload'); - $table->unsignedTinyInteger('attempts'); - $table->unsignedInteger('reserved_at')->nullable(); - $table->unsignedInteger('available_at'); - $table->unsignedInteger('created_at'); - }); - } - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('jobs'); - } -}; \ No newline at end of file diff --git a/database/migrations/2025_08_13_090424_add_p_t_o_comment_handover.php b/database/migrations/2025_08_13_090424_add_p_t_o_comment_handover.php deleted file mode 100644 index 9602136..0000000 --- a/database/migrations/2025_08_13_090424_add_p_t_o_comment_handover.php +++ /dev/null @@ -1,36 +0,0 @@ -text('pto_comments')->nullable()->after('final_status'); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('handovers', function (Blueprint $table) { - if (Schema::hasColumn('handovers', 'pto_comments')) { - $table->dropColumn('pto_comments'); - } - }); - } -} diff --git a/database/migrations/2025_08_13_164108_assigned_document_refactor_column.php b/database/migrations/2025_08_13_164108_assigned_document_refactor_column.php deleted file mode 100644 index 9b07b85..0000000 --- a/database/migrations/2025_08_13_164108_assigned_document_refactor_column.php +++ /dev/null @@ -1,34 +0,0 @@ -longText('assigned_documents')->change(); - $table->longText('zone')->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('work_permit_documents', function (Blueprint $table) { - $table->text('assigned_documents')->change(); - $table->text('zone')->change(); - }); - } -} diff --git a/database/migrations/2025_08_13_220958_handover_change_atg_date_column.php b/database/migrations/2025_08_13_220958_handover_change_atg_date_column.php deleted file mode 100644 index 733db40..0000000 --- a/database/migrations/2025_08_13_220958_handover_change_atg_date_column.php +++ /dev/null @@ -1,66 +0,0 @@ -renameColumn('atg_count', 'atg_date'); - } else { - $table->date('atg_date')->nullable(); - } - }); - - // Eğer atg_date sütunu varsa ve integer tipindeyse, date tipine çevir - if (Schema::hasColumn('handovers', 'atg_date')) { - Schema::table('handovers', function (Blueprint $table) { - $table->date('atg_date')->change(); - }); - } - - // atg_comment sütunu yoksa ekle (after kullanmadan) - if (!Schema::hasColumn('handovers', 'atg_comment')) { - Schema::table('handovers', function (Blueprint $table) { - $table->text('atg_comment')->nullable(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('handovers', function (Blueprint $table) { - // atg_date sütunu varsa atg_count olarak geri adlandır - if (Schema::hasColumn('handovers', 'atg_date')) { - $table->renameColumn('atg_date', 'atg_count'); - } - - // atg_comment sütunu varsa kaldır - if (Schema::hasColumn('handovers', 'atg_comment')) { - $table->dropColumn('atg_comment'); - } - }); - - // atg_count sütununu integer tipine geri çevir - if (Schema::hasColumn('handovers', 'atg_count')) { - Schema::table('handovers', function (Blueprint $table) { - $table->integer('atg_count')->change(); - }); - } - } -} diff --git a/database/migrations/2025_09_05_000000_create_document_manager_permissions_table.php b/database/migrations/2025_09_05_000000_create_document_manager_permissions_table.php deleted file mode 100644 index b7d0417..0000000 --- a/database/migrations/2025_09_05_000000_create_document_manager_permissions_table.php +++ /dev/null @@ -1,50 +0,0 @@ -id(); - $table->string('user_level'); // User level (Admin, PTO, QA, etc.) - $table->string('folder_path', 500); // Folder path within documents directory - $table->enum('permission_type', ['read', 'write', 'edit']); // 3-tier permission system - $table->boolean('is_allowed')->default(false); // Whether permission is granted - $table->timestamps(); - - // Unique constraint to prevent duplicate permissions - $table->unique(['user_level', 'folder_path', 'permission_type'], 'unique_permission'); - - // Indexes for better performance - $table->index(['user_level']); - $table->index(['folder_path']); - $table->index(['permission_type']); - $table->index(['user_level', 'permission_type']); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('document_manager_permissions'); - } -}; diff --git a/database/migrations/2025_09_05_220724_add_as_build_weld_logs.php b/database/migrations/2025_09_05_220724_add_as_build_weld_logs.php deleted file mode 100644 index dc7046d..0000000 --- a/database/migrations/2025_09_05_220724_add_as_build_weld_logs.php +++ /dev/null @@ -1,55 +0,0 @@ -string('pdf_as_build')->nullable()->after('pdf_spool_iso'); - }); - Schema::table('deleted_joints', function (Blueprint $table) { - $table->string('pdf_as_build')->nullable()->after('pdf_spool_iso'); - }); - Schema::table('repair_logs', function (Blueprint $table) { - $table->string('pdf_as_build')->nullable()->after('pdf_spool_iso'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table("weld_logs", function (Blueprint $table) { - if (Schema::hasColumn("weld_logs", "pdf_as_build")) { - $table->dropColumn("pdf_as_build"); - } - }); - Schema::table("weld_logs", function (Blueprint $table) { - if (Schema::hasColumn("weld_logs", "as_build")) { - $table->dropColumn("as_build"); - } - }); - Schema::table("deleted_joints", function (Blueprint $table) { - if (Schema::hasColumn("deleted_joints", "pdf_as_build")) { - $table->dropColumn("pdf_as_build"); - } - }); - Schema::table("repair_logs", function (Blueprint $table) { - if (Schema::hasColumn("repair_logs", "pdf_as_build")) { - $table->dropColumn("pdf_as_build"); - } - }); - } -} diff --git a/database/migrations/2025_09_27_154036_incoming_control_description_change.php b/database/migrations/2025_09_27_154036_incoming_control_description_change.php deleted file mode 100644 index f8a7765..0000000 --- a/database/migrations/2025_09_27_154036_incoming_control_description_change.php +++ /dev/null @@ -1,34 +0,0 @@ -string('description_en', 500)->nullable()->default(null)->change(); - $table->string('description_ru', 500)->nullable()->default(null)->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('incoming_controls', function (Blueprint $table) { - $table->string('description_en', 100)->nullable()->default(null)->change(); - $table->string('description_ru', 100)->nullable()->default(null)->change(); - }); - } -} diff --git a/database/migrations/2025_09_29_100000_create_pdf_editor_system.php b/database/migrations/2025_09_29_100000_create_pdf_editor_system.php deleted file mode 100644 index 6d34156..0000000 --- a/database/migrations/2025_09_29_100000_create_pdf_editor_system.php +++ /dev/null @@ -1,137 +0,0 @@ -id(); - $table->string('shape_id')->unique(); - $table->string('spool_no')->nullable(); - $table->string('joint_type')->nullable(); - $table->string('classification')->nullable(); - $table->integer('page_number'); - $table->decimal('x_coordinate', 10, 2); - $table->decimal('y_coordinate', 10, 2); - $table->decimal('width', 10, 2); - $table->decimal('height', 10, 2); - $table->enum('shape_type', ['rect', 'circle', 'triangle', 'spool', 'weld', 'shop_weld', 'leader_line', 'text']); - $table->text('qr_code_data')->nullable(); - $table->string('pdf_file_path'); - $table->bigInteger('created_by')->nullable(); - $table->text('original_start_point')->nullable(); // For leader line connections - $table->string('connected_shape_id')->nullable(); // Track shape-leader line connection - $table->timestamps(); - - $table->index('shape_id'); - $table->index('spool_no'); - $table->index('pdf_file_path'); - }); - } - - // Create Spools Table - if (!Schema::hasTable('spools')) { - Schema::create('spools', function (Blueprint $table) { - $table->id(); - $table->string('spool_no')->unique(); - $table->string('description')->nullable(); - $table->string('material')->nullable(); - $table->string('diameter')->nullable(); - $table->string('thickness')->nullable(); - $table->string('length')->nullable(); - $table->string('classification')->nullable(); - $table->string('status')->default('active'); - $table->timestamps(); - }); - } - - // Create Elements Table - if (!Schema::hasTable('elements')) { - Schema::create('elements', function (Blueprint $table) { - $table->id(); - $table->string('element_code')->unique(); - $table->string('element_name'); - $table->string('element_type'); // pipe, elbow, tee, valve, etc. - $table->string('material')->nullable(); - $table->string('diameter')->nullable(); - $table->string('thickness')->nullable(); - $table->string('classification')->nullable(); - $table->decimal('weight', 10, 2)->nullable(); - $table->timestamps(); - }); - } - - // Create Joints Table - if (!Schema::hasTable('joints')) { - Schema::create('joints', function (Blueprint $table) { - $table->id(); - $table->string('joint_no')->unique(); - $table->string('spool_no'); - $table->string('element_from')->nullable(); - $table->string('element_to')->nullable(); - $table->string('joint_type')->nullable(); // butt, socket, threaded, etc. - $table->string('welding_type')->nullable(); - $table->string('classification')->nullable(); - $table->string('status')->default('pending'); - $table->timestamps(); - - $table->foreign('spool_no')->references('spool_no')->on('spools'); - }); - } - - // Create Welders Table - if (!Schema::hasTable('welders')) { - Schema::create('welders', function (Blueprint $table) { - $table->id(); - $table->string('welder_code')->unique(); - $table->string('name'); - $table->string('certification')->nullable(); - $table->string('specialization')->nullable(); - $table->string('status')->default('active'); - $table->timestamps(); - }); - } - - // Create Welder Assignments Table - if (!Schema::hasTable('welder_assignments')) { - Schema::create('welder_assignments', function (Blueprint $table) { - $table->id(); - $table->string('joint_no'); - $table->string('welder_code'); - $table->date('assigned_date')->nullable(); - $table->date('completed_date')->nullable(); - $table->string('status')->default('assigned'); - $table->timestamps(); - - $table->foreign('joint_no')->references('joint_no')->on('joints'); - $table->foreign('welder_code')->references('welder_code')->on('welders'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('welder_assignments'); - Schema::dropIfExists('welders'); - Schema::dropIfExists('joints'); - Schema::dropIfExists('elements'); - Schema::dropIfExists('spools'); - Schema::dropIfExists('annotations'); - } -} diff --git a/database/migrations/2025_10_03_152637_create_jobs_table.php b/database/migrations/2025_10_03_152637_create_jobs_table.php deleted file mode 100644 index 9b6e9b8..0000000 --- a/database/migrations/2025_10_03_152637_create_jobs_table.php +++ /dev/null @@ -1,38 +0,0 @@ -bigIncrements('id'); - $table->string('queue')->index(); - $table->longText('payload'); - $table->unsignedTinyInteger('attempts'); - $table->unsignedInteger('reserved_at')->nullable(); - $table->unsignedInteger('available_at'); - $table->unsignedInteger('created_at'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('jobs'); - } -} diff --git a/database/migrations/2025_10_03_152646_create_failed_jobs_table.php b/database/migrations/2025_10_03_152646_create_failed_jobs_table.php deleted file mode 100644 index 0d32c6b..0000000 --- a/database/migrations/2025_10_03_152646_create_failed_jobs_table.php +++ /dev/null @@ -1,39 +0,0 @@ -id(); - $table->string('uuid')->unique(); - $table->text('connection'); - $table->text('queue'); - $table->longText('payload'); - $table->longText('exception'); - $table->timestamp('failed_at')->useCurrent(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('failed_jobs'); - } -} diff --git a/database/migrations/2025_10_03_152700_fix_jobs_table_collation.php b/database/migrations/2025_10_03_152700_fix_jobs_table_collation.php deleted file mode 100644 index b478272..0000000 --- a/database/migrations/2025_10_03_152700_fix_jobs_table_collation.php +++ /dev/null @@ -1,39 +0,0 @@ -id(); - - // Basic Info - $table->string('name')->unique()->comment('Mapping name (unique identifier)'); - $table->text('description')->nullable()->comment('Description of this mapping'); - $table->boolean('is_active')->default(true); - $table->integer('order')->default(0); - - // Folder Selection - $table->string('search_folder', 500)->comment('Single folder path in documents directory'); - - // SQL Query - $table->text('sql_query')->comment('SQL query template with :placeholders'); - - // Result Field Mappings - $table->string('identifier_field')->default('identifier')->comment('Field to use as document identifier'); - $table->string('date_field')->default('document_date')->comment('Field to use as document date'); - - // Search Pattern - $table->string('file_search_pattern', 500)->default('*{identifier}*.pdf')->comment('Glob pattern with {field} placeholders'); - - // Title Patterns - $table->string('title_pattern', 500)->nullable()->comment('Pattern for title field'); - $table->string('title2_pattern', 500)->default('{identifier}')->comment('Pattern for title2 field'); - $table->string('title3_pattern', 500)->nullable()->comment('Pattern for title3 field'); - $table->string('title4_pattern', 500)->nullable()->comment('Pattern for title4 field (used in Excel)'); - - // Display Configuration - $table->string('icon', 50)->default('📄'); - $table->string('badge_text', 100)->default('Document'); - $table->string('color', 50)->default('primary'); - - $table->timestamps(); - - // Indexes - $table->index('is_active'); - $table->index('order'); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('register_document_mappings'); - } -}; \ No newline at end of file diff --git a/database/migrations/2025_10_20_153149_rename_columns_in_ferrite_table.php b/database/migrations/2025_10_20_153149_rename_columns_in_ferrite_table.php deleted file mode 100644 index f85acdd..0000000 --- a/database/migrations/2025_10_20_153149_rename_columns_in_ferrite_table.php +++ /dev/null @@ -1,58 +0,0 @@ -renameColumn('no_of_ferrite_check', 'ferrite_report'); - } - - // Rename date_of_ferrite_check to ferrite_test_date - if (Schema::hasColumn('ferrits', 'date_of_ferrite_check')) { - $table->renameColumn('date_of_ferrite_check', 'ferrite_test_date'); - } - - // Rename ferrite_result to result_ferrite - if (Schema::hasColumn('ferrits', 'result_ferrite')) { - $table->renameColumn('result_ferrite', 'ferrite_result'); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('ferrits', function (Blueprint $table) { - // Reverse rename ferrite_report to no_of_ferrite_check - if (Schema::hasColumn('ferrits', 'ferrite_report')) { - $table->renameColumn('ferrite_report', 'no_of_ferrite_check'); - } - - // Reverse rename ferrite_test_date to date_of_ferrite_check - if (Schema::hasColumn('ferrits', 'ferrite_test_date')) { - $table->renameColumn('ferrite_test_date', 'date_of_ferrite_check'); - } - - // Reverse rename result_ferrite to ferrite_result - if (Schema::hasColumn('ferrits', 'result_ferrite')) { - $table->renameColumn('result_ferrite', 'ferrite_result'); - } - }); - } -} diff --git a/database/migrations/2025_10_20_203658_add_pipe_material_class_nde_matrix.php b/database/migrations/2025_10_20_203658_add_pipe_material_class_nde_matrix.php deleted file mode 100644 index bb8a01e..0000000 --- a/database/migrations/2025_10_20_203658_add_pipe_material_class_nde_matrix.php +++ /dev/null @@ -1,32 +0,0 @@ -string('pipe_material_class')->nullable()->after('material'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('nde_matrices', function (Blueprint $table) { - $table->dropColumn('pipe_material_class'); - }); - } -} diff --git a/database/migrations/2025_10_29_121700_create_annotations_table.php b/database/migrations/2025_10_29_121700_create_annotations_table.php deleted file mode 100644 index 16d4538..0000000 --- a/database/migrations/2025_10_29_121700_create_annotations_table.php +++ /dev/null @@ -1,54 +0,0 @@ -id(); - $table->string('shape_id')->unique(); - $table->string('spool_no')->nullable(); - $table->string('joint_type')->nullable(); - $table->string('classification')->nullable(); - $table->integer('page_number'); - $table->decimal('x_coordinate', 10, 2); - $table->decimal('y_coordinate', 10, 2); - $table->decimal('width', 10, 2)->nullable(); - $table->decimal('height', 10, 2)->nullable(); - $table->enum('shape_type', ['leader_line', 'rect', 'circle', 'triangle', 'text', 'line'])->default('rect'); - $table->text('qr_code_data')->nullable(); - $table->string('pdf_file_path'); - $table->string('created_by')->nullable(); - $table->json('original_start_point')->nullable(); - $table->string('connected_shape_id')->nullable(); - $table->timestamps(); - - // Indexes for better performance - $table->index('pdf_file_path'); - $table->index('page_number'); - $table->index(['pdf_file_path', 'page_number']); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('annotations'); - } -} diff --git a/database/migrations/2025_10_29_123030_create_pdfm_tables.php b/database/migrations/2025_10_29_123030_create_pdfm_tables.php deleted file mode 100644 index 23a5606..0000000 --- a/database/migrations/2025_10_29_123030_create_pdfm_tables.php +++ /dev/null @@ -1,89 +0,0 @@ -id(); - $table->string('spool_no')->unique(); - $table->string('pdf_file')->nullable(); - $table->text('description')->nullable(); - $table->timestamps(); - }); - - // PDFM Elements Table - Schema::create('pdfm_elements', function (Blueprint $table) { - $table->id(); - $table->string('element_code')->unique(); - $table->string('spool_no')->nullable(); - $table->string('element_type')->nullable(); - $table->text('description')->nullable(); - $table->timestamps(); - - $table->index('spool_no'); - }); - - // PDFM Joints Table - Schema::create('pdfm_joints', function (Blueprint $table) { - $table->id(); - $table->string('joint_no')->unique(); - $table->string('spool_no')->nullable(); - $table->string('element_from')->nullable(); - $table->string('element_to')->nullable(); - $table->string('joint_type')->nullable(); - $table->text('description')->nullable(); - $table->timestamps(); - - $table->index('spool_no'); - }); - - // PDFM Welders Table - Schema::create('pdfm_welders', function (Blueprint $table) { - $table->id(); - $table->string('welder_name'); - $table->string('welder_code')->unique(); - $table->string('qualification')->nullable(); - $table->date('qualification_date')->nullable(); - $table->date('expiry_date')->nullable(); - $table->text('notes')->nullable(); - $table->timestamps(); - }); - - // PDFM Welder Assignments Table (many-to-many relationship) - Schema::create('pdfm_welder_assignments', function (Blueprint $table) { - $table->id(); - $table->string('joint_no'); - $table->unsignedBigInteger('welder_id'); - $table->date('assignment_date')->nullable(); - $table->timestamps(); - - $table->foreign('welder_id')->references('id')->on('pdfm_welders')->onDelete('cascade'); - $table->index('joint_no'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('pdfm_welder_assignments'); - Schema::dropIfExists('pdfm_welders'); - Schema::dropIfExists('pdfm_joints'); - Schema::dropIfExists('pdfm_elements'); - Schema::dropIfExists('pdfm_spools'); - } -} diff --git a/database/migrations/2025_10_31_142134_create_notifications_table.php b/database/migrations/2025_10_31_142134_create_notifications_table.php deleted file mode 100644 index e521140..0000000 --- a/database/migrations/2025_10_31_142134_create_notifications_table.php +++ /dev/null @@ -1,45 +0,0 @@ -id(); - $table->unsignedBigInteger('user_id'); - $table->string('notification_code'); - $table->string('title'); - $table->text('message'); - $table->string('link')->nullable(); - $table->boolean('is_read')->default(false); - $table->timestamps(); - - // Foreign key constraint - $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); - - // Indexes for better performance - $table->index(['user_id', 'is_read']); - $table->index('notification_code'); - $table->index('created_at'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('notifications'); - } -} diff --git a/database/migrations/2025_11_02_145223_create_feedback_reports_table.php b/database/migrations/2025_11_02_145223_create_feedback_reports_table.php deleted file mode 100644 index aa39634..0000000 --- a/database/migrations/2025_11_02_145223_create_feedback_reports_table.php +++ /dev/null @@ -1,41 +0,0 @@ -id(); - $table->unsignedBigInteger('user_id'); - $table->string('title'); - $table->text('description'); - $table->string('screenshot_path')->nullable(); - $table->string('status')->default('open'); - $table->timestamps(); - - $table->foreign('user_id') - ->references('id') - ->on('users') - ->onDelete('cascade'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('feedback_reports'); - } -} diff --git a/database/migrations/2025_11_04_000001_add_color_fields_to_construction_paint_logs.php b/database/migrations/2025_11_04_000001_add_color_fields_to_construction_paint_logs.php deleted file mode 100644 index a83c67b..0000000 --- a/database/migrations/2025_11_04_000001_add_color_fields_to_construction_paint_logs.php +++ /dev/null @@ -1,36 +0,0 @@ -string('color_1')->nullable()->after('ral_1'); - $table->string('color_2')->nullable()->after('ral_2'); - $table->string('color_3')->nullable()->after('ral_3'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('construction_paint_logs', function (Blueprint $table) { - $table->dropColumn(['color_1', 'color_2', 'color_3']); - }); - } -} - diff --git a/database/migrations/2025_11_10_164421_add_stroke_color_and_stroke_width_to_annotations_table.php b/database/migrations/2025_11_10_164421_add_stroke_color_and_stroke_width_to_annotations_table.php deleted file mode 100644 index 50b6190..0000000 --- a/database/migrations/2025_11_10_164421_add_stroke_color_and_stroke_width_to_annotations_table.php +++ /dev/null @@ -1,33 +0,0 @@ -string('stroke_color')->nullable()->after('connected_shape_id'); - $table->decimal('stroke_width', 5, 2)->nullable()->default(2)->after('stroke_color'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('annotations', function (Blueprint $table) { - $table->dropColumn(['stroke_color', 'stroke_width']); - }); - } -} diff --git a/database/migrations/2025_11_10_191818_add_versioning_fields_to_annotations_table.php b/database/migrations/2025_11_10_191818_add_versioning_fields_to_annotations_table.php deleted file mode 100644 index cd6c635..0000000 --- a/database/migrations/2025_11_10_191818_add_versioning_fields_to_annotations_table.php +++ /dev/null @@ -1,46 +0,0 @@ -integer('version')->default(1)->after('connected_shape_id'); - } - if (!Schema::hasColumn('annotations', 'is_active')) { - $table->boolean('is_active')->default(true)->after('version'); - } - if (!Schema::hasColumn('annotations', 'action_type')) { - $table->string('action_type')->nullable()->after('is_active'); - } - if (!Schema::hasColumn('annotations', 'parent_id')) { - $table->unsignedBigInteger('parent_id')->nullable()->after('action_type'); - } - if (!Schema::hasColumn('annotations', 'updated_by')) { - $table->unsignedBigInteger('updated_by')->nullable()->after('parent_id'); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('annotations', function (Blueprint $table) { - $table->dropColumn(['version', 'is_active', 'action_type', 'parent_id', 'updated_by']); - }); - } -} diff --git a/database/migrations/2025_11_10_202439_update_shape_id_index_on_annotations_table.php b/database/migrations/2025_11_10_202439_update_shape_id_index_on_annotations_table.php deleted file mode 100644 index c89d9be..0000000 --- a/database/migrations/2025_11_10_202439_update_shape_id_index_on_annotations_table.php +++ /dev/null @@ -1,22 +0,0 @@ -dropUnique(['shape_id']); - $table->index('shape_id'); - }); - } - public function down() - { - Schema::table('annotations', function (Blueprint $table) { - $table->dropIndex(['shape_id']); - $table->unique('shape_id'); - }); - } -}; diff --git a/database/migrations/2025_11_11_120000_add_pdf_as_build_to_document_revisions_table.php b/database/migrations/2025_11_11_120000_add_pdf_as_build_to_document_revisions_table.php deleted file mode 100644 index 64143d4..0000000 --- a/database/migrations/2025_11_11_120000_add_pdf_as_build_to_document_revisions_table.php +++ /dev/null @@ -1,33 +0,0 @@ -text('pdf_as_build')->nullable()->after('pdf_spool_iso'); - }); - } - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - if (Schema::hasColumn('document_revisions', 'pdf_as_build')) { - Schema::table('document_revisions', function (Blueprint $table) { - $table->dropColumn('pdf_as_build'); - }); - } - } -}; - diff --git a/database/migrations/2025_11_11_121500_add_welder_id_to_annotations_table.php b/database/migrations/2025_11_11_121500_add_welder_id_to_annotations_table.php deleted file mode 100644 index 9a6c7bd..0000000 --- a/database/migrations/2025_11_11_121500_add_welder_id_to_annotations_table.php +++ /dev/null @@ -1,33 +0,0 @@ -string('welder_id')->nullable()->after('joint_type'); - }); - } - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - if (Schema::hasColumn('annotations', 'welder_id')) { - Schema::table('annotations', function (Blueprint $table) { - $table->dropColumn('welder_id'); - }); - } - } -}; - diff --git a/database/migrations/2025_11_11_172527_remove_action_type_from_annotations_table.php b/database/migrations/2025_11_11_172527_remove_action_type_from_annotations_table.php deleted file mode 100644 index 3f943b8..0000000 --- a/database/migrations/2025_11_11_172527_remove_action_type_from_annotations_table.php +++ /dev/null @@ -1,33 +0,0 @@ -dropColumn('action_type'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('annotations', function (Blueprint $table) { - $table->string('action_type')->nullable(); - - }); - } -} diff --git a/database/migrations/2025_11_13_091427_add_username_to_feedback_reports_table.php b/database/migrations/2025_11_13_091427_add_username_to_feedback_reports_table.php deleted file mode 100644 index e558f55..0000000 --- a/database/migrations/2025_11_13_091427_add_username_to_feedback_reports_table.php +++ /dev/null @@ -1,32 +0,0 @@ -string('username')->nullable()->after('user_id'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('feedback_reports', function (Blueprint $table) { - $table->dropColumn('username'); - }); - } -} diff --git a/database/migrations/2025_11_14_181113_add_mechanical_joint_columns_to_joint_types_table.php b/database/migrations/2025_11_14_181113_add_mechanical_joint_columns_to_joint_types_table.php deleted file mode 100644 index c6dbcac..0000000 --- a/database/migrations/2025_11_14_181113_add_mechanical_joint_columns_to_joint_types_table.php +++ /dev/null @@ -1,115 +0,0 @@ -boolean('is_welded')->default(true)->after('definition_en'); - $table->boolean('has_ndt')->default(true)->after('is_welded'); - $table->boolean('is_mechanical')->default(false)->after('has_ndt'); - }); - - // Update existing welded joint types (BW, FW, SW, TW, S, F) - DB::table('joint_types') - ->whereIn('short_name_en', ['BW', 'FW', 'SW', 'TW']) - ->orWhereIn('naks_name', ['S', 'F']) - ->update([ - 'is_welded' => true, - 'has_ndt' => true, - 'is_mechanical' => false - ]); - - // Insert new mechanical joint types - $mechanicalJoints = [ - [ - 'naks_name' => 'BJ', - 'short_name_ru' => 'ЦБ', - 'short_name_en' => 'BJ', - 'definition_ru' => 'Болтовое соединение', - 'definition_en' => 'Bolted Joint', - 'is_welded' => false, - 'has_ndt' => false, - 'is_mechanical' => true, - 'created_at' => now(), - 'updated_at' => now(), - ], - [ - 'naks_name' => 'FJ', - 'short_name_ru' => 'ФС', - 'short_name_en' => 'FJ', - 'definition_ru' => 'Фланцевое соединение', - 'definition_en' => 'Flange Joint', - 'is_welded' => false, - 'has_ndt' => false, - 'is_mechanical' => true, - 'created_at' => now(), - 'updated_at' => now(), - ], - [ - 'naks_name' => 'TH', - 'short_name_ru' => 'РС', - 'short_name_en' => 'TH', - 'definition_ru' => 'Резьбовое соединение', - 'definition_en' => 'Threaded Joint', - 'is_welded' => false, - 'has_ndt' => false, - 'is_mechanical' => true, - 'created_at' => now(), - 'updated_at' => now(), - ], - [ - 'naks_name' => 'CJ', - 'short_name_ru' => 'КС', - 'short_name_en' => 'CJ', - 'definition_ru' => 'Зажимное соединение', - 'definition_en' => 'Clamped Joint', - 'is_welded' => false, - 'has_ndt' => false, - 'is_mechanical' => true, - 'created_at' => now(), - 'updated_at' => now(), - ], - ]; - - foreach ($mechanicalJoints as $joint) { - // Check if already exists by short_name_en - $exists = DB::table('joint_types') - ->where('short_name_en', $joint['short_name_en']) - ->exists(); - - if (!$exists) { - DB::table('joint_types')->insert($joint); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // Remove mechanical joint types - DB::table('joint_types') - ->whereIn('short_name_en', ['BJ', 'FJ', 'TH', 'CJ']) - ->delete(); - - // Remove columns - Schema::table('joint_types', function (Blueprint $table) { - $table->dropColumn(['is_welded', 'has_ndt', 'is_mechanical']); - }); - } -} diff --git a/database/migrations/2025_11_14_181220_add_fitter_name_to_weld_logs_table.php b/database/migrations/2025_11_14_181220_add_fitter_name_to_weld_logs_table.php deleted file mode 100644 index 564efbe..0000000 --- a/database/migrations/2025_11_14_181220_add_fitter_name_to_weld_logs_table.php +++ /dev/null @@ -1,60 +0,0 @@ -string('fitter_name')->nullable()->after('welder_2'); - }); - } - - if (Schema::hasTable('deleted_joints') && !Schema::hasColumn('deleted_joints', 'fitter_name')) { - Schema::table('deleted_joints', function (Blueprint $table) { - $table->string('fitter_name')->nullable()->after('welder_2'); - }); - } - - if (Schema::hasTable('repair_logs') && !Schema::hasColumn('repair_logs', 'fitter_name')) { - Schema::table('repair_logs', function (Blueprint $table) { - $table->string('fitter_name')->nullable()->after('welder_2'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('weld_logs') && Schema::hasColumn('weld_logs', 'fitter_name')) { - Schema::table('weld_logs', function (Blueprint $table) { - $table->dropColumn('fitter_name'); - }); - } - - if (Schema::hasTable('deleted_joints') && Schema::hasColumn('deleted_joints', 'fitter_name')) { - Schema::table('deleted_joints', function (Blueprint $table) { - $table->dropColumn('fitter_name'); - }); - } - - if (Schema::hasTable('repair_logs') && Schema::hasColumn('repair_logs', 'fitter_name')) { - Schema::table('repair_logs', function (Blueprint $table) { - $table->dropColumn('fitter_name'); - }); - } - } -} diff --git a/database/migrations/2025_11_25_022738_add_filter_params_to_notifications_table.php b/database/migrations/2025_11_25_022738_add_filter_params_to_notifications_table.php deleted file mode 100644 index 39bd50f..0000000 --- a/database/migrations/2025_11_25_022738_add_filter_params_to_notifications_table.php +++ /dev/null @@ -1,48 +0,0 @@ -json('filter_params')->nullable()->after('link'); - } - if (!Schema::hasColumn('notifications', 'item_count')) { - $table->integer('item_count')->default(1)->after('filter_params'); - } - if (!Schema::hasColumn('notifications', 'notification_type')) { - $table->string('notification_type')->default('single')->after('item_count'); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('notifications', function (Blueprint $table) { - if (Schema::hasColumn('notifications', 'notification_type')) { - $table->dropColumn('notification_type'); - } - if (Schema::hasColumn('notifications', 'item_count')) { - $table->dropColumn('item_count'); - } - if (Schema::hasColumn('notifications', 'filter_params')) { - $table->dropColumn('filter_params'); - } - }); - } -} diff --git a/database/migrations/2025_11_25_201715_add_fields_to_incoming_controls_for_weldlog.php b/database/migrations/2025_11_25_201715_add_fields_to_incoming_controls_for_weldlog.php deleted file mode 100644 index 9c1fe03..0000000 --- a/database/migrations/2025_11_25_201715_add_fields_to_incoming_controls_for_weldlog.php +++ /dev/null @@ -1,51 +0,0 @@ -string('inspection_photo_file')->nullable()->after('akt_file'); - - // E-mail/TQ takip alanları - $table->string('email_tq_file')->nullable()->after('inspection_photo_file'); // Dosya yolu - $table->string('email_tq_number')->nullable()->after('email_tq_file'); // Numara alanı - - // OSD yükleme alanı - $table->string('osd_defect_akt_file')->nullable()->after('email_tq_number'); // Dosya yolu - $table->date('osd_report_date')->nullable()->after('osd_defect_akt_file'); // OSD report date - - // Drawing numarası (line numarası karşısına yazılacak) - $table->string('drawing_number')->nullable()->after('project'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('incoming_controls', function (Blueprint $table) { - $table->dropColumn([ - 'inspection_photo_file', - 'email_tq_file', - 'email_tq_number', - 'osd_defect_akt_file', - 'osd_report_date', - 'drawing_number' - ]); - }); - } -} diff --git a/database/migrations/2025_11_25_201743_add_drawing_number_to_mtos.php b/database/migrations/2025_11_25_201743_add_drawing_number_to_mtos.php deleted file mode 100644 index a63424a..0000000 --- a/database/migrations/2025_11_25_201743_add_drawing_number_to_mtos.php +++ /dev/null @@ -1,33 +0,0 @@ -string('drawing_number')->nullable()->after('line'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('m_t_o_s', function (Blueprint $table) { - $table->dropColumn('drawing_number'); - }); - } -} diff --git a/database/migrations/2025_11_28_143451_add_naks_technology_linelist.php b/database/migrations/2025_11_28_143451_add_naks_technology_linelist.php deleted file mode 100644 index 96acdd2..0000000 --- a/database/migrations/2025_11_28_143451_add_naks_technology_linelist.php +++ /dev/null @@ -1,125 +0,0 @@ -string('naks_technology')->nullable()->first(); - } - - if (!Schema::hasColumn('line_lists', 'tracing')) { - if (Schema::hasColumn('line_lists', 'external_finish_type')) { - $table->string('tracing')->nullable()->after('external_finish_type'); - } else { - $table->string('tracing')->nullable(); - } - } - - if (!Schema::hasColumn('line_lists', 'tracing_type')) { - if (Schema::hasColumn('line_lists', 'tracing')) { - $table->string('tracing_type')->nullable()->after('tracing'); - } else { - $table->string('tracing_type')->nullable(); - } - } - }); - - // Test Packages tablosuna eklemeler - Schema::table('test_packages', function (Blueprint $table) { - if (!Schema::hasColumn('test_packages', 'tracing')) { - $table->string('tracing')->nullable(); - } - - if (!Schema::hasColumn('test_packages', 'tracing_type')) { - $table->string('tracing_type')->nullable(); - } - }); - - // Test Pack Base Statuses tablosuna eklemeler - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - if (!Schema::hasColumn('test_pack_base_statuses', 'tracing')) { - $table->string('tracing')->nullable(); - } - - if (!Schema::hasColumn('test_pack_base_statuses', 'tracing_type')) { - $table->string('tracing_type')->nullable(); - } - }); - - // NDE Matrices tablosuna eklemeler - Schema::table('nde_matrices', function (Blueprint $table) { - if (!Schema::hasColumn('nde_matrices', 'tracing')) { - $table->string('tracing')->nullable(); - } - - if (!Schema::hasColumn('nde_matrices', 'tracing_type')) { - $table->string('tracing_type')->nullable(); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // Line Lists - $lineListColumns = []; - if (Schema::hasColumn('line_lists', 'tracing_type')) $lineListColumns[] = 'tracing_type'; - if (Schema::hasColumn('line_lists', 'tracing')) $lineListColumns[] = 'tracing'; - if (Schema::hasColumn('line_lists', 'naks_technology')) $lineListColumns[] = 'naks_technology'; - - if (!empty($lineListColumns)) { - Schema::table('line_lists', function (Blueprint $table) use ($lineListColumns) { - $table->dropColumn($lineListColumns); - }); - } - - // Test Packages - $tpColumns = []; - if (Schema::hasColumn('test_packages', 'tracing_type')) $tpColumns[] = 'tracing_type'; - if (Schema::hasColumn('test_packages', 'tracing')) $tpColumns[] = 'tracing'; - - if (!empty($tpColumns)) { - Schema::table('test_packages', function (Blueprint $table) use ($tpColumns) { - $table->dropColumn($tpColumns); - }); - } - - // Test Pack Base Statuses - $tpbsColumns = []; - if (Schema::hasColumn('test_pack_base_statuses', 'tracing_type')) $tpbsColumns[] = 'tracing_type'; - if (Schema::hasColumn('test_pack_base_statuses', 'tracing')) $tpbsColumns[] = 'tracing'; - - if (!empty($tpbsColumns)) { - Schema::table('test_pack_base_statuses', function (Blueprint $table) use ($tpbsColumns) { - $table->dropColumn($tpbsColumns); - }); - } - - // NDE Matrices - $nmColumns = []; - if (Schema::hasColumn('nde_matrices', 'tracing_type')) $nmColumns[] = 'tracing_type'; - if (Schema::hasColumn('nde_matrices', 'tracing')) $nmColumns[] = 'tracing'; - - if (!empty($nmColumns)) { - Schema::table('nde_matrices', function (Blueprint $table) use ($nmColumns) { - $table->dropColumn($nmColumns); - }); - } - } -} diff --git a/database/migrations/2025_11_28_181850_control_standart_nde_matrix.php b/database/migrations/2025_11_28_181850_control_standart_nde_matrix.php deleted file mode 100644 index 85cec75..0000000 --- a/database/migrations/2025_11_28_181850_control_standart_nde_matrix.php +++ /dev/null @@ -1,70 +0,0 @@ -tables as $tableName) { - if (Schema::hasTable($tableName)) { - Schema::table($tableName, function (Blueprint $table) use ($tableName) { - // Add control_standart if it doesn't exist - if (!Schema::hasColumn($tableName, 'control_standart')) { - $table->string('control_standart')->nullable(); - } - - // Add naks_technology if it doesn't exist - if (!Schema::hasColumn($tableName, 'naks_technology')) { - $table->string('naks_technology')->nullable(); - } - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - foreach ($this->tables as $tableName) { - if (Schema::hasTable($tableName)) { - Schema::table($tableName, function (Blueprint $table) use ($tableName) { - if (Schema::hasColumn($tableName, 'control_standart')) { - $table->dropColumn('control_standart'); - } - if (Schema::hasColumn($tableName, 'naks_technology')) { - $table->dropColumn('naks_technology'); - } - }); - } - } - } -} diff --git a/database/migrations/2025_11_28_201232_add_columns_weld_logs.php b/database/migrations/2025_11_28_201232_add_columns_weld_logs.php deleted file mode 100644 index fcb4ea1..0000000 --- a/database/migrations/2025_11_28_201232_add_columns_weld_logs.php +++ /dev/null @@ -1,100 +0,0 @@ -dropColumn($col); - }); - } - Schema::table($tableName, function (Blueprint $table) use($col, $tableName) { - if (Schema::hasColumn($tableName, 'mechanic_supervisor_control_date')) { - $table->string($col, 50)->nullable()->after('mechanic_supervisor_control_date'); - } else { - $table->string($col, 50)->nullable(); - } - }); - - // 2. Fit-up Report Date (Date) - After fit_up_report_no - $col = 'fit_up_report_date'; - if (Schema::hasColumn($tableName, $col)) { - Schema::table($tableName, function (Blueprint $table) use($col) { - $table->dropColumn($col); - }); - } - Schema::table($tableName, function (Blueprint $table) use($col, $tableName) { - if (Schema::hasColumn($tableName, 'fit_up_report_no')) { - $table->date($col)->nullable()->after('fit_up_report_no'); - } else { - $table->date($col)->nullable(); - } - }); - - // 3. Welding Report No (String) - After welding_supervisor_control_date - $col = 'welding_report_no'; - if (Schema::hasColumn($tableName, $col)) { - Schema::table($tableName, function (Blueprint $table) use($col) { - $table->dropColumn($col); - }); - } - Schema::table($tableName, function (Blueprint $table) use($col, $tableName) { - if (Schema::hasColumn($tableName, 'welding_supervisor_control_date')) { - $table->string($col, 50)->nullable()->after('welding_supervisor_control_date'); - } else { - $table->string($col, 50)->nullable(); - } - }); - - // 4. Welding Report Date (Date) - After welding_report_no - $col = 'welding_report_date'; - if (Schema::hasColumn($tableName, $col)) { - Schema::table($tableName, function (Blueprint $table) use($col) { - $table->dropColumn($col); - }); - } - Schema::table($tableName, function (Blueprint $table) use($col, $tableName) { - if (Schema::hasColumn($tableName, 'welding_report_no')) { - $table->date($col)->nullable()->after('welding_report_no'); - } else { - $table->date($col)->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - $sameTables = ['weld_logs', 'repair_logs', 'deleted_joints']; - $columns = ['fit_up_report_no', 'fit_up_report_date', 'welding_report_no', 'welding_report_date']; - - foreach($sameTables as $tableName) { - if (Schema::hasTable($tableName)) { - Schema::table($tableName, function (Blueprint $table) use ($columns) { - $table->dropColumn($columns); - }); - } - } - } -} diff --git a/database/migrations/2025_12_03_172235_change_column_type_pipe_progress.php b/database/migrations/2025_12_03_172235_change_column_type_pipe_progress.php deleted file mode 100644 index da59dcf..0000000 --- a/database/migrations/2025_12_03_172235_change_column_type_pipe_progress.php +++ /dev/null @@ -1,35 +0,0 @@ -decimal('pipe_progress', 20, 2)->nullable()->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('test_pack_base_statuses', function (Blueprint $table) { - // Geri alırken eski tipine (string/varchar) döndürür. - $table->string('pipe_progress')->nullable()->change(); - }); - } -} diff --git a/database/migrations/2025_12_05_201247_change_column_type_incoming_controls.php b/database/migrations/2025_12_05_201247_change_column_type_incoming_controls.php deleted file mode 100644 index e15a3c3..0000000 --- a/database/migrations/2025_12_05_201247_change_column_type_incoming_controls.php +++ /dev/null @@ -1,63 +0,0 @@ -decimal('dia_inch_1', 50, 2)->nullable()->change(); - $table->decimal('diainch_2', 50, 2)->nullable()->change(); - - // Dn 1-2 - $table->decimal('dn_1', 50, 2)->nullable()->change(); - $table->decimal('dn_2', 50, 2)->nullable()->change(); - - // OD 1-2 (Outside Diameter) - $table->decimal('odmm_1', 50, 2)->nullable()->change(); - $table->decimal('odmm_2', 50, 2)->nullable()->change(); - - // Thickness 1-2 - $table->decimal('thicknessmm_1', 50, 2)->nullable()->change(); - $table->decimal('thicknessmm_2', 50, 2)->nullable()->change(); - - // PN - $table->decimal('pn_mpa', 50, 2)->nullable()->change(); - - // Unit - $table->decimal('unit_kgmetc', 50, 2)->nullable()->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('incoming_controls', function (Blueprint $table) { - // İşlem geri alınırsa string formatına döndürülüyor - $columns = [ - 'dia_inch_1', 'diainch_2', - 'dn_1', 'dn_2', - 'odmm_1', 'odmm_2', - 'thicknessmm_1', 'thicknessmm_2', - 'pn_mpa', 'unit_kgmetc' - ]; - - foreach ($columns as $column) { - $table->string($column, 255)->nullable()->change(); - } - }); - } -} diff --git a/database/migrations/2025_12_05_205803_change_column_type_line_list.php b/database/migrations/2025_12_05_205803_change_column_type_line_list.php deleted file mode 100644 index ad81e25..0000000 --- a/database/migrations/2025_12_05_205803_change_column_type_line_list.php +++ /dev/null @@ -1,48 +0,0 @@ -decimal('dn', 50, 2)->nullable()->change(); - $table->decimal('design_pressure_mpa', 50, 2)->nullable()->change(); - $table->decimal('working_pressure_mpa', 50, 2)->nullable()->change(); - $table->decimal('working_temperature', 50, 2)->nullable()->change(); - $table->decimal('design_temperature', 50, 2)->nullable()->change(); - $table->decimal('ndt', 50, 2)->nullable()->change(); - $table->decimal('test_pressure', 50, 2)->nullable()->change(); - $table->decimal('test_pressure_mpa', 50, 2)->nullable()->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('line_lists', function (Blueprint $table) { - // Geri alma durumunda string'e çevrilir (eski tiplerin string olduğu varsayımıyla) - $table->string('dn')->nullable()->change(); - $table->string('design_pressure_mpa')->nullable()->change(); - $table->string('working_pressure_mpa')->nullable()->change(); - $table->string('working_temperature')->nullable()->change(); - $table->string('design_temperature')->nullable()->change(); - $table->string('ndt')->nullable()->change(); - $table->string('test_pressure')->nullable()->change(); - $table->string('test_pressure_mpa')->nullable()->change(); - }); - } -} diff --git a/database/migrations/2025_12_05_210707_change_column_type_incoming_control_paint.php b/database/migrations/2025_12_05_210707_change_column_type_incoming_control_paint.php deleted file mode 100644 index c87ba95..0000000 --- a/database/migrations/2025_12_05_210707_change_column_type_incoming_control_paint.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('certificate_quantity', 50, 2)->nullable()->change(); - $table->decimal('quantity', 50, 2)->nullable()->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('incoming_control_paints', function (Blueprint $table) { - $table->string('certificate_quantity', 100)->nullable()->change(); - $table->string('quantity', 100)->nullable()->change(); - }); - } -} diff --git a/database/migrations/2025_12_05_211939_add_file_column_incoming_control_paint.php b/database/migrations/2025_12_05_211939_add_file_column_incoming_control_paint.php deleted file mode 100644 index 5152eea..0000000 --- a/database/migrations/2025_12_05_211939_add_file_column_incoming_control_paint.php +++ /dev/null @@ -1,34 +0,0 @@ -string('pdf_certificate', 255)->nullable(); - $table->string('pdf_akt', 255)->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('incoming_control_paints', function (Blueprint $table) { - $table->dropColumn(['pdf_certificate', 'pdf_akt']); - }); - } -} diff --git a/database/migrations/2025_12_05_220326_change_column_type_test_pack.php b/database/migrations/2025_12_05_220326_change_column_type_test_pack.php deleted file mode 100644 index dcac56a..0000000 --- a/database/migrations/2025_12_05_220326_change_column_type_test_pack.php +++ /dev/null @@ -1,105 +0,0 @@ - 20.9) - DB::statement("UPDATE test_packages SET `$col` = REPLACE(`$col`, ',', '.') WHERE `$col` LIKE '%,%'"); - - // 2. Boş stringleri NULL yap - DB::statement("UPDATE test_packages SET `$col` = NULL WHERE `$col` = ''"); - } - } - - Schema::table('test_packages', function (Blueprint $table) use ($columns) { - foreach ($columns as $col) { - if (Schema::hasColumn('test_packages', $col)) { - $table->decimal($col, 50, 2)->nullable()->change(); - } - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - $columns = [ - 'total_wdi', - 'total_complated_wdi', - 'welding_progress', - 'total_shop_wdi', - 'total_complated_shop_wdi', - 'total_field_wdi', - 'total_complated_field_wdi', - 'test_pressure', - 'leakage_test_pressure', - 'a_punch_point_open', - 'b_punch_point_open', - 'c_punch_point_open', - 'support_remaining', - 'repair_qty', - 'repair_remaining', - 'rt_backlog', - 'ut_backlog', - 'mt_backlog', - 'pt_backlog', - 'vt_backlog', - 'pmi_backlog', - 'ferrit_backlog', - 'pwht_backlog' - ]; - - Schema::table('test_packages', function (Blueprint $table) use ($columns) { - foreach ($columns as $col) { - if (Schema::hasColumn('test_packages', $col)) { - $table->string($col)->nullable()->change(); - } - } - }); - } -} diff --git a/database/migrations/2025_12_05_221047_change_column_type_test_pack_iso.php b/database/migrations/2025_12_05_221047_change_column_type_test_pack_iso.php deleted file mode 100644 index ae1fd53..0000000 --- a/database/migrations/2025_12_05_221047_change_column_type_test_pack_iso.php +++ /dev/null @@ -1,118 +0,0 @@ - 20.9) - DB::statement("UPDATE test_pack_base_statuses SET `$col` = REPLACE(`$col`, ',', '.') WHERE `$col` LIKE '%,%'"); - - // 2. Boş stringleri NULL yap - DB::statement("UPDATE test_pack_base_statuses SET `$col` = NULL WHERE `$col` = ''"); - } - } - - Schema::table('test_pack_base_statuses', function (Blueprint $table) use ($columns) { - foreach ($columns as $col) { - if (Schema::hasColumn('test_pack_base_statuses', $col)) { - $table->decimal($col, 50, 2)->nullable()->change(); - } - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - $columns = [ - 'ferrit_backlog', - 'iso_qty', - 'mt_backlog', - 'mt_pt_backlog', - 'mt_pt_done', - 'pipe_progress', - 'pmi_backlog', - 'pt_backlog', - 'punch_a_quantity', - 'punch_b_quantity', - 'punch_c_quantity', - 'pwht_backlog', - 'remaining_wdi', - 'repair_completed', - 'repair_qty', - 'repair_remaining', - 'rt_backlog', - 'rt_ut_backlog', - 'rt_ut_done', - 'support_progress', - 'support_remaining', - 'test_pressure_mpa', - 'total_complated_wdi', - 'total_iso_quantity', - 'total_joint_qty', - 'total_wdi', - 'total_welded_joint_qty', - 'ut_backlog', - 'vt_backlog', - 'welded_support_quantity', - ]; - - Schema::table('test_pack_base_statuses', function (Blueprint $table) use ($columns) { - foreach ($columns as $col) { - if (Schema::hasColumn('test_pack_base_statuses', $col)) { - $table->string($col)->nullable()->change(); - } - } - }); - } -} diff --git a/database/migrations/2025_12_11_222306_add_download_to_document_procedures_table.php b/database/migrations/2025_12_11_222306_add_download_to_document_procedures_table.php deleted file mode 100644 index b005449..0000000 --- a/database/migrations/2025_12_11_222306_add_download_to_document_procedures_table.php +++ /dev/null @@ -1,41 +0,0 @@ -string('download')->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('document_procedures')) { - Schema::table('document_procedures', function (Blueprint $table) { - if (Schema::hasColumn('document_procedures', 'download')) { - $table->dropColumn('download'); - } - }); - } - } -}; - diff --git a/database/migrations/2025_12_11_225229_add_discipline_to_document_revisions_table.php b/database/migrations/2025_12_11_225229_add_discipline_to_document_revisions_table.php deleted file mode 100644 index 9f126e2..0000000 --- a/database/migrations/2025_12_11_225229_add_discipline_to_document_revisions_table.php +++ /dev/null @@ -1,32 +0,0 @@ -string('discipline')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('document_revisions', function (Blueprint $table) { - $table->dropColumn('discipline'); - }); - } -} diff --git a/database/migrations/2025_12_12_224913_fix_support_columns_null.php b/database/migrations/2025_12_12_224913_fix_support_columns_null.php deleted file mode 100644 index bcc36f1..0000000 --- a/database/migrations/2025_12_12_224913_fix_support_columns_null.php +++ /dev/null @@ -1,40 +0,0 @@ -decimal('unit_weight', 8, 2)->nullable()->change(); - $table->decimal('thickness', 8, 2)->nullable()->change(); - $table->string('zone')->nullable()->change(); - $table->string('materials')->nullable()->change(); - $table->decimal('total_weight', 8, 2)->nullable()->change(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('supports', function (Blueprint $table) { - $table->decimal('unit_weight', 8, 2)->nullable(false)->change(); - $table->decimal('thickness', 8, 2)->nullable(false)->change(); - $table->string('zone')->nullable(false)->change(); - $table->string('materials')->nullable(false)->change(); - $table->decimal('total_weight', 8, 2)->nullable(false)->change(); - }); - } -} diff --git a/database/migrations/2025_12_13_200000_create_surface_area_constants_table.php b/database/migrations/2025_12_13_200000_create_surface_area_constants_table.php deleted file mode 100644 index 973e391..0000000 --- a/database/migrations/2025_12_13_200000_create_surface_area_constants_table.php +++ /dev/null @@ -1,47 +0,0 @@ -id(); - $table->string('standard_type')->nullable()->comment('ASME, GOST, EN'); - $table->string('general_name')->nullable()->comment('Pipe, Fittings'); - $table->string('element_type_en')->nullable()->comment('Pipeline Elements (EN)'); - $table->string('element_type_ru')->nullable()->comment('Элементы трубопровода (RU)'); - $table->string('manufacturing_standard')->nullable()->comment('Ürün Standardı - B36.10M, B16.9, etc.'); - $table->string('diameter_inch')->nullable()->comment('Çap (inç)'); - $table->decimal('diameter_mm', 10, 2)->nullable()->comment('Çap (mm)'); - $table->decimal('surface_area_m2', 10, 6)->nullable()->comment('Yüzey Alanı (m²)'); - $table->boolean('is_active')->default(true); - $table->timestamps(); - - // Indexes for faster lookups - $table->index('standard_type'); - $table->index('general_name'); - $table->index('element_type_en'); - $table->index('diameter_mm'); - $table->index('is_active'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('surface_area_constants'); - } -} diff --git a/database/migrations/2025_12_17_085505_add_download_to_itps_table.php b/database/migrations/2025_12_17_085505_add_download_to_itps_table.php deleted file mode 100644 index 54581f1..0000000 --- a/database/migrations/2025_12_17_085505_add_download_to_itps_table.php +++ /dev/null @@ -1,28 +0,0 @@ -string('download')->nullable(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('i_t_p_s', function (Blueprint $table) { - $table->dropColumn('download'); - }); - } -}; diff --git a/database/migrations/2025_12_17_092140_add_expires_at_to_personal_access_tokens_table.php b/database/migrations/2025_12_17_092140_add_expires_at_to_personal_access_tokens_table.php deleted file mode 100644 index 0a82951..0000000 --- a/database/migrations/2025_12_17_092140_add_expires_at_to_personal_access_tokens_table.php +++ /dev/null @@ -1,32 +0,0 @@ -timestamp('expires_at')->nullable()->after('last_used_at'); - } - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('personal_access_tokens', function (Blueprint $table) { - if (Schema::hasColumn('personal_access_tokens', 'expires_at')) { - $table->dropColumn('expires_at'); - } - }); - } -}; diff --git a/database/migrations/2025_12_18_000000_create_calibration_logs_table.php b/database/migrations/2025_12_18_000000_create_calibration_logs_table.php deleted file mode 100644 index 2fb041d..0000000 --- a/database/migrations/2025_12_18_000000_create_calibration_logs_table.php +++ /dev/null @@ -1,58 +0,0 @@ -id(); - $table->timestamps(); - $table->string('certification_document')->nullable(); - $table->string('user_guide')->nullable(); - $table->string('instrument')->nullable(); - $table->string('discipline')->nullable(); - $table->text('description')->nullable(); - $table->integer('item_no')->nullable(); - $table->string('equipment_name')->nullable(); - $table->string('manufacturer')->nullable(); - $table->string('model_no')->nullable(); - $table->string('serial_no')->nullable(); - $table->integer('quantity')->nullable(); - $table->string('passport_certificate_no')->nullable(); - $table->string('place_of_calibration_verification')->nullable(); - $table->string('calibrated_by')->nullable(); - $table->integer('calibration_frequency')->nullable(); - $table->string('calibration_certificate_no')->nullable(); - $table->date('calibration_date')->nullable(); - $table->date('calibration_due_date')->nullable(); - $table->string('deviation_ratio')->nullable(); - $table->string('status')->nullable(); - $table->text('remarks')->nullable(); - $table->text('comments')->nullable(); - $table->string('download')->nullable(); - $table->unsignedBigInteger('source_id')->nullable(); - $table->string('source_module')->nullable(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('calibration_logs'); - } -} - - diff --git a/database/migrations/2026_01_07_000000_add_calibration_certificate_to_calibration_logs_table.php b/database/migrations/2026_01_07_000000_add_calibration_certificate_to_calibration_logs_table.php deleted file mode 100644 index b9fec55..0000000 --- a/database/migrations/2026_01_07_000000_add_calibration_certificate_to_calibration_logs_table.php +++ /dev/null @@ -1,32 +0,0 @@ -string('calibration_certificate')->nullable()->after('calibration_frequency'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('calibration_logs', function (Blueprint $table) { - $table->dropColumn('calibration_certificate'); - }); - } -} diff --git a/database/migrations/2026_01_09_111344_create_inspection_history_table.php b/database/migrations/2026_01_09_111344_create_inspection_history_table.php deleted file mode 100644 index 97cb731..0000000 --- a/database/migrations/2026_01_09_111344_create_inspection_history_table.php +++ /dev/null @@ -1,40 +0,0 @@ -id(); - $table->string('table_name')->comment('Table name that contains the record'); - $table->unsignedBigInteger('record_id')->comment('Record ID from the related table'); - $table->string('column_name')->nullable()->comment('Column name (for future use)'); - $table->text('comment')->comment('User comment'); - $table->string('file_path')->nullable()->comment('Uploaded photo file path'); - $table->string('file_name')->nullable()->comment('Original file name'); - $table->unsignedBigInteger('file_size')->nullable()->comment('File size in bytes'); - $table->unsignedBigInteger('user_id')->comment('User who created the inspection history'); - $table->string('ip_address')->nullable()->comment('IP address of the user'); - $table->timestamps(); - - // Indexes for better performance - $table->index(['table_name', 'record_id']); - $table->index('user_id'); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('inspection_history'); - } -}; diff --git a/database/migrations/2026_01_12_000000_add_synced_to_calibration_to_welding_equipment.php b/database/migrations/2026_01_12_000000_add_synced_to_calibration_to_welding_equipment.php deleted file mode 100644 index b911277..0000000 --- a/database/migrations/2026_01_12_000000_add_synced_to_calibration_to_welding_equipment.php +++ /dev/null @@ -1,32 +0,0 @@ -boolean('synced_to_calibration')->default(false)->after('remarks'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('welding_equipment', function (Blueprint $table) { - $table->dropColumn('synced_to_calibration'); - }); - } -} diff --git a/database/migrations/2026_01_14_104800_add_main_material_to_materials_table.php b/database/migrations/2026_01_14_104800_add_main_material_to_materials_table.php deleted file mode 100644 index 17652e9..0000000 --- a/database/migrations/2026_01_14_104800_add_main_material_to_materials_table.php +++ /dev/null @@ -1,32 +0,0 @@ -string('main_material')->nullable()->after('product_name'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('materials', function (Blueprint $table) { - $table->dropColumn('main_material'); - }); - } -} diff --git a/database/migrations/2026_01_16_213409_add_icm_akt_date_and_remarks_to_naks_consumables_table.php b/database/migrations/2026_01_16_213409_add_icm_akt_date_and_remarks_to_naks_consumables_table.php deleted file mode 100644 index 51fec34..0000000 --- a/database/migrations/2026_01_16_213409_add_icm_akt_date_and_remarks_to_naks_consumables_table.php +++ /dev/null @@ -1,29 +0,0 @@ -date('icm_akt_date')->nullable()->after('icm_akt_no'); - $table->text('remarks')->nullable()->after('icm_akt_date'); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('naks_consumables', function (Blueprint $table) { - $table->dropColumn(['icm_akt_date', 'remarks']); - }); - } -}; diff --git a/database/migrations/2026_01_19_093221_add_icm_akt_no_download_to_naks_consumables_table.php b/database/migrations/2026_01_19_093221_add_icm_akt_no_download_to_naks_consumables_table.php deleted file mode 100644 index df176ba..0000000 --- a/database/migrations/2026_01_19_093221_add_icm_akt_no_download_to_naks_consumables_table.php +++ /dev/null @@ -1,28 +0,0 @@ -string('icm_akt_no_download')->nullable()->after('icm_akt_no'); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('naks_consumables', function (Blueprint $table) { - $table->dropColumn('icm_akt_no_download'); - }); - } -}; diff --git a/database/migrations/2026_01_21_221949_add_surface_area_items_to_construction_paint_logs.php b/database/migrations/2026_01_21_221949_add_surface_area_items_to_construction_paint_logs.php deleted file mode 100644 index f2c0d23..0000000 --- a/database/migrations/2026_01_21_221949_add_surface_area_items_to_construction_paint_logs.php +++ /dev/null @@ -1,32 +0,0 @@ -json('surface_area_items')->nullable()->after('total_m2'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('construction_paint_logs', function (Blueprint $table) { - $table->dropColumn('surface_area_items'); - }); - } -} diff --git a/database/migrations/2026_01_22_212900_add_source_project_to_naks_tables.php b/database/migrations/2026_01_22_212900_add_source_project_to_naks_tables.php deleted file mode 100644 index 0d64e9d..0000000 --- a/database/migrations/2026_01_22_212900_add_source_project_to_naks_tables.php +++ /dev/null @@ -1,48 +0,0 @@ -tables as $table) { - if (Schema::hasTable($table) && !Schema::hasColumn($table, 'source_project')) { - Schema::table($table, function (Blueprint $table) { - $table->string('source_project')->nullable()->after('id') - ->comment('Project name where this record was synced from'); - }); - } - } - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - foreach ($this->tables as $table) { - if (Schema::hasTable($table) && Schema::hasColumn($table, 'source_project')) { - Schema::table($table, function (Blueprint $table) { - $table->dropColumn('source_project'); - }); - } - } - } -}; diff --git a/database/migrations/2026_01_27_155927_add_total_line_mm_to_construction_paint_logs_table.php b/database/migrations/2026_01_27_155927_add_total_line_mm_to_construction_paint_logs_table.php deleted file mode 100644 index 1e65c2f..0000000 --- a/database/migrations/2026_01_27_155927_add_total_line_mm_to_construction_paint_logs_table.php +++ /dev/null @@ -1,35 +0,0 @@ -float('total_line_mm')->nullable()->after('cutting_mm'); - } else { - // If column exists but is integer, change it to float - $table->float('total_line_mm')->nullable()->change(); - } - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('construction_paint_logs', function (Blueprint $table) { - // Optionally drop the column if needed - // $table->dropColumn('total_line_mm'); - }); - } -}; diff --git a/database/migrations/2026_02_13_211743_add_id_status_to_handovers_table.php b/database/migrations/2026_02_13_211743_add_id_status_to_handovers_table.php deleted file mode 100644 index 6eca83c..0000000 --- a/database/migrations/2026_02_13_211743_add_id_status_to_handovers_table.php +++ /dev/null @@ -1,30 +0,0 @@ -string('id_status')->nullable()->after('final_status'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('handovers', function (Blueprint $table) { - $table->dropColumn('id_status'); - }); - } -}; diff --git a/database/migrations/2026_02_17_100456_add_is_mobile_to_types_table.php b/database/migrations/2026_02_17_100456_add_is_mobile_to_types_table.php deleted file mode 100644 index 17feb71..0000000 --- a/database/migrations/2026_02_17_100456_add_is_mobile_to_types_table.php +++ /dev/null @@ -1,28 +0,0 @@ -boolean('is_mobile')->default(false)->after('enabled'); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('types', function (Blueprint $table) { - $table->dropColumn('is_mobile'); - }); - } -}; diff --git a/database/migrations/2026_02_24_155402_change_responsible_reinstatement_in_test_packages_table.php b/database/migrations/2026_02_24_155402_change_responsible_reinstatement_in_test_packages_table.php deleted file mode 100644 index b4e2009..0000000 --- a/database/migrations/2026_02_24_155402_change_responsible_reinstatement_in_test_packages_table.php +++ /dev/null @@ -1,28 +0,0 @@ -string('responsible_reinstatement', 100)->nullable()->change(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('test_packages', function (Blueprint $table) { - $table->date('responsible_reinstatement')->nullable()->change(); - }); - } -}; diff --git a/database/migrations/2026_03_13_101939_create_joint_release_view.php b/database/migrations/2026_03_13_101939_create_joint_release_view.php deleted file mode 100644 index f250d69..0000000 --- a/database/migrations/2026_03_13_101939_create_joint_release_view.php +++ /dev/null @@ -1,46 +0,0 @@ -pluck('Field')->toArray(); - - $wlParts = array_map(fn($c) => "`$c`", $wlCols); - $wlParts[] = 'NULL AS `deleted_date`'; - $wlParts[] = 'NULL AS `comment`'; - - $djParts = array_map(fn($c) => $c === 'id' - ? '(CAST(`id` AS SIGNED) * -1) AS `id`' - : "`$c`", $wlCols); - $djParts[] = '`deleted_date`'; - $djParts[] = '`comment`'; - - // is_welded filtresi: sadece welded joint tiplerini göster - $weldedFilter = "SELECT `short_name_en` FROM `joint_types` WHERE `is_welded` = 1"; - - $sql = "CREATE OR REPLACE VIEW `joint_release_view` AS " - . "SELECT " . implode(', ', $wlParts) . " FROM `weld_logs` " - . "WHERE `weld_logs`.`type_of_welds` IN ({$weldedFilter}) " - . "UNION ALL " - . "SELECT " . implode(', ', $djParts) . " FROM `deleted_joints` " - . "WHERE `welding_date` IS NOT NULL AND `welding_date` > '1000-01-01' " - . "AND `deleted_joints`.`type_of_welds` IN ({$weldedFilter}) " - . "AND NOT EXISTS (" - . "SELECT 1 FROM `weld_logs` " - . "WHERE `weld_logs`.`iso_number` = `deleted_joints`.`iso_number` " - . "AND `weld_logs`.`no_of_the_joint_as_per_as_built_survey` = `deleted_joints`.`no_of_the_joint_as_per_as_built_survey`" - . ")"; - - DB::statement($sql); - } - - public function down(): void - { - DB::statement('DROP VIEW IF EXISTS `joint_release_view`'); - } -}; diff --git a/database/migrations/2026_03_22_152636_create_joint_releases_table.php b/database/migrations/2026_03_22_152636_create_joint_releases_table.php deleted file mode 100644 index a24162d..0000000 --- a/database/migrations/2026_03_22_152636_create_joint_releases_table.php +++ /dev/null @@ -1,193 +0,0 @@ -id(); - $table->unsignedBigInteger('weld_log_id')->nullable()->index(); - $table->unsignedBigInteger('deleted_joint_id')->nullable()->index(); - - $table->string('joint_release_rfi_no', 100)->nullable(); - $table->date('joint_release_rfi_date')->nullable(); - $table->string('joint_release_document_no', 100)->nullable(); - $table->date('joint_release_document_date')->nullable(); - - $table->string('rt_release_rfi_no', 100)->nullable(); - $table->date('rt_release_rfi_date')->nullable(); - - $table->string('ut_release_rfi_no', 100)->nullable(); - $table->date('ut_release_rfi_date')->nullable(); - - $table->string('pt_release_rfi_no', 100)->nullable(); - $table->date('pt_release_rfi_date')->nullable(); - - $table->string('mt_release_rfi_no', 100)->nullable(); - $table->date('mt_release_rfi_date')->nullable(); - - $table->string('pmi_release_rfi_no', 100)->nullable(); - $table->date('pmi_release_rfi_date')->nullable(); - - $table->string('vt_release_rfi_no', 100)->nullable(); - $table->date('vt_release_rfi_date')->nullable(); - - $table->string('pwht_release_rfi_no', 100)->nullable(); - $table->date('pwht_release_rfi_date')->nullable(); - - $table->string('ht_release_rfi_no', 100)->nullable(); - $table->date('ht_release_rfi_date')->nullable(); - - $table->string('ferrite_release_rfi_no', 100)->nullable(); - $table->date('ferrite_release_rfi_date')->nullable(); - - $table->timestamps(); - - // Ensure 1-to-1 mapping - $table->unique('weld_log_id'); - $table->unique('deleted_joint_id'); - }); - - // Migrate existing data where at least one field is not null - $conds = array_map(fn($f) => "$f IS NOT NULL", $this->releaseFields); - $whereCondition = implode(' OR ', $conds); - - $fieldsStr = implode(', ', $this->releaseFields); - - // Migrate from weld_logs - if (Schema::hasTable('weld_logs')) { - DB::statement(" - INSERT INTO joint_releases ( - weld_log_id, $fieldsStr, created_at, updated_at - ) - SELECT - id, $fieldsStr, NOW(), NOW() - FROM weld_logs - WHERE $whereCondition - "); - } - - // Migrate from deleted_joints - if (Schema::hasTable('deleted_joints')) { - DB::statement(" - INSERT INTO joint_releases ( - deleted_joint_id, $fieldsStr, created_at, updated_at - ) - SELECT - id, $fieldsStr, NOW(), NOW() - FROM deleted_joints - WHERE $whereCondition - "); - } - - // Overwrite the view to use joint_releases - $this->updateJointReleaseView(); - } - - private function updateJointReleaseView() { - if (!Schema::hasTable('weld_logs')) return; - - $wlCols = collect(DB::select('SHOW COLUMNS FROM weld_logs'))->pluck('Field')->toArray(); - - // weld_logs mapping - $wlParts = []; - foreach ($wlCols as $c) { - if (in_array($c, $this->releaseFields)) { - $wlParts[] = "`jr`.`$c` AS `$c`"; - } else { - if ($c === 'id') { - $wlParts[] = "`weld_logs`.`id` AS `id`"; - } else { - $wlParts[] = "`weld_logs`.`$c` AS `$c`"; - } - } - } - $wlParts[] = 'NULL AS `deleted_date`'; - $wlParts[] = 'NULL AS `comment`'; - - // deleted_joints mapping - $djParts = []; - foreach ($wlCols as $c) { - if (in_array($c, $this->releaseFields)) { - $djParts[] = "`jr`.`$c` AS `$c`"; - } else { - if ($c === 'id') { - $djParts[] = "(CAST(`deleted_joints`.`id` AS SIGNED) * -1) AS `id`"; - } else { - $djParts[] = "`deleted_joints`.`$c` AS `$c`"; - } - } - } - $djParts[] = "`deleted_joints`.`deleted_date`"; - $djParts[] = "`deleted_joints`.`comment`"; - - $weldedFilter = "SELECT `short_name_en` FROM `joint_types` WHERE `is_welded` = 1"; - - $sql = "CREATE OR REPLACE VIEW `joint_release_view` AS " - . "SELECT " . implode(', ', $wlParts) . " FROM `weld_logs` " - . "LEFT JOIN `joint_releases` jr ON `weld_logs`.`id` = `jr`.`weld_log_id` " - . "WHERE `weld_logs`.`type_of_welds` IN ({$weldedFilter}) " - . "UNION ALL " - . "SELECT " . implode(', ', $djParts) . " FROM `deleted_joints` " - . "LEFT JOIN `joint_releases` jr ON `deleted_joints`.`id` = `jr`.`deleted_joint_id` " - . "WHERE `deleted_joints`.`welding_date` IS NOT NULL AND `deleted_joints`.`welding_date` > '1000-01-01' " - . "AND `deleted_joints`.`type_of_welds` IN ({$weldedFilter}) " - . "AND NOT EXISTS (" - . "SELECT 1 FROM `weld_logs` " - . "WHERE `weld_logs`.`iso_number` = `deleted_joints`.`iso_number` " - . "AND `weld_logs`.`no_of_the_joint_as_per_as_built_survey` = `deleted_joints`.`no_of_the_joint_as_per_as_built_survey`" - . ")"; - - DB::statement($sql); - } - - public function down(): void - { - Schema::dropIfExists('joint_releases'); - - // Revert view to old structure using underlying attributes - if (!Schema::hasTable('weld_logs')) return; - - $wlCols = collect(DB::select('SHOW COLUMNS FROM weld_logs'))->pluck('Field')->toArray(); - $wlParts = array_map(fn($c) => "`$c`", $wlCols); - $wlParts[] = 'NULL AS `deleted_date`'; - $wlParts[] = 'NULL AS `comment`'; - - $djParts = array_map(fn($c) => $c === 'id' - ? '(CAST(`id` AS SIGNED) * -1) AS `id`' - : "`$c`", $wlCols); - $djParts[] = '`deleted_date`'; - $djParts[] = '`comment`'; - - $weldedFilter = "SELECT `short_name_en` FROM `joint_types` WHERE `is_welded` = 1"; - - $sql = "CREATE OR REPLACE VIEW `joint_release_view` AS " - . "SELECT " . implode(', ', $wlParts) . " FROM `weld_logs` " - . "WHERE `weld_logs`.`type_of_welds` IN ({$weldedFilter}) " - . "UNION ALL " - . "SELECT " . implode(', ', $djParts) . " FROM `deleted_joints` " - . "WHERE `welding_date` IS NOT NULL AND `welding_date` > '1000-01-01' " - . "AND `deleted_joints`.`type_of_welds` IN ({$weldedFilter}) " - . "AND NOT EXISTS (" - . "SELECT 1 FROM `weld_logs` " - . "WHERE `weld_logs`.`iso_number` = `deleted_joints`.`iso_number` " - . "AND `weld_logs`.`no_of_the_joint_as_per_as_built_survey` = `deleted_joints`.`no_of_the_joint_as_per_as_built_survey`" - . ")"; - - DB::statement($sql); - } -}; diff --git a/database/migrations/2026_03_25_135742_create_job_batches_table.php b/database/migrations/2026_03_25_135742_create_job_batches_table.php deleted file mode 100644 index 50e38c2..0000000 --- a/database/migrations/2026_03_25_135742_create_job_batches_table.php +++ /dev/null @@ -1,35 +0,0 @@ -string('id')->primary(); - $table->string('name'); - $table->integer('total_jobs'); - $table->integer('pending_jobs'); - $table->integer('failed_jobs'); - $table->longText('failed_job_ids'); - $table->mediumText('options')->nullable(); - $table->integer('cancelled_at')->nullable(); - $table->integer('created_at'); - $table->integer('finished_at')->nullable(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('job_batches'); - } -}; diff --git a/database/migrations/2026_04_01_143658_add_index_to_document_revisions_table.php b/database/migrations/2026_04_01_143658_add_index_to_document_revisions_table.php deleted file mode 100644 index 2665212..0000000 --- a/database/migrations/2026_04_01_143658_add_index_to_document_revisions_table.php +++ /dev/null @@ -1,34 +0,0 @@ -getDoctrineSchemaManager()->listTableIndexes('document_revisions'); - if (!array_key_exists('idx_dr_line_number', $indexes)) { - Schema::table('document_revisions', function (Blueprint $table) { - $table->index('line_number', 'idx_dr_line_number'); - }); - } - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - $indexes = Schema::getConnection()->getDoctrineSchemaManager()->listTableIndexes('document_revisions'); - if (array_key_exists('idx_dr_line_number', $indexes)) { - Schema::table('document_revisions', function (Blueprint $table) { - $table->dropIndex('idx_dr_line_number'); - }); - } - } -}; diff --git a/database/migrations/2026_04_20_214410_add_file_columns_to_rfis_table.php b/database/migrations/2026_04_20_214410_add_file_columns_to_rfis_table.php deleted file mode 100644 index 83b9369..0000000 --- a/database/migrations/2026_04_20_214410_add_file_columns_to_rfis_table.php +++ /dev/null @@ -1,29 +0,0 @@ -string('created_rfi')->nullable(); - $table->string('signed_rfi')->nullable(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('r_f_i_s', function (Blueprint $table) { - $table->dropColumn(['created_rfi', 'signed_rfi']); - }); - } -}; diff --git a/database/seeders/BeveelingSeeder.php b/database/seeders/BeveelingSeeder.php deleted file mode 100644 index 7df7023..0000000 --- a/database/seeders/BeveelingSeeder.php +++ /dev/null @@ -1,18 +0,0 @@ -create(); - - // Seed document manager permissions - $this->call([ - DocumentManagerPermissionSeeder::class, - MechanicalJointTypesSeeder::class, - ]); - } -} diff --git a/database/seeders/DefectSeeder.php b/database/seeders/DefectSeeder.php deleted file mode 100644 index 55ad5d7..0000000 --- a/database/seeders/DefectSeeder.php +++ /dev/null @@ -1,18 +0,0 @@ -getAllFolders(); - - // Define user levels and their permission patterns - $userLevels = [ - 'Admin' => [ - 'pattern' => 'full_access', - 'description' => 'Full access to all folders and subfolders' - ], - 'Manager (PTO)' => [ - 'pattern' => 'pto_manager', - 'description' => 'PTO folder full access, others read-only' - ], - 'Quality Staff' => [ - 'pattern' => 'qa_staff', - 'description' => 'QA folder full access, others read-only' - ], - 'QC Staff' => [ - 'pattern' => 'qc_staff', - 'description' => 'Welding Database full access, others read-only' - ], - 'NDT Staff' => [ - 'pattern' => 'ndt_staff', - 'description' => 'NDT Release Check List full access, others read-only' - ], - 'Welding Staff' => [ - 'pattern' => 'welding_staff', - 'description' => 'Drawings full access, others read-only' - ], - 'Test Pack Engineer' => [ - 'pattern' => 'test_pack_engineer', - 'description' => 'Test Pack full access, others read-only' - ], - 'Welding Engineer' => [ - 'pattern' => 'welding_engineer', - 'description' => 'Welding Database full access, others read-only' - ], - 'Field Staff' => [ - 'pattern' => 'field_staff', - 'description' => 'Limited read access to most folders' - ], - ]; - - // Generate permissions for each user level - foreach ($userLevels as $userLevel => $config) { - $permissions = $this->generatePermissions($userLevel, $config['pattern'], $allFolders); - - foreach ($permissions as $folderPath => $permissionTypes) { - foreach ($permissionTypes as $permissionType) { - DocumentManagerPermission::create([ - 'user_level' => $userLevel, - 'folder_path' => $folderPath, - 'permission_type' => $permissionType, - 'is_allowed' => true, - ]); - } - } - - $this->command->info("Generated permissions for {$userLevel}: {$config['description']}"); - } - - $this->command->info('Document Manager Permissions seeded successfully!'); - $this->command->info('Total permissions created: ' . DocumentManagerPermission::count()); - $this->command->info('Total folders processed: ' . count($allFolders)); - } - - /** - * Get all folders dynamically from the documents directory using glob() - */ - private function getAllFolders(): array - { - $documentsPath = storage_path('documents'); - $allFolders = []; - - if (is_dir($documentsPath)) { - // Get main folders using glob() - much simpler and faster - $mainFolders = glob($documentsPath . '/*', GLOB_ONLYDIR); - - foreach ($mainFolders as $folder) { - $folderName = basename($folder); - $allFolders[] = $folderName; - - // Check for subfolders (one level deep) using glob() - $subFolders = glob($folder . '/*', GLOB_ONLYDIR); - foreach ($subFolders as $subFolder) { - $subFolderName = basename($subFolder); - $allFolders[] = $folderName . '/' . $subFolderName; - } - } - } - - // Sort folders alphabetically - sort($allFolders); - - return $allFolders; - } - - /** - * Generate permissions based on user level pattern - */ - private function generatePermissions(string $userLevel, string $pattern, array $allFolders): array - { - $permissions = []; - - switch ($pattern) { - case 'full_access': - // Admin gets full access to all folders - foreach ($allFolders as $folder) { - $permissions[$folder] = ['read', 'write', 'edit']; - } - break; - - case 'pto_manager': - // PTO Manager gets full access to PTO folders, read-only to others - foreach ($allFolders as $folder) { - if (strpos($folder, '005_PTO') === 0) { - $permissions[$folder] = ['read', 'write', 'edit']; - } else { - $permissions[$folder] = ['read']; - } - } - break; - - case 'qa_staff': - // Quality Staff gets full access to QA folders, read-only to others - foreach ($allFolders as $folder) { - if (strpos($folder, '004_QA') === 0) { - $permissions[$folder] = ['read', 'write', 'edit']; - } else { - $permissions[$folder] = ['read']; - } - } - break; - - case 'qc_staff': - case 'welding_engineer': - // QC Staff and Welding Engineer get full access to Welding Database, read-only to others - foreach ($allFolders as $folder) { - if (strpos($folder, '003_Welding_Database') === 0) { - $permissions[$folder] = ['read', 'write', 'edit']; - } else { - $permissions[$folder] = ['read']; - } - } - break; - - case 'ndt_staff': - // NDT Staff gets full access to NDT Release Check List, read-only to others - foreach ($allFolders as $folder) { - if (strpos($folder, '0010_Spool_NDT_Release_Check_List') === 0) { - $permissions[$folder] = ['read', 'write', 'edit']; - } else { - $permissions[$folder] = ['read']; - } - } - break; - - case 'welding_staff': - // Welding Staff gets full access to Drawings, read-only to others - foreach ($allFolders as $folder) { - if (strpos($folder, '001_Drawings') === 0) { - $permissions[$folder] = ['read', 'write', 'edit']; - } else { - $permissions[$folder] = ['read']; - } - } - break; - - case 'test_pack_engineer': - // Test Pack Engineer gets full access to Test Pack, read-only to others - foreach ($allFolders as $folder) { - if (strpos($folder, '008_Test_Pack') === 0) { - $permissions[$folder] = ['read', 'write', 'edit']; - } else { - $permissions[$folder] = ['read']; - } - } - break; - - case 'field_staff': - // Field Staff gets limited read access to most folders - foreach ($allFolders as $folder) { - // Exclude system folders and sensitive folders - if (in_array($folder, ['.tmb', 'cache', 'framework', 'logs', 'test'])) { - continue; // No access to system folders - } - - // Read-only access to most folders - $permissions[$folder] = ['read']; - } - break; - - default: - // Default: read-only access to all folders - foreach ($allFolders as $folder) { - $permissions[$folder] = ['read']; - } - } - - return $permissions; - } -} \ No newline at end of file diff --git a/database/seeders/DocumentProcedureSeeder.php b/database/seeders/DocumentProcedureSeeder.php deleted file mode 100644 index f6adc3a..0000000 --- a/database/seeders/DocumentProcedureSeeder.php +++ /dev/null @@ -1,18 +0,0 @@ - 'Flange Joint', - 'short_name_en' => 'FJ', - ], - [ - 'title' => 'Female Threaded Joint', - 'short_name_en' => 'FTDH', - ], - [ - 'title' => 'Male Threaded Joint', - 'short_name_en' => 'MTHD', - ], - [ - 'title' => 'Bolted Joint', - 'short_name_en' => 'BJ', - ], - ]; - - foreach ($types as $type) { - DB::table('joint_types')->updateOrInsert( - ['short_name_en' => $type['short_name_en']], - array_merge($type, [ - 'is_welded' => 0, - 'has_ndt' => 0, - 'is_mechanical' => 1, - ]) - ); - } - } -} - diff --git a/database/seeders/NCRLogSeeder.php b/database/seeders/NCRLogSeeder.php deleted file mode 100644 index 6276357..0000000 --- a/database/seeders/NCRLogSeeder.php +++ /dev/null @@ -1,18 +0,0 @@ -where('slug', 'naks-pool')->exists(); - - if (!$parentExists) { - DB::table('types')->insert([ - 'title' => 'NAKS Pool', - 'slug' => 'naks-pool', - 'kid' => null, - 'icon' => '11.3 Naks Welder', - 'enabled' => true, - 'read' => '1,24,2,3,7,8,12,14,16,23', - 's' => 100, - 'created_at' => now(), - 'updated_at' => now(), - ]); - $this->command->info('✅ Parent menu added: NAKS Pool'); - } else { - $this->command->info('ℹ️ Parent menu already exists: NAKS Pool'); - } - - // 2. Child menu: Dashboard (only sub-menu for now) - $dashboardExists = DB::table('types')->where('slug', 'naks-pool-dashboard')->exists(); - - if (!$dashboardExists) { - DB::table('types')->insert([ - 'title' => 'Dashboard', - 'slug' => 'naks-pool-dashboard', - 'kid' => 'naks-pool', - 'icon' => 'dashboard', - 'enabled' => true, - 'read' => '1,24,2,3,7,8,12,14,16,23', - 's' => 1, - 'created_at' => now(), - 'updated_at' => now(), - ]); - $this->command->info('✅ Child menu added: Dashboard'); - } else { - $this->command->info('ℹ️ Child menu already exists: Dashboard'); - } - - // NOTE: Other menus (Welder, Technology, Consumables, Equipment) - // are excluded from this version. They will be added in future PRs. - - $this->command->info(''); - $this->command->info('🎉 NAKS Pool menu seeder completed! (Dashboard only)'); - $this->command->info(''); - $this->command->info('📋 Note: Run "php artisan cache:clear" after seeding.'); - } -} diff --git a/database/seeders/NaksWelderSeeder.php b/database/seeders/NaksWelderSeeder.php deleted file mode 100644 index cf030a3..0000000 --- a/database/seeders/NaksWelderSeeder.php +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-
P.J.S.C. METRAFAX / ПАО "МЕТАФРАКС"
Ammonia-Urea-Melamine complex from Methanol purge gas.
Комплекс по производству Аммиака-Карбамида-Меламина на основе продувочного газа производства метанола (Этап строительства №2).
Project Nº: Проект №{text.project_no}
-
Doc. No.: Док. №: {text.custom}
GUBAKHA, PERM REGION, RUSSIAN FEDERATION
Российская Федерация, Пермский край, г. Губаха
Sheet No.: Лист №:1of из1































REQUEST FOR INSPECTION (RFI) ЗАПРОС НА ПРОВЕДЕНИЕ ОСВИДЕТЕЛЬСТВОВАНИЯRFI NO.: Запрос №: {text.rfi_no}


Дата:
Date:
{date.preparing_date}Time: Время:
{time.preparing_time} Re-schedule Reasons (If Applicable) /
Причины изменения графика (Если применимо)
METAFRAX For the attention of:
Уполномоченный представитель Метафракс:
Харитонов А.С.Rev.0
CASALE For the attention of:
Уполномоченный представитель КАЗАЛЕ:
QA/QC MANAGER Sayed ABDELMAWLA/
Менджер по качеству Саед Абделмавла
Терезников П.Rev.1
Discipline:
Направление работ:

PIP
Rev.2
Area:
/Зона:
1814Rev.3
Item/s/Tag/s:
№ Позиции:
Conclusion regarding the results of the radiographic test of weld jointsDrawing & Rev:
Шифр и Изм. Рабочей Докум.
Приложение 1 ( logdan working documents)
Activity:
Наименование работ:
Гидравлические/ пневматические испытания. Визуальный осмотр. Hydravlic, pneumatic tests. Visual checkSystem:
Система:
naSubsystem:
Подсистема:
na
Intervention Point
(ITP Clause ref.):

Точки Контроля (№ пп. ППИ)
SUB CONTRACTOR CONST: СУБПОДРЯДЧИК HOLD POINT / ПРИОСТАНОВКА
WITNESS POINT / ОСВИДЕТЕЛЬСТВОВАНИЕ
REVIEW OF DOCUMENTS / ПРОВЕРКА ДОКУМЕНТАЦИИ

SURVEILLANCE / MONITORING / НАБЛЮДЕНИЕ / МОНИТОРИНГ


х














CONTRACTOR CONST:
ПОДРЯДЧИК:
HOLD POINT / ПРИОСТАНОВКА
WITNESS POINT / ОСВИДЕТЕЛЬСТВОВАНИЕ
REVIEW OF DOCUMENTS / ПРОВЕРКА ДОКУМЕНТАЦИИ

SURVEILLANCE / MONITORING / НАБЛЮДЕНИЕ / МОНИТОРИНГ


х














COMPANY (MF):
ЗАКАЗЧИК (МЕТАФРАКС):
HOLD POINT / ПРИОСТАНОВКА
WITNESS POINT / ОСВИДЕТЕЛЬСТВОВАНИЕ
REVIEW OF DOCUMENTS / ПРОВЕРКА ДОКУМЕНТАЦИИ

SURVEILLANCE / MONITORING / НАБЛЮДЕНИЕ / МОНИТОРИНГ

















EPCM CASALE:
EPCM КАЗАЛЕ:
HOLD POINT / ПРИОСТАНОВКА
WITNESS POINT / ОСВИДЕТЕЛЬСТВОВАНИЕ
REVIEW OF DOCUMENTS / ПРОВЕРКА ДОКУМЕНТАЦИИ

SURVEILLANCE / MONITORING / НАБЛЮДЕНИЕ / МОНИТОРИНГ
















































































Please be informed that in accordance with the approved Inspection & Test Plan (ITP) identified as:
Уведомляем Вас, что в соответствии с утверждённым Планом Проверок и Испытаний (ППИ):
PIP-ITP-0000-001
































Stage:
Работы по этапу:
3.4.7of above subject had been completed and is ready for INSPECTION / TESTING at herein mentioned Area.
завершены в полном объёме и подготовлены к проведению ОСВИДЕТЕЛЬСТВОВАНИЯ / ИСПЫТАНИЙ в обозначенной настоящим документом зоне.































































QC Activity:
Вид деятельности в области Контроля качества:
INSPECTION / ОСВИДЕТЕЛЬСТВОВАНИЕ
TESTING /
ИСПЫТАНИЯ

Location / Местоположение :1814

х





















Azamat Sultabaev
+7 952 663 83 57












































Inspection / Testing Schedule:

График проведения Осидетельствования / Испытаний:
DATE / ДАТАTIME / ВРЕМЯ

Inspection / Testing Results
Результаты освидетельствования / испытания

25-02-202215:30 РМ

























Rev. 0 Acc
Принято


Acc. with comments
Принято с замеч.


Rejected Отклонено

Canceled
Отменено

Postponed
Отложено































Rev.1 Acc
Принято


Acc. with comments
Принято с замеч.


Rejected Отклонено

Canceled
Отменено

Postponed
Отложено






























х Daily / Ежедневно


Rev.2 Acc
Принято


Acc. with comments
Принято с замеч.


Rejected Отклонено

Canceled
Отменено

Postponed
Отложено






























Weekly / Еженедельно


Rev.3 Acc
Принято


Acc. with comments
Принято с замеч.


Rejected Отклонено

Canceled
Отменено

Postponed
Отложено











































*Note: Cancelled/Postponed status shall be considered as such when the element/unit to be inspected is not ready for inspection/testing.
*Примечание: Статус Отменено/Отложено применяется в случае, когда предъявляемый элемент/работа не подготовлены к проведению освидетельствования/ испытания.










STAMP+ AREA / МЕСТО ПОДПИСИ и ПЕЧАТИ:ATTENDANCE:
ПРИСУТСТВИЕ:

SUB CONTRACTOR
СУБПОДРЯДЧИК
Received by:
Получено:

Checked by:
Проверено:

BY CONTRACTOR CONST: /
СУБПОДРЯДЧИК, ВЫПОЛН. СМР

Name / ФИО:

Signature / Подпись:

Date / Дата:

Remarks: / Замечания: {test1} {test2}
Name:
ФИО:

Name:
ФИО:

Date (received):
Дата получения:

Date:
Дата:

Time (received):
Время получения:

Time:
Время:

CONTRACTOR / ПОДРЯДЧИКReceived by:
Получено:

Checked by:
Проверено:

BY CONTRACTOR: / ПОДРЯДЧИК

Name / ФИО:

Signature / Подпись:

Date / Дата:

Name:
ФИО:

Name:
ФИО:


Date (received):
Дата:

Date:
Дата:

Time (received):
Время получения:

Time:
Время:

CASALE /
КАЗАЛЕ
Received by:
Получено:

Checked by:
Проверено:

BY EPCM CASALE: / EPCM ИСП. КАЗАЛЕ ПРОЕКТ

Name / ФИО: _________________

Signature / Подпись:

Date / Дата:

Name:
ФИО:

Name:
ФИО:

Date (received):
Дата получения:

Date:
Дата:

Time (received):
Время получения:

Time:
Время:

METAFRAX / МЕТАФРАКСReceived by:
Получено:

Checked by:
Проверено:

BY COMPANY: / ЗАКАЗЧИК

Name / ФИО:

Signature / Подпись:

Date / Дата:

Name:
ФИО:

Name:
ФИО:


Date (received):
Дата получения:

Date:
Дата:

Time (received):
Время получения:

Time:
Время:

Note 1: All Inspection / Testing activities (Hold Points / Witness Points ) requires e.g. 24 hours notice.
Примечание 1: Требуется обеспечить предварительное уведомление уполномоченных представителей за 24 часа, в части касающейся проведения освидетельствований/испытаний (относящихся к точкам контроля Приостановка/Освидетельствование).
Note 2: The time for Inspection /Testing is subject to change. Every endeavor will be made to keep you informed of any changes (N.A. for first issue).
Примечание 2: Время освидетельствования / испытаний может быть изменено. Необходимо предпринять соответствующие действия, в целях надлежащего уведомления сторон об изменениях (неприменимо для первичного освидетельствования).
- - - - - diff --git a/documents/templates/rfi_html_1b47ecb9b18efaa6.jpg b/documents/templates/rfi_html_1b47ecb9b18efaa6.jpg deleted file mode 100644 index b43ecff..0000000 Binary files a/documents/templates/rfi_html_1b47ecb9b18efaa6.jpg and /dev/null differ diff --git a/documents/templates/rfi_html_64142967bd6f52f.png b/documents/templates/rfi_html_64142967bd6f52f.png deleted file mode 100644 index 90bc9ce..0000000 Binary files a/documents/templates/rfi_html_64142967bd6f52f.png and /dev/null differ diff --git a/documents/templates/rfi_html_bef1e82872ea9c7a.png b/documents/templates/rfi_html_bef1e82872ea9c7a.png deleted file mode 100644 index 5fb9249..0000000 Binary files a/documents/templates/rfi_html_bef1e82872ea9c7a.png and /dev/null differ diff --git a/mysql/.rtlcssrc.json b/mysql/.rtlcssrc.json deleted file mode 100644 index e5fe60f..0000000 --- a/mysql/.rtlcssrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "map": true -} diff --git a/mysql/CONTRIBUTING.md b/mysql/CONTRIBUTING.md deleted file mode 100644 index 6c3c5a7..0000000 --- a/mysql/CONTRIBUTING.md +++ /dev/null @@ -1,52 +0,0 @@ -# Contributing to phpMyAdmin - -As an open-source project, phpMyAdmin welcomes contributions of many forms. - -## Bug reporting - -We appreciate your effort to improve phpMyAdmin by submitting a bug report. Before doing so, please check the following things: - -1. Check whether the bug you face **hasn't been already reported**. Duplicate reports take us time, that we could be used to fix other bugs or make improvements. - -2. Specify the phpMyAdmin, server, PHP, MySQL and browser information that may be helpful to fix the problem, especially exact **version numbers**. - -3. If you got some error, please **describe what happened** and add an error message. Reports like "I get an error when I clicked on some link" are useless. - -4. Provide easy steps to reproduce and if possible include your table structure (``SHOW CREATE TABLE `tbl_name`;``); if your problem implies specific data, attach a small export file for sample rows. - -5. **Security problems** should not be reported here. See [our security page](https://www.phpmyadmin.net/security/). - -Thanks for your help! - -Please report [bugs on GitHub][1]. - -[1]: https://github.com/phpmyadmin/phpmyadmin/issues/new - -## Patches submission - -Patches are welcome as [pull requests on GitHub][2]. Please include a -Signed-off-by tag in the commit message (you can do this by passing [`--signoff`][4] parameter to Git). - -When creating the commit on GitHub or using some other tool which does not have -direct support for this, it is the same as adding `Signed-off-by: Your name ` -as the last line of the commit message. - -Example: `Signed-off-by: Jane Smith ` - -Note that by submitting patches with the Signed-off-by tag, you are giving -permission to license the patch as GPLv2-or-later. See [the DCO file][3] for details. - - -[2]: https://github.com/phpmyadmin/phpmyadmin/pulls -[3]: https://github.com/phpmyadmin/phpmyadmin/blob/master/DCO -[4]: https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff - -## Triage issues [![Open Source Helpers](https://www.codetriage.com/phpmyadmin/phpmyadmin/badges/users.svg)](https://www.codetriage.com/phpmyadmin/phpmyadmin) - -You can triage issues, which may include reproducing bug reports or asking for vital information, such as version numbers or reproduction instructions. If you would like to start triaging issues, one easy way to get started is to [subscribe to phpMyAdmin on CodeTriage](https://www.codetriage.com/phpmyadmin/phpmyadmin). - -## More information - -You can find more information on our website: - -https://www.phpmyadmin.net/contribute/ diff --git a/mysql/ChangeLog b/mysql/ChangeLog deleted file mode 100644 index 1a94cf6..0000000 --- a/mysql/ChangeLog +++ /dev/null @@ -1,953 +0,0 @@ -phpMyAdmin - ChangeLog -====================== - -5.2.1 (2023-02-07) -- issue #17522 Fix case where the routes cache file is invalid -- issue #17506 Fix error when configuring 2FA without XMLWriter or Imagick -- issue Fix blank page when some error occurs -- issue #17519 Fix Export pages not working in certain conditions -- issue #17496 Fix error in table operation page when partitions are broken -- issue #17386 Fix system memory and system swap values on Windows -- issue #17517 Fix Database Server panel not getting hidden by ShowServerInfo configuration directive -- issue #17271 Fix database names not showing on Processes tab -- issue #17424 Fix export limit size calculation -- issue #17366 Fix refresh rate popup on Monitor page -- issue #17577 Fix monitor charts size on RTL languages -- issue #17121 Fix password_hash function incorrectly adding single quotes to password before hashing -- issue #17586 Fix statistics not showing for empty databases -- issue #17592 Clicking on the New index link on the sidebar does not throw an error anymore -- issue #17584 It's now possible to browse a database that includes two % in its name -- issue Fix PHP 8.2 deprecated string interpolation syntax -- issue Some languages are now correctly detected from the HTTP header -- issue #17617 Sorting is correctly remembered when $cfg['RememberSorting'] is true -- issue #17593 Table filtering now works when action buttons are on the right side of the row -- issue #17388 Find and Replace using regex now makes a valid query if no matching result set found -- issue #17551 Enum/Set editor will not fail to open when creating a new column -- issue #17659 Fix error when a database group is named tables, views, functions, procedures or events -- issue #17673 Allow empty values to be inserted into columns -- issue #17620 Fix error handling at phpMyAdmin startup for the JS SQL console -- issue Fixed debug queries console broken UI for query time and group count -- issue Fixed escaping of SQL query and errors for the debug console -- issue Fix console toolbar UI when the bookmark feature is disabled and sql debug is enabled -- issue #17543 Fix JS error on saving a new designer page -- issue #17546 Fix JS error after using save as and open page operation on the designer -- issue Fix PHP warning on GIS visualization when there is only one GIS column -- issue #17728 Some select HTML tags will now have the correct UI style -- issue #17734 PHP deprecations will only be shown when in a development environment -- issue #17369 Fix server error when blowfish_secret is not exactly 32 bytes long -- issue #17736 Add utf8mb3 as an alias of utf8 on the charset description page -- issue #16418 Fix FAQ 1.44 about manually removing vendor folders -- issue #12359 Setup page now sends the Content-Security-Policy headers -- issue #17747 The Column Visibility Toggle will not be hidden by other elements -- issue #17756 Edit/Copy/Delete row now works when using GROUP BY -- issue #17248 Support the UUID data type for MariaDB >= 10.7 -- issue #17656 Fix replace/change/set table prefix is not working -- issue Fix monitor page filter queries only filtering the first row -- issue Fix "Link not found!" on foreign columns for tables having no char column to show -- issue #17390 Fix "Create view" modal doesn't show on results and empty results -- issue #17772 Fix wrong styles for add button from central columns -- issue #17389 Fix HTML disappears when exporting settings to browser's storage -- issue #17166 Fix "Warning: #1287 'X' is deprecated [...] Please use ST_X instead." on search page -- issue Use jquery-migrate.min.js (14KB) instead of jquery-migrate.min.js (31KB) -- issue #17842 Use jquery.validate.min.js (24 KB) instead of jquery.validate.js (50 KB) -- issue #17281 Fix links to databases for information_schema.SCHEMATA -- issue #17553 Fix Metro theme unreadable links above navigation tree -- issue #17553 Metro theme UI fixes and improvements -- issue #17553 Fix Metro theme login form with -- issue #16042 Exported gzip file of database has first ~73 kB uncompressed and rest is gzip compressed in Firefox -- issue #17705 Fix inline SQL query edit FK checkbox preventing submit buttons from working -- issue #17777 Fix Uncaught TypeError: Cannot read properties of null (reading 'inline') on datepickers when re-opened -- issue Fix Original theme buttons style and login form width -- issue #17892 Fix closing index edit modal and reopening causes it to fire twice -- issue #17606 Fix preview SQL modal not working inside "Add Index" modal -- issue Fix PHP error on adding new column on create table form -- issue #17482 Default to "Full texts" when running explain statements -- issue Fixed Chrome scrolling performance issue on a textarea of an "export as text" page -- issue #17703 Fix datepicker appears on all fields, not just date -- issue Fix space in the tree line when a DB is expanded -- issue #17340 Fix "New Table" page -> "VIRTUAL" attribute is lost when adding a new column -- issue #17446 Fix missing option for STORED virtual column on MySQL and PERSISTENT is not supported on MySQL -- issue #17446 Lower the check for virtual columns to MySQL>=5.7.6 nothing is supported on 5.7.5 -- issue Fix column names option for CSV Export -- issue #17177 Fix preview SQL when reordering columns doesn't work on move columns -- issue #15887 Fixed DROP TABLE errors ignored on multi table select for DROP -- issue #17944 Fix unable to create a view from tree view button -- issue #17927 Fix key navigation between select inputs (drop an old Firefox workaround) -- issue #17967 Fix missing icon for collapse all button -- issue #18006 Fixed UUID columns can't be moved -- issue Add `spellcheck="false"` to all password fields and some text fields to avoid spell-jacking data leaks -- issue Remove non working "Analyze Explain at MariaDB.org" button (MariaDB stopped this service) -- issue #17229 Add support for Web Authentication API because Chrome removed support for the U2F API -- issue #18019 Fix "Call to a member function fetchAssoc() on bool" with SQL mode ONLY_FULL_GROUP_BY on monitor search logs -- issue Add back UUID and UUID_SHORT to functions on MySQL and all MariaDB versions -- issue #17398 Fix clicking on JSON columns triggers update query -- issue Fix silent JSON parse error on upload progress -- issue #17833 Fix "Add Parameter" button not working for Add Routine Screen -- issue #17365 Fixed "Uncaught Error: regexp too big" on server status variables page -- issue [security] Fix an XSS attack through the drag-and-drop upload feature (PMASA-2023-01) - -5.2.0 (2022-05-10) -- issue #16521 Upgrade Bootstrap to version 5 -- issue #16521 Drop support for Internet Explorer and others -- issue Upgrade to shapefile 3 -- issue #16555 Bump minimum PHP version to 7.2 -- issue Remove the phpseclib dependency -- issue Upgrade Symfony components to version 5.2 -- issue Upgrade to Motranslator 4 -- issue #16005 Improve the performance of the Export logic -- issue #16829 Add "NOT LIKE %...%" operator to Table search -- issue #16845 Fixed some links not passing through url.php -- issue #16382 Remove apc upload progress method (all upload progress code was removed from the PHP extension) -- issue #16974 Replace zxcvbn by zxcvbn-ts -- issue #15691 Disable the last column checkbox in the column list dropdown instead of not allowing un-check -- issue #16138 Ignore the length of integer types and show a warning on MySQL >= 8.0.18 -- issue Add support for the Mroonga engine -- issue Double click column name to directly copy to clipboard -- issue #16425 Add "DELETE FROM" table on table operations page -- issue #16482 Add a select all link for table-specific privileges -- issue #14276 Add support for account locking -- issue #17143 Use composer/ca-bundle to manage the CA cert file -- issue #17143 Require the openssl PHP extension -- issue #17171 Remove the printview.css file from themes -- issue #17203 Redesign the export and the import pages -- issue #16197 Replace the master/slave terminology -- issue #17257 Replace libraries/vendor_config.php constants with an array -- issue Add the Bootstrap theme -- issue #17499 Remove stickyfilljs JavaScript dependency - -5.1.4 (not yet released) -- issue #17287 Fixed sorting the database list with "statistics" enabled on "Data" column creates a PHP type error -- issue #17368 Fix for invalid cache when losing access to config storage after it being cached -- issue #17387 Fix session cookie not respecting the CookieSameSite configuration directive in PHP 7.2 -- issue #16769 Fix create index form accepting too many columns -- issue #16816 Disable editing to system schemas -- issue #16853 Add better error handling when IndexedDB is not working -- issue Fixed incorrect escaping of special MySQL characters on some pages -- issue #17188 Fix GIS visualization with an edited query -- issue #17418 Remove the use of the deprecated `strftime` function in OpenDocument exports -- issue #17111 Enable tabindex recompute on preview button while insert new rows -- issue #17474 Fix invalid SQL generated when PRIMARY/UNIQUE key contains a POINT column -- issue #17484 Fix setup's CSS not loading when the URL doesn't have a trailing slash -- issue #17494 Remove jQuery SVG JavaScript dependency -- issue #17335 Fix column visibility dropdown when the column name is too long -- issue #17445 Fix issue when exporting using Firefox or Safari on PHP 8.1.4 -- issue Update JavaScript dependencies -- issue #17428 Fix case where errors were thrown when browsing a table -- issue #17508 Fix UI issue when user accounts page has the initials navigation bar - -5.1.3 (2022-02-10) -- issue #17308 Fix broken pagination links in the navigation sidebar -- issue #17331 Fix MariaDB has no support for system variable "disabled_storage_engines" -- issue #17315 Fix unsupported operand types in Results.php when running "SHOW PROCESSLIST" SQL query -- issue #17288 Fixed importing browser settings question box after login when having no pmadb -- issue #17288 Fix "First day of calendar" user override has no effect -- issue #17239 Fixed repeating headers are not working -- issue #17298 Fixed import of email-adresses or links from ODS results in empty contents -- issue #17344 Fixed a type error on ODS import with non string values -- issue #17239 Fixed header row show/hide columns buttons on each line after hover are shown on each row -- issue [security] Fix for path disclosure under certain server configurations (if display_errors is on, for instance) - -5.1.2 (2022-01-20) -- issue Replaced MySQL documentation redirected links -- issue #16960 Fix JS error on Designer visual builder on some modal buttons -- issue Re-build openlayers JS dependency from the source files and provide a smaller JS bundle -- issue Fixed imports and theme detection depending on the current working dir -- issue Update JavaScript dependencies -- issue #16935 Remove hardcoded row length for "$cfg['CharTextareaRows']" to allow back values < 7 -- issue #16977 Fix encoding of enum and set values on edit value -- issue Fix set value as selected when it has special chars on edit value enum -- issue #16896 Fix distinct URLs broken on nullable text fields -- issue Fixed two possible PHP errors using INT data -- issue Fixed possible warning "Undefined index: output_format" on export -- issue Fixed warning "Undefined index: ods_recognize_percentages" on Import ODS -- issue Fixed warning "Undefined array key "ods_recognize_currency" on Import ODS -- issue #16982 Fixed "Notice: Undefined index: foreign_keys_data" on Designer remove relation -- issue Backquote phpMyAdmin table name on internal relation delete query for Designer -- issue #16982 Do not try to delete internal relations if they are not configured -- issue #16982 Show success messages on Designer for add and remove relation operations -- issue Fixed possible "Undefined index: clause_is_unique" on replace value in cell -- issue #16991 Fixed case where $_SERVER['REQUEST_METHOD'] is undefined -- issue Fixed configuration error handler registration -- issue #16997 Fixed server variables get/set value not working on multi server server > 1 -- issue #16998 Fixed Multi table query submit on server > 1 logged out user -- issue #17000 Fixed Multi edit on central columns on server > 1 logged out user -- issue #17001 Fix PHP error on query submit without a table name on multi table query box -- issue #16999 Fixed multi table query results shows for 1 sec and then page refreshes -- issue Fixed a non translated button text on central columns add -- issue Fixed table width on Query by example page for large screens -- issue #16975 Fixed NULL default had a value on insert with datatime fields -- issue #16994 Fixed missing privilege escaping when assigning multiple databases with '_' to an user -- issue #16864 Fixed the margin on the last database of the tree on all themes when scrollbars are displayed -- issue #17011 Fixed the database tree line that was not continuous on database groups -- issue Build more syntax correct URLs on JS internal redirects -- issue #16976 Fix wrong link when a table is moved from a database to another -- issue #16985 Fix case-sensitive issue of innodb_file_format=barracuda vs innodb_file_format=Barracuda -- issue Fixed duplicate quote in navigation nodes -- issue #17006 Disable the URL limit for the MariaDB analyser feature -- issue Fix calls to fetchRow using two parameters but the function has only one parameter -- issue #17020 Fixed "Notice Undefined index: sql_query" on Insert page -- issue Fix reported "Undefined index: FirstDayOfCalendar" -- issue Fix reported "Undefined index: environment" -- issue Fix "TypeError: strlen() expects parameter 1 to be string, null given" on databases listing -- issue #16973 Fix "Undefined array key "n0_pos2_name"" on databases listing -- issue Use the correct min MySQL version for axis-order (8.0.1) instead of (8.0.11) -- issue Use the queries we asked the user confirmation for on DELETE and TRUNCATE table actions -- issue #16994 Fixed editing specific privileges for a database covered by a wildcard privilege -- issue #16994 Fixed escaping of the database name for databases containing '_' on users edit -- issue #16994 Only escape once on grant/revoke privileges for databases containing '_' or '%' -- issue #16994 Only show databases without a privilege on multi select for user grant databases -- issue Removed un-expected query success message from the Table export page -- issue #17026 Handle possible invalid boolean values injected in SaveDir or UploadDir causing "TypeError: mb_substr()" -- issue #16981 Enable cookie parameter "SameSite" on "phpMyAdmin" cookie for PHP >= 7.3 -- issue #16966 Encode "#" to have the anchor part of the destination URL on SQL highlight terms URLs -- issue #17004 Fix PHP errors due to removed variable "innodb_file_format" on MariaDB >= 10.6.0 and MySQL >= 8.0.0 -- issue #16842 Fixed missing password modes on PerconaDB -- issue #16947 Fix "Change login information" form not working -- issue #17004 Fix Advisor for MariaDB >= 10.5 because of removed "innodb_log_files_in_group" variable -- issue #17037 Fix change structure does not surface errors -- issue #17016 Fixed online Transaction, errors not reported on structure edit -- issue #17042 Fix SQL escaping bug on DB name with special chars on submit query with rollback option -- issue #17027 Better handle the display of sorted binary columns in results summary -- issue #16398 Quote non numeric values on parameterized queries -- issue Fixed duplicate HTML escaping on foreign keys select value modal -- issue #15370 Fixed edit routine UI incorrectly removes too many escape slashes -- issue #14631 Fix enum with comma produces incorrect search dropdown on search pages -- issue Fix gis visualization position and limit parameters have no effect -- issue #16995 Fix edit binary foreign key adds a 1 to the value on the selected value -- issue #13614 Fixed escaping the database names when granting privileges on tables -- issue #11834 Fixed adding a new user on "privileges" tab of a table with a database name using a "_" character -- issue #17033 Fixed scaling of line width and point size in GIS visualization -- issue #17054 Removed "DEL" character from generated random strings for Blowfish secret auto-generated by setup -- issue #17019 Fixed "Browse" button visible when creating a table from the database structure view -- issue #16804 Fixed numbers where left-aligned rather than right-aligned -- issue Fixed Metro theme text color for buttons in the browse table navigation bar -- issue #14796 Fix export Database page, UI prevents from exporting procedures only -- issue #15225 Fix Command+click on macOS opens links in same tab -- issue #17014 Fix column names in first row when importing from CSV where the first line contains column names -- issue Fix prevent scrolling the page when scrolling in GIS visualization -- issue Fix GIS visualization save file with a different label or column -- issue Fixed GIS saving image as png with a label -- issue Fixed if label is just the number zero, it was treated as no label in the OpenLayers map -- issue #17039 Fix unable to have 2FA working with a "pmadb" config value != phpmyadmin -- issue #17079 Fixed missing spatial functions in Insert/Edit page -- issue Fixed broken docs link after a FK data type mismatch error -- issue Fix don't add multiple OpenLayers maps, remove listeners on dispose on GIS visualization -- issue #14502 Uncheck the "ignore" checkbox when the user chooses a value in the foreign key list on Insert page -- issue #14502 Uncheck the "ignore" checkbox when the user saves the GIS value on Insert page -- issue #17018 Fixed cannot save data from GIS editor for spatial column on Insert page -- issue #17084 Fixed ErrorHandler not showing errors when phpMyAdmin session does not work at all -- issue #17062 Fixed pagination issues when working with identically named tables in separate databases -- issue #17046 Fix "Uncaught TypeError: htmlspecialchars() expects parameter 1 to be string, null given" -- issue #16942 Fix table Import with CSV using LOAD DATA LOCAL causes error "LOAD DATA LOCAL INFILE is forbidden" -- issue #16942 Fix auto-detection for "LOAD DATA LOCAL INFILE" LOCAL option -- issue #16067 Make select elements with multiple items resizable -- issue Fix the display of Indexes that use Expressions and not column names -- issue Allow to create the phpMyAdmin storage database using a different name than "phpmyadmin" using the interface -- issue #17092 Document that "$cfg['Servers'][$i]['designer_coords']" was removed in version 4.3.0 -- issue #16906 Support special table names for pmadb storage table names -- issue #16906 Fix a caching effect on the feature list after creating the tables -- issue #16906 Better report errors when creating the pmadb or it's tables -- issue #16906 Create the pmadb tables using the names configured and not the default names -- issue #16906 Create the phpMyAdmin storage database using the configured "['pmadb']" name and not always "phpmyadmin" -- issue #16906 Prevent incorrect overriding of configured values after a pmadb fix -- issue #16906 Use the control connection to create the storage database and tables and not the user connection -- issue #16693 Fix can't see SQL after adding a new column -- issue #12753 Show table structure after adding a new column -- issue Fix a PHP notice when logging out -- issue #17090 Fix bbcode not rendered for error messages on setup -- issue #17198 Fix the database selection when the navigation tree is disabled -- issue #17228 Fixed copy to clipboard with NULL values gives non usable text -- issue #16746 Replace samyoul/u2f-php-server by code-lts/u2f-php-server -- issue #16005 Performance improvement on the Import and Export pages -- issue #17247 Fix triple HTML encoding -- issue #17259 Fix broken link in the Simulate DML query modal -- issue #16746 Update tcpdf dependency to ^6.4.4 for PHP 8.1 compatibility -- issue #16746 Update twig dependency to "^2.14.9 || ^3.3.5" for PHP 8.1 compatibility -- issue [security] Add configuration directive $cfg['Servers'][$i]['hide_connection_errors'] to allow hiding host names and other error details when login fails -- issue [security] Add configuration directive $cfg['URLQueryEncryption'] to allow encrypting senstive information in the URL -- issue [security] Fix a scenario where an authenticated user can disable two factor authentication (PMASA-2022-1) -- issue [security] Fix XSS and HTML injection attacks in the graphical setup page (PMASA-2022-2) - -5.1.1 (2021-06-04) -- issue #13325 Fixed created procedure shows up in triggers and events and vice-versa -- issue Fixed adding an event shows an empty row -- issue #16706 Fixed a PHP error when visualizing a nullable geometry column -- issue Fixed a PHP type error when exporting triggers to ODF -- issue #16659 Fixed the Column Drop arrow to make it responsive -- issue #16677 Improved the Font size of an executed SQL query -- issue #16677 Fixed Metro theme DB tree background -- issue #16713 Fixed "PhpMyAdmin\Url::getFromRoute" PHP error for old config values -- issue #16713 Add a legacy fallback for the old config value of "$cfg['DefaultTabDatabase']" and others -- issue #16698 Fix relative fallback URL to './' instead of '/' -- issue Fixed Yaml export to quote strings even when they are numeric -- issue #16704 Fixed PHP type errors on the substring transformation -- issue #14026 Fixed error messages and conditions for MD5 and AES_* functions -- issue #16708 Fixed PHP "Uncaught TypeError: hash_hmac()" on double quick edit -- issue #16709 Fix TCPDF open_basedir issue due to internal guessing code from TCPDF -- issue #16729 Fixed the silencing error management for PHP >= 8.0 -- issue #16604 Set back tables width like in 5.0 versions -- issue #16716 Fixed rename button disappears after a column drop on table structure page -- issue #15628 Fixed "JSON encoding failed: Malformed UTF-8 characters" when browsing data that uses binary to IP transformation -- issue #14395 Fixed display chart with timeline & series name column trigger JS error -- issue #16738 Fixed quick search submit is not working on multi server server > 1 -- issue #16717 Fixed main drawer js call slowing down the page and remove the reflow effect -- issue Fixed a PHP notice "Undefined index: pred_username" -- issue #16744 Fixed "Uncaught TypeError: XMLWriter::writeAttribute()" on Designer SVG export -- issue Fixed an PHP undefined index notice on export -- issue #14555 Fixed JavaScript error when auto completion is open (upgraded CodeMirror to 5.60.0) -- issue #16647 Fixed preferences form not showing texts and not respecting TabsMode config -- issue Fixed escape_mysql_wildcards Twig filter -- issue Change text from "Null" to "NULL" on grid edit popup -- issue Translate a non translated string on a change password page -- issue Fix designer modal buttons sizes for pmahomme and bootstrap themes -- issue #16694 Fixed "Triggers" page not visible for user table specific privileges -- issue #14430 Fixed execute button is disabled for routines -- issue #16703 Fixed SQL option to Export specific rows from a table -- issue #16656 Fixed error messages are not always translated -- issue #16728 Fixed wrong SQL query built on table structure index for new column -- issue #16647 Fixed table search forms not showing texts and not respecting TabsMode config -- issue #16758 Fixed copy to clipboard feature not working on ja or zh_TW languages because of the non ascii colon -- issue #16601 Update tcpdf dependency to ^6.4.1 -- issue #16770 Fixed a notice or warning, when clicking on Structure tab -- issue #16756 Fixed refresh UI on server status -- issue Fixed a PHP notice when searching for .git/commondir on the login page for users using ShowGitRevision -- issue Fixed reported PHP notice on export save template -- issue Fixed reported PHP warnings on server status page -- issue #15629 Fixed datetime decimals displayed (.00000) after edit -- issue #16780 Fixed new event shows an empty row -- issue #16765 Fixed new lines in text fields are doubled -- issue Fix "Connection" label always shown on table create, should be hidden like it's input -- issue #16773 Fix do not use cast as binary for an empty text value on edit button condition -- issue Fixed a JS error on a missing script on zoom search -- issue Added button style on the reset charts of zoom search -- issue Fixed number of rows not kept when changing sort by index value -- issue #16784 Fixed spacing between icons when using NavigationTreeDefaultTabTable2 configuration -- issue #16786 Fixed browser error when clicking the logo with NavigationLogoLink configuration -- issue Fixed a type error when getting the special schema links -- issue #16789 Fix create PHP code removes ; from SQL query on Structure snapshot -- issue #16791 Fixed "Undefined index table_schema" on special schema table -- issue Fixed "DESCRIBE FILES;" broken links in query results -- issue #16790 Fixed "Undefined index field_name" PHP error -- issue #16605 Fixed vertical alignment issue on tables for pmahomme theme -- issue #16798 Fix ServerConfigChecks: Link 'trusted proxies list' not terminated properly (translation) -- issue #16805 Fixed shortcut keys not working -- issue #16821 Fix "Show all rows" un-check checkbox creates a JS error if the page was reloaded -- issue Remove redundant jQuery Event Drag plugin -- issue Fix PHP type error on GIS nullable data -- issue Fix not working export to PNG, SVG, PDF on GIS visualization -- issue Fix float values type errors on GIS export to PNG, SVG, PDF -- issue #16792 Fixed URL generation by removing un-needed & escaping for & char -- issue #16777 Fixed Non-UTF8 Primary Key text value edit row -- issue #16836 Fixed extra whitespaces in binary edit values causes a JS validation error message -- issue #15566 Support RTL mode on the Designer -- issue #16810 Fixed SQL query shown twice on drop column success -- issue #16404 Fixed JS password generation fails after a new user creation failure -- issue #16837 Fixed PHP error on execute query "create table event(...)" -- issue Fixed a PHP warning that was occuring on wrong chmod on config files -- issue Fixed a JS error on dismiss notification modal -- issue #16793 Upgrade CodeMirror to 5.61.0 to fix a JS error on scroll in SQL query box -- issue Fix password management for Percona Server lacking PASSWORD function -- issue Fixed "data is undefined" JS error -- issue Fixed 2 un-translated buttons on central columns edit -- issue #16810 Fixed SQL query shown twice on central columns actions -- issue #16771 Fixed PHP array export to work on very large datasets -- issue #16847 Fixed JSON export nullable binary PHP error -- issue #16847 Fixed JSON export text fields and binary data -- issue #14773 Fix exporting a raw query is not working -- issue #16734 Fixed memory limit reached, use SQL COUNT(*) instead of fetch and count results -- issue #16723 Fixed option to perform ALTER ONLINE is not available on edit of an existing column -- issue Add missing CSS style on "Filter" button on monitor results table header -- issue Fixed non working "Filter" button on monitor results table header -- issue #16420 Fixed single clicking on row starts editing even if GridEditing is set to double-click -- issue #16854 Fixed "Undefined index: SERVER_SOFTWARE" on very minimal PHP FPM setups -- issue #16863 Fixed replication setting up a replica is not working -- issue #16843 Fixed vertical alignment in Metro and pmahomme themes on user accounts overview -- issue Fixed "phpMyAdmin configuration storage" link on settings page warning -- issue #16871 Fixed PHP and JS errors on normalization steps -- issue Fixed CSS missing classes on normalization buttons -- issue #16437 Fixed sticky top position when using smaller screen sizes -- issue #16895 Fixed wrong table count on space separated numbers -- issue #16882 Fixed table delete resets count to 0 -- issue #16892 Fixed current_timestamp() stringified on INSERT for date field -- issue #16911 Fixed PHP 8.1 "Method mysqli::get_client_info() is deprecated" -- issue Fix "array_fill(): Argument #2 ($count) must be of type int, string" for "$cfg['InsertRows']" -- issue #14130 Created new messages for U2F errors -- issue #16920 Fixed "Uncaught TypeError: PhpMyAdmin\Import::detectType()" on ODS import -- issue #16926 Fixed ODS import warning: Undefined array key "ods_empty_rows" -- issue #16888 Fixed JS error on renaming tables in saved Designer page -- issue #16504 Fixed create view dialog is too big and won't scroll (on small screens) -- issue #16931 Fixed php notice "Undefined index: utf8mb3" on MySQL 8.0.11+ servers with default utf8 server charset - -5.1.0 (2021-02-24) -- issue #15350 Change Media (MIME) type references to Media type -- issue #15377 Add a request router -- issue Automatically focus input in the two-factor authentication window -- issue #15509 Replace gender-specific pronouns with gender-neutral pronouns -- issue #15491 Improve complexity of generated passwords -- issue #14909 Add a configuration option to define the 1st day of week -- issue #12726 Made user names clickable in user accounts overview -- issue #15729 Improve virtuality dropdown for MariaDB > 10.1 -- issue #15312 Added an option to perform ALTER ONLINE (ALGORITHM=INPLACE) when editing a table structure -- issue Added missing 'IF EXISTS' to 'DROP EVENT' when exporting databases -- issue #15232 Improve the padding in query result tool links -- issue #15064 Support exporting raw SQL queries -- issue #15555 Added ip2long transformation -- issue #15194 Fixed horizontal scroll on structure edit page -- issue #14820 Move table hide buttons in navigation to avoid hiding a table by mistake -- issue #14947 Use correct MySQL version if the version is 8.0 or above for documentation links -- issue #15790 Use "MariaDB Documentation" instead of "MySQL Documentation" on a MariaDB server -- issue #15880 Change "Show Query" link to a button -- issue #13371 Automatically toggle the radio button to "Create a page and save it" on Designer -- issue #12969 Tap and hold will not dismiss the error box anymore, you can now copy the error -- issue #15582 Don't disable "Empty" table button after clicking it -- issue #15662 Stay on the structure page after editing/adding/dropping indexes -- issue #15663 show structure after adding a column -- issue #16005 Remove symfony/yaml dependency -- issue #16005 Improve performance of dependency injection system by removing yaml parsing -- issue #15447 Disable phpMyAdmin storage database checkbox on databases list -- issue #16001 Add autocomplete attributes on login form -- issue #13519 Add "Preview SQL" option on Index dialog box when creating a new table -- issue #15954 Fixed export maximal length of created query input is too small -- issue Redesign the server status advisor page -- issue #13124 Use same height for SQL query textarea and Columns select in SQL page -- issue #16005 Add a new vendor constant "CACHE_DIR" that defaults to "libraries/cache/" and store routing cache into this folder -- issue #16005 Warm-up the routing cache before building the release -- issue #16005 Use --optimize-autoloader when installing composer vendors before building the release -- issue #15992 Add back the table name to the printable version on "Structure" page -- issue #14815 Allow simplifying exported view syntax to only "CREATE VIEW" -- issue #15496 Add $cfg['CaptchaSiteVerifyURL'] for Google ReCaptcha siteVerifyUrl -- issue #14772 Add the password_hash PHP function as an option when inserting data -- issue #15136 Add a notice for Hex converter giving invalid results -- issue #16139 Use a textarea for JSON columns -- issue #16223 Make JSON input transformation editor less narrow -- issue #14340 Add a button on Export Page to show the SQL Query -- issue #16304 Add support for INET6 column type -- issue #16337 Fix example insert/update query default values -- issue #12961 Remove indexes from table relation -- issue #13557 Use a full list of functions instead of a separated one on insert/edit page "Function" selector -- issue #14795 Include routines in the export in a predictable order -- issue #16227 Fixed autocomplete is not working in case the table name is quoted by "`" symbols -- issue #15463 Force BINARY comparison when looking at privileges to avoid an SQL error on privileges tab -- issue #16430 Fixed Windows error message uses trailing / instead of \ -- issue #16316 Added support for "SameSite=Strict" on cookies using configuration "$cfg['CookieSameSite']" -- issue #16451 Fixed AWS RDS IAM authentication doesn't work because pma_password is truncated -- issue #16451 Show an error message when the security limit is reached instead of silently trimming the password to avoid confusion -- issue #15001 Add back Login Cookie Validity setting to the features form -- issue #16457 Add config parameters to support third-party ReCaptcha v2 compatible APIs like hCaptcha -- issue #13077 Moved tools section to left on large devices (Bootstrap xl) -- issue #15711 Moved some buttons to left on large devices (Bootstrap xl) -- issue #15584 Add $cfg['MysqlSslWarningSafeHosts'] to set the red text black when ssl is not used on a private network -- issue #15652 Replace deprecated FOUND_ROWS() function call on "distinct values" feature -- issue Export blobs as hex on JSON export -- issue #16095 Fix leading space not shown in a CHAR column when browsing a table -- issue Make procedures/functions SQL editor both side scrollable -- issue #16407 Bump pragmarx/google2fa conflict to >8.0 -- issue #14953 Added a rename Button to use RENAME INDEX syntax of MySQL 5.7 (and MariaDB >= 10.5.2) -- issue #16477 Fixed no Option to enter TABLE specific permissions when the database name contains an "_" (underscore) -- issue #16498 Fixed empty text not appearing after deleting all Routines -- issue #16467 Fixed a PHP notice "Trying to access array offset on value of type null" on Designer PDF export -- issue #15658 Fixed saving UI displayed columns on a non database request fails -- issue #16495 Fix drop tables checkbox is above the checkbox for foreign keys -- issue #16485 Fix visual query builder missing "Build Query" button -- issue #16565 Added 'IF EXISTS' to 'DROP EVENT' when updating events to avoid replication issues -- issue Removed metro fonts that where Apache-2.0 files that are incompatible with GPL-2.0 -- issue #16464 Made the relation view default to the current database when creating relations -- issue #16463 Fixed 'REFERENCES' privilege checkbox's title on new MySQL versions and on MariaDB -- issue #16405 Added jest as a Unit Testing tool for our javascript code -- issue #16252 Fixed the too small font size when editing rows (textareas) -- issue #16585 Fixed BLOB to JPG transformation PHP errors -- issue Made the console setup async to avoid blocking the page render -- issue #16429 Use PHP 8.0 fixed version (commit) for TCPDF -- issue #16005 Major performance improvements on browsing a lot of rows -- issue #16595 Fixed editing columns having a `_` in their name in specific conditions -- issue #16608 Fix "Sort by key" restore auto saved value -- issue #16611 Fixed unable to add tables to rename aliases twice on Export -- issue #16621 Fixed link HTML messed up in Advisor -- issue #16622 Fixed Advisor formatting incorrect for long_query_time notice -- issue #15389 Fixed reset current page indicator after deleting all rows to current page and not page 1 -- issue #15997 Fixed auto save query -- issue #15997 Made auto saved query database or database+table independent -- issue #16641 Fixed query generation that was allowing JSON to have a length -- issue #15994 Fixed the selected value detection for "on update current_timestamp" -- issue #16614 Fixed PHP 8.0 dataseek offset call to the MySQLI extension -- issue #16662 Fixed Uncaught TypeError on "delete" button click of a database search results page -- issue Fixed Undefined index: selected_usr when the user tried to delete no selected user -- issue #16657 Fixed the QBE interface when the configuration storage is not enabled -- issue #16479 Fix our Selenium test-suite -- issue #16669 Fixed table search modal for BETWEEN -- issue #16667 Fixed LIKE and TINYINT in search not working properly -- issue #16424 Fixed numerical search in table and zoom -- issue Improve the version handling (new Version class) and add a VERSION_SUFFIX for vendors -- issue #14494 Fix uncaught TypeError when editing partitioning -- issue #16525 Fix PHP 8.0 failing tests when comparing 0 to '' -- issue #16429 Fixed PHP 8.0 errors on preg_replace and operand types -- issue #16490 Fixed PHP 8.0 function libxml_disable_entity_loader() is deprecated -- issue #16429 Fixed failing unit tests on PHP 8.0 -- issue #16609 Fixed Sql.rearrangeStickyColumns is not a function - -5.0.4 (2020-10-15) -- issue #16245 Fix failed Zoom search clears existing values -- issue Fixed a PHP error when reporting a particular JS error -- issue #16326 Fixed latitude and longitude swap for geometries in edit mode -- issue #16032 Fix CREATE TABLE not being tracked when auto tracking is enabled -- issue #16397 Fix compatibility problems with older PHP versions (also issue #16399) -- issue #16396 Fix broken two-factor authentication - -5.0.3 (2020-10-09) -- issue #15983 Require twig ^2.9 -- issue Fix option to import files locally appearing as not available -- issue #16048 Fix to allow NULL as a default bit value -- issue #16062 Fix "htmlspecialchars() expects parameter 1 to be string, null given" on Export xml -- issue #16078 Fix no charts in monitor when using a decimal separator "," -- issue #16041 Fix IN(...) clause doesn't permit multiple values on "Search" page -- issue #14411 Support double tap to edit on mobile -- issue #16043 Fix php error "Use of undefined constant MYSQLI_TYPE_JSON" when using the mysqlnd extension -- issue #14611 Fix fatal JS error on index creation after using Enter key to submit the form -- issue #16012 Set "axis-order" to swap lon and lat on MySQL >= 8.1 -- issue #16104 Fixed overwriting a bookmarked query causes a PHP fatal error -- issue Fix typo in a condition in the Sql class -- issue #15996 Fix local setup doc links pointing to a wrong location -- issue #16093 Fix error importing utf-8 with bom sql file -- issue #16089 2FA UX enhancement: autofocus 2FA input -- issue #16127 Fix table column description PHP error when ['DisableIS'] = true; -- issue #16130 Fix local documentation links display when a PHP extension is missing -- issue Fix some twig code deprecations for php 8 -- issue Fix ENUM and SET display when editing procedures and functions -- issue Keep full query state on "auto refresh" process list -- issue Keep columns order on "auto refresh" process list -- issue Fixed editing a failed query from the error message -- issue #16166 Fix the alter user privileges query to make it MySQL 8.0.11+ compatible -- issue Fix copy table to another database when the nbr of DBs is > $cfg['MaxDbList'] -- issue #16157 Fix relations of tables having spaces or special chars not showing in the Designer -- issue #16052 Fix a very rare JS error occuring on mousemove event -- issue #16162 Make a foreign key link clickable in a new tab after the value was saved and replaced -- issue #16163 Fixed a PHP notice "Undefined index: column_info" on views -- issue #14478 Fix the data stream when exporting data in file mode -- issue #16184 Fix templates/ directory not found error -- issue #16184 Remove chdir logic to fix PHP fatal error "Uncaught TypeError: chdir()" -- issue Support for Twig 3 -- issue Allow phpmyadmin/twig-i18n-extension ^3.0 -- issue #16201 Trim spaces for integer values in table search -- issue #16076 Fixed cannot edit or export TIMESTAMP column with default CURRENT_TIMESTAMP in MySQL >= 8.0.13 -- issue #16226 Fix error 500 after copying a table -- issue #16222 Fixed can't use the search page when the table name has special characters -- issue #16248 Fix zoom search is not performing input validation on INT columns -- issue #16248 Fix javascript error when typing in INT fields on zoom search page -- issue Fix type errors when using saved searches -- issue #16261 Fix missing headings on modals of "User Accounts -> Export" -- issue #16146 Fixed sorting did not keep the selector of number of rows -- issue #16194 Fixed SQL query does not appear in case of editing view where definer is not you on MySQL 8 -- issue #16255 Fix tinyint(1) shown as INT on Search page -- issue #16256 Fix "Warning: error_reporting() has been disabled for security reasons" on php 7.x -- issue #15367 Fix "Change or reconfigure primary server" link -- issue #15367 Fix first replica links, start, stop, ignore links -- issue #16058 Add "PMA_single_signon_HMAC_secret" for signon auths to make special links work and udate examples -- issue #16269 Support ReCaptcha v2 checkbox width "$cfg['CaptchaMethod'] = 'checkbox';" -- issue #14644 Use Doctum instead of Sami -- issue #16086 Fix "Browse" headings shift when scrolling -- issue #15328 Fix no message after import of zipped shapefile without php-zip -- issue #14326 Fix PHP error when exporting without php-zip -- issue #16318 Fix Profiling doesn't sum the number of calls -- issue #16319 Fixed a Russian translation mistake on search results total text -- issue #15634 Only use session_set_cookie_params once on PHP >= 7.3.0 versions for single signon auth -- issue #14698 Fixed database named as 'New' (language variable) causes PHP fatal error -- issue #16355 Make textareas both sides resizable -- issue #16366 Fix column definition form not showing default value -- issue #16342 Fixed multi-table query (db_multi_table_query.php) alias show the same alias for all columns -- issue #15109 Fixed using ST_GeomFromText + GUI on insert throws an error -- issue #16325 Fixed editing Geometry data throws error on using the GUI -- issue [security] Fix XSS vulnerability with the transformation feature (PMASA-2020-5) -- issue [security] Fix SQL injection vulnerability with search feature (PMASA-2020-6) - -5.0.2 (2020-03-20) -- issue Fixed deprecation warning "implode(): Passing glue string after array is deprecated." function on export page -- issue #15767 Fixed can not copy user account since 5.0 - "error #1133" -- issue #15772 Fixed error code 500 during pagination of the tables in a database -- issue #16009 Fix php error "Trying to access array offset on value of type null" on column distinct values feature -- issue #15741 Fix fatal javascript error on clicking "Pick from Central Columns" -- issue #15773 Fixed a view named "views" adds an expand button -- issue #15432 Fixed names of the pages in the designer should be unique -- issue #14310 Fixed column selector "See more" removes "Preview SQL" and "Save" area -- issue Fixed wrong jQuery function call in table search page -- issue #15761 Fix uncaught TypeError when using "$cfg['ServerDefault'] = 0;" -- issue #15780 Fixed unexpected UI of action links (text only mode) -- issue #15674 Replace twig/extensions with phpmyadmin/twig-i18n-extension -- issue #15799 Change location of profiling state documentation to fix column ordering -- issue #15720 Fix designer adding all available tables to a designer page after adding a new relationship -- issue #15791 Replace facebook/webdriver by php-webdriver/webdriver -- issue #15802 Removed SET AUTOCOMMIT=0 from SQL export -- issue #15818 Fix table borders missing on theme original since 5.0.0 -- issue #13864 Fix ENUM's radiobuttons reset on "Continue insertion with" changes -- issue #15811 Fixed browse foreign values doesn't show a modal with grid edit -- issue #15817 Fix "new table" layout issue on original theme -- issue #15798 Fixed not needed prompt before abandoning changes on SQL tab after only changing a checkbox -- issue #15833 Fix php TypeError when submitting unchanged data -- issue Fix php notice "Trying to access array offset on value of type bool" on Designer -- issue #13326 Added integer validations on search page -- issue #15200 Fixed server-side HTTPS detection misses support for Forwarded HTTP Extension (RFC 7239) -- issue #15831 Fixed DB names starting with "b" being cut off in