From aa5128997ecad810e807623971326c05870b04de Mon Sep 17 00:00:00 2001 From: andryyy Date: Sun, 16 Feb 2020 13:05:55 +0100 Subject: [PATCH] [Web] Fix data type for port1 in imapsync --- data/web/inc/init_db.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/web/inc/init_db.inc.php b/data/web/inc/init_db.inc.php index 02813ece..1c3e5229 100644 --- a/data/web/inc/init_db.inc.php +++ b/data/web/inc/init_db.inc.php @@ -3,7 +3,7 @@ function init_db_schema() { try { global $pdo; - $db_version = "28012020_0755"; + $db_version = "16022020_1304"; $stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); @@ -553,7 +553,7 @@ function init_db_schema() { "maxage" => "SMALLINT NOT NULL DEFAULT '0'", "mins_interval" => "VARCHAR(50) NOT NULL DEFAULT '0'", "maxbytespersecond" => "VARCHAR(50) NOT NULL DEFAULT '0'", - "port1" => "SMALLINT NOT NULL", + "port1" => "SMALLINT UNSIGNED NOT NULL", "enc1" => "ENUM('TLS','SSL','PLAIN') DEFAULT 'TLS'", "delete2duplicates" => "TINYINT(1) NOT NULL DEFAULT '1'", "delete1" => "TINYINT(1) NOT NULL DEFAULT '0'",