update
This commit is contained in:
+41
@@ -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',
|
||||
]);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user