We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b000b4d commit dcc2257Copy full SHA for dcc2257
1 file changed
database/migrations/2017_04_15_125021_UpgradeTaskSystem.php
@@ -30,10 +30,6 @@ public function up()
30
$task->save();
31
}
32
});
33
-
34
- Schema::table('tasks', function (Blueprint $table) {
35
- $table->unsignedInteger('user_id')->nullable(false)->change();
36
- });
37
38
39
/**
@@ -44,7 +40,8 @@ public function up()
44
40
public function down()
45
41
{
46
42
Schema::table('tasks', function (Blueprint $table) {
47
- $table->dropForeign(['server_id', 'user_id']);
43
+ $table->dropForeign(['server_id']);
+ $table->dropForeign(['user_id']);
48
49
$table->renameColumn('server_id', 'server');
50
$table->dropColumn('user_id');
0 commit comments