diff --git a/database/migrations/2017_03_05_212803_DeleteServiceExecutableOption.php b/database/migrations/2017_03_05_212803_DeleteServiceExecutableOption.php index 5a1df2afb..70b718440 100644 --- a/database/migrations/2017_03_05_212803_DeleteServiceExecutableOption.php +++ b/database/migrations/2017_03_05_212803_DeleteServiceExecutableOption.php @@ -1,5 +1,6 @@ renameColumn('file', 'folder'); - $table->text('description')->nullable()->change(); - $table->text('startup')->nullable()->change(); - }); - // Attempt to fix any startup commands for servers // that we possibly can. foreach (ServiceOption::with('servers')->get() as $option) { @@ -34,7 +29,10 @@ class DeleteServiceExecutableOption extends Migration } Schema::table('services', function (Blueprint $table) { + $table->renameColumn('file', 'folder'); $table->dropColumn('executable'); + $table->text('description')->nullable()->change(); + $table->text('startup')->nullable()->change(); }); }); }