update migration

This commit is contained in:
JOSEPH LE 2024-08-08 13:36:30 +07:00
parent 348d09e1b8
commit 74a20a714b
2 changed files with 30 additions and 1 deletions

View File

@ -20,7 +20,6 @@ return new class extends Migration
$table->string('end_period');
$table->string('type');
$table->string('reason');
$table->string('status');
$table->string('admin_note')->nullable();
$table->string('updated_by');
$table->timestamps();

View File

@ -0,0 +1,30 @@
<?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('tickets', function (Blueprint $table) {
//
$table->string('status', 20);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('tickets', function (Blueprint $table) {
//
$table->dropColumn('status');
});
}
};