From dcc2257fa74fda6e3e34208f2f3f2803551a2902 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 15 Apr 2017 23:40:11 -0400 Subject: [PATCH] Do things correctly... --- .../migrations/2017_04_15_125021_UpgradeTaskSystem.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/database/migrations/2017_04_15_125021_UpgradeTaskSystem.php b/database/migrations/2017_04_15_125021_UpgradeTaskSystem.php index 161234f47..16e4d4e9d 100644 --- a/database/migrations/2017_04_15_125021_UpgradeTaskSystem.php +++ b/database/migrations/2017_04_15_125021_UpgradeTaskSystem.php @@ -30,10 +30,6 @@ class UpgradeTaskSystem extends Migration $task->save(); } }); - - Schema::table('tasks', function (Blueprint $table) { - $table->unsignedInteger('user_id')->nullable(false)->change(); - }); } /** @@ -44,7 +40,8 @@ class UpgradeTaskSystem extends Migration public function down() { Schema::table('tasks', function (Blueprint $table) { - $table->dropForeign(['server_id', 'user_id']); + $table->dropForeign(['server_id']); + $table->dropForeign(['user_id']); $table->renameColumn('server_id', 'server'); $table->dropColumn('user_id');