diff --git a/database/migrations/2025_08_10_020525_add_is_admin_to_users_table.php b/database/migrations/2025_08_10_020525_add_is_admin_to_users_table.php index e69de29..c0303a8 100644 --- a/database/migrations/2025_08_10_020525_add_is_admin_to_users_table.php +++ b/database/migrations/2025_08_10_020525_add_is_admin_to_users_table.php @@ -0,0 +1,18 @@ +boolean('is_admin')->default(false)->after('password'); - }); + if (!Schema::hasColumn('users', 'is_admin')) { + Schema::table('users', function (Blueprint $table) { + $table->boolean('is_admin')->default(false)->after('password'); + }); + } } /**