ikinci temizlik tamamlandı
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Get the migration connection name.
|
||||
*/
|
||||
public function getConnection(): string|null
|
||||
{
|
||||
return config('telescope.storage.database.connection');
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
$schema = Schema::connection($this->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');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePersonalAccessTokensTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('personal_access_tokens', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use App\Models\NaksCenter;
|
||||
|
||||
class CreateNaksCertificatesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$schema = Schema::connection($this->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateNaksCentersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('naks_centers', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWeldingMethodsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('welding_methods', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateMaterialsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('materials', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePNumbersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('p_numbers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('asme')->nullable();
|
||||
$table->string('base_metal')->nullable();
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('p_numbers');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWeldingPositionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('welding_positions', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateHazardClassesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('hazard_classes', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateJointTypesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('joint_types', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateJointViewsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('joint_views', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateElectrodeCoatingsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('electrode_coatings', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateRuWeldingGeometriesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('ru_welding_geometries', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCurrentTypesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('current_types', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('title')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('current_types');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWeldingConsumablesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('welding_consumables', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateProductTypesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('product_types', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWeldingMachineTypesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('welding_machine_types', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWeldingMaterialsBrendsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('welding_materials_brends', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('title')->nullable();
|
||||
$table->string('brend')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('welding_materials_brends');
|
||||
}
|
||||
}
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use App\Models\NaksCertificate;
|
||||
use App\Models\WeldingMethod;
|
||||
use App\Models\WeldingPosition;
|
||||
use App\Models\Material;
|
||||
use App\Models\PNumber;
|
||||
use App\Models\WeldingConsumable;
|
||||
use App\Models\CurrentType;
|
||||
use App\Models\JointType;
|
||||
use App\Models\ProductType;
|
||||
|
||||
class CreateProsedureQualificationRecordsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('prosedure_qualification_records', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWPSTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('w_p_s', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateNaksWeldersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('naks_welders', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWelderTestsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('welder_tests', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateNaksConsumablesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('naks_consumables', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateRegisterOfExpertsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('register_of_experts', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWeldingEquipmentTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('welding_equipment', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWorkTypesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('work_types', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePerformedWorkTypesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('performed_work_types', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('title')->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('performed_work_types');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateSubcontractorsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('subcontractors', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateMaterialGroupTestPiecesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('material_group_test_pieces', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateTypeOfConsumablesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('type_of_consumables', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateJobDescriptionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('job_descriptions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('title')->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('job_descriptions');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateLineListsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('line_lists', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateNdeMatricesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('nde_matrices', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWelderTestPlansTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('welder_test_plans', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWelderConfirmChecksTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('welder_confirm_checks', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWeldLogsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('weld_logs', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWeldMapsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('weld_maps', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateMTOSTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('m_t_o_s', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateResultsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('results', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('title')->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('results');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateFitUpWeldingFollowUpsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('fit_up_welding_follow_ups', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDefectsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('defects', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateNDTSTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('n_d_t_s', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateRadiographicTestsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('radiographic_tests', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUltrasonicTestsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('ultrasonic_tests', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateMagneticTestsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('magnetic_tests', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDyePenetrantTestsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('dye_penetrant_tests', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePMITestsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('p_m_i_tests', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateHardnessTestsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('hardness_tests', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateFerritsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('ferrits', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateIncomingControlsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('incoming_controls', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateMaterialPlaningsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('material_planings', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateMaterialPlaningDetailsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('material_planing_details', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePaintFollowUpsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('paint_follow_ups', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePaintMatricesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('paint_matrices', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCutListsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('cut_lists', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDocumentRevisionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('document_revisions', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateLineListCategoriesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('line_list_categories', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('category_title', 100)->nullable()->default(null);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('line_list_categories');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateLineListGroupsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('line_list_groups', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('group_title', 100)->nullable()->default(null);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('line_list_groups');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class RenameColumnInWeldLogs extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('ultrasonic_tests', function (Blueprint $table) {
|
||||
$table->renameColumn('wallthickness_2', 'wall_thickness_2');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('ultrasonic_tests', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUTTypesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('u_t_types', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateNCRLogsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('n_c_r_logs', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateBeveelingsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('beveelings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('beveeling_title', 100)->nullable()->default(null);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('beveelings');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class RemoveColumnDocumentRevision extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('document_revisions', function($table) {
|
||||
$table->dropColumn(['add_drawing']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDisciplinesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('disciplines', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('discipline_title', 100)->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('disciplines');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class RemoveColumnAny extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('incoming_controls', function($table) {
|
||||
$table->dropColumn(
|
||||
[
|
||||
'scan_akt_link',
|
||||
]
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class ChangeEngine extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$tables = [
|
||||
'm_t_o_s',
|
||||
'weld_logs',
|
||||
'naks_certificates'
|
||||
];
|
||||
|
||||
foreach($tables AS $table) {
|
||||
DB::statement("ALTER TABLE $table ENGINE = InnoDB");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddPwhtOperatorIdToPWHTSTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('p_w_h_t_s', function (Blueprint $table) {
|
||||
$table->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');
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddColumn extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$sameTables = ['weld_logs', 'repair_logs', 'deleted_joints'];
|
||||
$addColumns = ['tp_status'];
|
||||
|
||||
foreach($sameTables AS $sameTable) {
|
||||
|
||||
foreach($addColumns AS $addColumn) {
|
||||
|
||||
if (Schema::hasColumn($sameTable, $addColumn)) {
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->dropColumn($addColumn);
|
||||
});
|
||||
}
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->string($addColumn)->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddColumn2 extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$sameTables = ['test_pack_base_statuses'];
|
||||
$addColumns = ['discipline'];
|
||||
|
||||
foreach($sameTables AS $sameTable) {
|
||||
|
||||
foreach($addColumns AS $addColumn) {
|
||||
|
||||
if (Schema::hasColumn($sameTable, $addColumn)) {
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->dropColumn($addColumn);
|
||||
});
|
||||
}
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->string($addColumn)->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWorkPermitDocumentsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('work_permit_documents', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePWHTSTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (!Schema::hasTable('p_w_h_t_s')) {
|
||||
Schema::create('p_w_h_t_s', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePTLogsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (!Schema::hasTable('p_t_logs')) {
|
||||
Schema::create('p_t_logs', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateVTLogsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (!Schema::hasTable('v_t_logs')) {
|
||||
Schema::create('v_t_logs', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDeletedJointsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (!Schema::hasTable('deleted_joints')) {
|
||||
Schema::create('deleted_joints', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWelderLocationsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('welder_locations', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateLocationsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('locations', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('title', 100)->nullable()->default(null);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('locations');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateTestPackagesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('test_packages', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateTestPackBaseStatusesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('test_pack_base_statuses', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePunchListsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('punch_lists', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateIncomingControlPaintsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('incoming_control_paints', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateRFISTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('r_f_i_s', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCountersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('counters', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateITPSTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('i_t_p_s', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePipingTypesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('piping_types', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('title', 100)->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('piping_types');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePunchDescriptionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('punch_descriptions', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateGeneralDisciplinesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('general_disciplines', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('title', 100)->nullable()->default(null);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('general_disciplines');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class UniqueColumns extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
dump(DB::select(DB::raw("DELETE t1 FROM nde_matrices t1
|
||||
INNER JOIN nde_matrices t2
|
||||
WHERE
|
||||
t1.id < t2.id AND
|
||||
t1.line = t2.line AND
|
||||
t1.type_of_joint = t2.type_of_joint AND
|
||||
t1.fluid = t2.fluid
|
||||
;")));
|
||||
|
||||
Schema::table("nde_matrices", function (Blueprint $table) {
|
||||
$table->unique(['line', 'type_of_joint', 'fluid']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddClearenceColumnWeldlog extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$sameTables = ['weld_logs', 'repair_logs', 'deleted_joints'];
|
||||
$addColumns = ['clearance_no'];
|
||||
|
||||
foreach($sameTables AS $sameTable) {
|
||||
|
||||
foreach($addColumns AS $addColumn) {
|
||||
|
||||
if (Schema::hasColumn($sameTable, $addColumn)) {
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->dropColumn($addColumn);
|
||||
});
|
||||
}
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->string($addColumn)->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class RenameVTTestingDateColumn extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
//
|
||||
Schema::table('v_t_logs', function (Blueprint $table) {
|
||||
$table->renameColumn('vt_testing_date', 'vt_test_date');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddRealWelderNDTLogs extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$sameTables = array_values(log_test_types());
|
||||
$addColumns = ['real_welder_1', 'real_welder_2'];
|
||||
|
||||
foreach($sameTables AS $sameTable) {
|
||||
|
||||
foreach($addColumns AS $addColumn) {
|
||||
|
||||
if (Schema::hasColumn($sameTable, $addColumn)) {
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
// $table->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()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddProjectIncomingControl extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$sameTables = ['incoming_controls'];
|
||||
$addColumns = ['project'];
|
||||
|
||||
foreach($sameTables AS $sameTable) {
|
||||
|
||||
foreach($addColumns AS $addColumn) {
|
||||
|
||||
if (Schema::hasColumn($sameTable, $addColumn)) {
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
// $table->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()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddDesignerIncomingControl extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$sameTables = ['incoming_controls','m_t_o_s'];
|
||||
$addColumns = ['designer','discipline','project'];
|
||||
|
||||
foreach($sameTables AS $sameTable) {
|
||||
|
||||
foreach($addColumns AS $addColumn) {
|
||||
|
||||
if (Schema::hasColumn($sameTable, $addColumn)) {
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
// $table->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()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePunchListCommentsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('punch_list_comments', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class ChangeColumnNamePaintFollowUp extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('paint_follow_ups', function(Blueprint $table) {
|
||||
$table->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()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDutyTypesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('duty_types', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('title', 100)->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('duty_types');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddAddressEtcSubcontractor extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$sameTables = ['subcontractors'];
|
||||
$addColumns = ['city', 'address', 'logo'];
|
||||
|
||||
foreach($sameTables AS $sameTable) {
|
||||
|
||||
foreach($addColumns AS $addColumn) {
|
||||
|
||||
if (Schema::hasColumn($sameTable, $addColumn)) {
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->dropColumn($addColumn);
|
||||
});
|
||||
}
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->string($addColumn)->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddZoneWorkPermit extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$sameTables = ['work_permit_documents',];
|
||||
$addColumns = ['zone', 'third_party'];
|
||||
|
||||
foreach($sameTables AS $sameTable) {
|
||||
|
||||
foreach($addColumns AS $addColumn) {
|
||||
|
||||
if (Schema::hasColumn($sameTable, $addColumn)) {
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->dropColumn($addColumn);
|
||||
});
|
||||
}
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->string($addColumn)->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddRegisterPaintWeldlog extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$sameTables = ['weld_logs', 'deleted_joints', 'repair_logs'];
|
||||
$addColumns = ['register_paint_no', 'register_date'];
|
||||
|
||||
foreach($sameTables AS $sameTable) {
|
||||
|
||||
foreach($addColumns AS $addColumn) {
|
||||
|
||||
if (Schema::hasColumn($sameTable, $addColumn)) {
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->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()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUserLevelsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (!Schema::hasTable('user_levels')) {
|
||||
|
||||
Schema::create('user_levels', function (Blueprint $table) {
|
||||
$table->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');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddPWHTOperatorInWeldLog extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$sameTables = ['weld_logs', 'deleted_joints', 'repair_logs'];
|
||||
$addColumns = ['pwht_operator_name', 'pwht_operator_id'];
|
||||
|
||||
foreach($sameTables AS $sameTable) {
|
||||
|
||||
foreach($addColumns AS $addColumn) {
|
||||
|
||||
if (Schema::hasColumn($sameTable, $addColumn)) {
|
||||
Schema::table($sameTable, function (Blueprint $table) use($addColumn) {
|
||||
$table->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) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user