update template import request log

This commit is contained in:
2024-01-25 11:11:41 +07:00
parent 667c08dc0c
commit 423fe7b182
4 changed files with 79 additions and 23 deletions

View File

@@ -0,0 +1,34 @@
<?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_logs', function (Blueprint $table) {
$table->string('type_of_member')->after('service_code')->default(null);
$table->integer('total_cob')->after('type_of_member')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('request_logs', function (Blueprint $table) {
$table->dropColumn('type_of_member');
$table->dropColumn('total_cob');
});
}
};