From 2a92f87f98e66d5936fcc98d12a88e082e8b7cc0 Mon Sep 17 00:00:00 2001 From: Anton Komarev Date: Wed, 13 Sep 2023 21:21:51 +0300 Subject: [PATCH] Code style --- .../2023_09_07_173419_add_parent_id_to_users_table.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/database/migrations/2023_09_07_173419_add_parent_id_to_users_table.php b/tests/database/migrations/2023_09_07_173419_add_parent_id_to_users_table.php index 76e4402..3360442 100644 --- a/tests/database/migrations/2023_09_07_173419_add_parent_id_to_users_table.php +++ b/tests/database/migrations/2023_09_07_173419_add_parent_id_to_users_table.php @@ -17,6 +17,8 @@ public function up(): void public function down(): void { - throw new \Exception('Migration is irreversible'); + Schema::table('users', function (Blueprint $table) { + $table->dropColumn(['parent_id']); + }); } };