This commit is contained in:
Dwi Swandhana
2026-03-10 13:53:06 +07:00
parent 2e0461b528
commit 5aed126889
8 changed files with 217 additions and 33 deletions
@@ -0,0 +1,41 @@
<?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
{
Schema::table('critical_value_samples', function (Blueprint $table) {
// Snapshot from periksa for easier listing.
$table->string('asalpasien', 250)->nullable()->after('noregister');
// Follow-up details recorded when marking as read.
$table->string('follow_up_status', 25)->nullable()->after('followed_up_by_name'); // reported|not_reported
$table->string('follow_up_method', 50)->nullable()->after('follow_up_status');
$table->string('follow_up_recipient', 250)->nullable()->after('follow_up_method');
$table->string('follow_up_reason', 250)->nullable()->after('follow_up_recipient');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('critical_value_samples', function (Blueprint $table) {
$table->dropColumn([
'asalpasien',
'follow_up_status',
'follow_up_method',
'follow_up_recipient',
'follow_up_reason',
]);
});
}
};