1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-27 04:12:28 +01:00

Do things correctly...

This commit is contained in:
Dane Everitt 2017-04-15 23:40:11 -04:00
parent b000b4da43
commit dcc2257fa7
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -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');