Explorar o código

Fix database migration down method

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
b79fdea270

+ 5 - 3
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');
+        });
     }
 }