update table

This commit is contained in:
2023-09-26 10:10:28 +07:00
parent 3059a4ae0e
commit 314c4ec5a2

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('claims', function (Blueprint $table) {
$table->char('uuid')->after('id');
$table->string('claim_request_id')->after('code');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('claims', function (Blueprint $table) {
$table->dropColumn('uuid');
$table->dropColumn('claim_request_id');
});
}
};