update ecard dan daily monitoring

This commit is contained in:
2023-12-28 15:50:56 +07:00
parent 10f702f2f0
commit 19e9e334e2
18 changed files with 1146 additions and 133 deletions

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('request_log_medical_plan', function (Blueprint $table) {
$table->id();
$table->foreignId('request_log_daily_monitoring_id');
$table->string('plan');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('request_log_medical_plan');
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('request_log_medical_plan', function (Blueprint $table) {
$table->integer('type')->after('plan');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('request_log_medical_plan', function (Blueprint $table) {
$table->dropColumn('type');
});
}
};