From 140326012cfc3db8e9c746487b4893fb336a1acc Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Sun, 19 Aug 2018 10:07:44 +0200 Subject: [PATCH] Fix length of remote column in logs table Otherwise a full non-anonymized IPv6 address won't fit --- 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 95c54472..c318d634 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 = "16082018_2019"; + $db_version = "19082018_1004"; $stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); @@ -376,7 +376,7 @@ function init_db_schema() { "call" => "TEXT", "user" => "VARCHAR(64) NOT NULL", "role" => "VARCHAR(32) NOT NULL", - "remote" => "VARCHAR(32) NOT NULL", + "remote" => "VARCHAR(39) NOT NULL", "time" => "INT(11) NOT NULL" ), "keys" => array(