From 7d0f299b303c2ddf6ddc930da91df0e9a3c57080 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Tue, 23 Feb 2021 21:28:33 -0800 Subject: [PATCH] Fix sftp port being signed int; closes #2992 --- ..._23_212657_make_sftp_port_unsigned_int.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2021_02_23_212657_make_sftp_port_unsigned_int.php diff --git a/database/migrations/2021_02_23_212657_make_sftp_port_unsigned_int.php b/database/migrations/2021_02_23_212657_make_sftp_port_unsigned_int.php new file mode 100644 index 00000000..580e07e4 --- /dev/null +++ b/database/migrations/2021_02_23_212657_make_sftp_port_unsigned_int.php @@ -0,0 +1,32 @@ +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(); + }); + } +}