소스 검색

Fix migration

Daniel Supernault 7 년 전
부모
커밋
1c619701b3
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      database/migrations/2018_08_22_022306_update_settings_table.php

+ 6 - 4
database/migrations/2018_08_22_022306_update_settings_table.php

@@ -28,9 +28,11 @@ class UpdateSettingsTable extends Migration
      */
     public function down()
     {
-        $table->dropColumn('show_profile_followers');
-        $table->dropColumn('show_profile_follower_count');
-        $table->dropColumn('show_profile_following');
-        $table->dropColumn('show_profile_following_count');
+       Schema::table('user_settings', function (Blueprint $table) {
+            $table->dropColumn('show_profile_followers');
+            $table->dropColumn('show_profile_follower_count');
+            $table->dropColumn('show_profile_following');
+            $table->dropColumn('show_profile_following_count');
+        });
     }
 }