From b79fdea270e318c5ff4224962225aaba9b5cf097 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 13 Feb 2019 13:00:36 -0700 Subject: [PATCH] Fix database migration down method --- .../2019_01_11_005556_update_profiles_table.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/database/migrations/2019_01_11_005556_update_profiles_table.php b/database/migrations/2019_01_11_005556_update_profiles_table.php index 829bedbc4..53eca4d26 100644 --- a/database/migrations/2019_01_11_005556_update_profiles_table.php +++ b/database/migrations/2019_01_11_005556_update_profiles_table.php @@ -27,8 +27,10 @@ class UpdateProfilesTable extends Migration */ public function down() { - $table->dropColumn('unlisted'); - $table->dropColumn('cw'); - $table->dropColumn('no_autolink'); + Schema::table('profiles', function (Blueprint $table) { + $table->dropColumn('unlisted'); + $table->dropColumn('cw'); + $table->dropColumn('no_autolink'); + }); } }