ranjith-dev #911
@@ -28,8 +28,8 @@ class PanelBoxValidation extends Model
|
||||
'part_validation5',
|
||||
'panel_box_supplier',
|
||||
'panel_box_serial_number',
|
||||
'batch_number',
|
||||
'panel_box_code',
|
||||
'inspection_lot_number',
|
||||
'created_by',
|
||||
'updated_by'
|
||||
];
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
$sql1 = <<<'SQL'
|
||||
ALTER TABLE panel_box_validations
|
||||
ADD COLUMN inspection_lot_number TEXT DEFAULT NULL
|
||||
SQL;
|
||||
|
||||
DB::statement($sql1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
// Schema::table('panel_box_validations', function (Blueprint $table) {
|
||||
// //
|
||||
// });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user