1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 09:02:28 +01:00

Fix sftp port being signed int; closes #2992

This commit is contained in:
Dane Everitt 2021-02-23 21:28:33 -08:00
parent 1b2c4931ee
commit 7d0f299b30
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class MakeSftpPortUnsignedInt extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('nodes', function (Blueprint $table) {
$table->unsignedSmallInteger('daemonSFTP')->default(2022)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('nodes', function (Blueprint $table) {
$table->smallInteger('daemonSFTP')->default(2022)->change();
});
}
}