feat: add status in v2

This commit is contained in:
2026-06-10 12:02:23 +03:30
parent 2fd5b262a6
commit c0ff35c0a8
2 changed files with 28 additions and 0 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
{
Schema::table('users', function (Blueprint $table) {
if (!Schema::hasColumn('users', 'age')) {
$table->unsignedTinyInteger('age')->nullable()->after('birthday');
}
});
}
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
if (Schema::hasColumn('users', 'age')) {
$table->dropColumn('age');
}
});
}
};