Skip to content

Commit dcc2257

Browse files
committed
Do things correctly...
1 parent b000b4d commit dcc2257

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

database/migrations/2017_04_15_125021_UpgradeTaskSystem.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ public function up()
3030
$task->save();
3131
}
3232
});
33-
34-
Schema::table('tasks', function (Blueprint $table) {
35-
$table->unsignedInteger('user_id')->nullable(false)->change();
36-
});
3733
}
3834

3935
/**
@@ -44,7 +40,8 @@ public function up()
4440
public function down()
4541
{
4642
Schema::table('tasks', function (Blueprint $table) {
47-
$table->dropForeign(['server_id', 'user_id']);
43+
$table->dropForeign(['server_id']);
44+
$table->dropForeign(['user_id']);
4845

4946
$table->renameColumn('server_id', 'server');
5047
$table->dropColumn('user_id');

0 commit comments

Comments
 (0)