From 1bee7a629d19d27e492b96ebfc694e537479123c Mon Sep 17 00:00:00 2001 From: nurafrinaalimi16 Date: Sun, 31 Mar 2024 08:55:44 +0800 Subject: [PATCH] alter column role to nullable --- .../migrations/2024_03_24_132333_add_role_to_users_table.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/database/migrations/2024_03_24_132333_add_role_to_users_table.php b/database/migrations/2024_03_24_132333_add_role_to_users_table.php index 278f0ab..e0a99b8 100644 --- a/database/migrations/2024_03_24_132333_add_role_to_users_table.php +++ b/database/migrations/2024_03_24_132333_add_role_to_users_table.php @@ -15,8 +15,10 @@ class AddRoleToUsersTable extends Migration { Schema::table('users', function (Blueprint $table) { // - $table->string('role', 60); + $table->string('role', 60)->nullable(); }); + + // DB::statement("ALTER TABLE nominee ADD photo MEDIUMBLOB"); } /**