From 24b3f2063672b28dfa970da5ca4a509a225d2080 Mon Sep 17 00:00:00 2001 From: Amir Yousefi Date: Mon, 11 Nov 2024 18:06:43 +0330 Subject: [PATCH 1/2] Update 2020_04_17_160240_create_permission_table.php --- .../migrations/2020_04_17_160240_create_permission_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/migrations/2020_04_17_160240_create_permission_table.php b/src/Database/migrations/2020_04_17_160240_create_permission_table.php index 807a9cf..ecb8d35 100644 --- a/src/Database/migrations/2020_04_17_160240_create_permission_table.php +++ b/src/Database/migrations/2020_04_17_160240_create_permission_table.php @@ -27,6 +27,6 @@ public function up() */ public function down() { - Schema::dropIfExists('permission'); + Schema::dropIfExists('permissions'); } } From 2cc25304e06046d09b2120ed058a0ea8daa4d9ee Mon Sep 17 00:00:00 2001 From: Amir Yousefi Date: Mon, 11 Nov 2024 18:07:20 +0330 Subject: [PATCH 2/2] Update 2020_04_17_155932_add_role_id_to_users.php --- .../migrations/2020_04_17_155932_add_role_id_to_users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/migrations/2020_04_17_155932_add_role_id_to_users.php b/src/Database/migrations/2020_04_17_155932_add_role_id_to_users.php index ad3e080..1a77e94 100644 --- a/src/Database/migrations/2020_04_17_155932_add_role_id_to_users.php +++ b/src/Database/migrations/2020_04_17_155932_add_role_id_to_users.php @@ -30,7 +30,7 @@ public function up() public function down() { Schema::table('users', function (Blueprint $table) { - $table->dropForeign('role_id'); + $table->dropForeign(['role_id']); $table->dropColumn('role_id'); }); }