Tambahkan menu expired gudang

This commit is contained in:
Dwi Swandhana
2026-02-23 17:41:14 +07:00
parent 93c5e9ef09
commit 6d23d9c97d
4 changed files with 217 additions and 80 deletions
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('simbhpreport', function (Blueprint $table) {
if (!Schema::hasColumn('simbhpreport', 'masa_expired')) {
$table->date('masa_expired')->nullable()->after('satuan_transaksi');
}
});
}
public function down(): void
{
Schema::table('simbhpreport', function (Blueprint $table) {
if (Schema::hasColumn('simbhpreport', 'masa_expired')) {
$table->dropColumn('masa_expired');
}
});
}
};