Added inspection lot number column in production characteristic table
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 31s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 20s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 31s
Laravel Pint / pint (pull_request) Successful in 1m54s
Laravel Larastan / larastan (pull_request) Failing after 4m3s

This commit is contained in:
dhanabalan
2026-08-18 17:05:47 +05:30
parent eaebee8336
commit 292ff86e39
2 changed files with 37 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ class ProductionCharacteristic extends Model
{
use SoftDeletes;
protected $casts = [
'result' => 'array',
];
protected $fillable = [
'plant_id',
'line_id',
@@ -21,7 +25,9 @@ class ProductionCharacteristic extends Model
'characteristic_name',
'status',
'inspection_status',
'inspection_lot_number',
'remark',
'result',
'created_at',
'updated_at',
'created_by',

View File

@@ -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 production_characteristics
ADD COLUMN inspection_lot_number TEXT DEFAULT NULL
SQL;
DB::statement($sql1);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('production_characteristics', function (Blueprint $table) {
// //
// });
}
};