Преглед на файлове

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