This commit is contained in:
baodev0
2026-07-09 11:19:50 +07:00
parent 64232d9168
commit 61c0e026c8
28 changed files with 939 additions and 230 deletions
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
if (! Schema::hasColumn('customers', 'note')) {
Schema::table('customers', function (Blueprint $table) {
$table->text('note')->nullable()->after('password');
});
}
}
public function down(): void
{
if (Schema::hasColumn('customers', 'note')) {
Schema::table('customers', function (Blueprint $table) {
$table->dropColumn('note');
});
}
}
};