瀏覽代碼

Fix database migration down method

Daniel Supernault 6 年之前
父節點
當前提交
b79fdea270
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      database/migrations/2019_01_11_005556_update_profiles_table.php

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