From 7bbeb17ea2e3831a828986aeafdf66786d281fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Tue, 14 Nov 2017 12:36:24 +0100 Subject: [PATCH 1/4] [Web] Fix init db --- 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 8fe6e7ab..98fc3610 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 = "14112017_1149"; + $db_version = "14112017_1049"; $stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); @@ -285,7 +285,7 @@ function init_db_schema() { "active" => "TINYINT(1) NOT NULL DEFAULT '1'" ), "keys" => array( - "key" => array( + "unique" => array( "username" => array("username") ) ), From 00c205267f48169faf073beff2452649812ca34d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Tue, 14 Nov 2017 13:29:27 +0100 Subject: [PATCH 2/4] [Web] Fix init_db, take 2 --- 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 98fc3610..8fe6e7ab 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 = "14112017_1049"; + $db_version = "14112017_1149"; $stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); @@ -285,7 +285,7 @@ function init_db_schema() { "active" => "TINYINT(1) NOT NULL DEFAULT '1'" ), "keys" => array( - "unique" => array( + "key" => array( "username" => array("username") ) ), From 3de79b85efb41917a3016900f02a2a07aa5fc16c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Tue, 14 Nov 2017 12:36:24 +0100 Subject: [PATCH 3/4] [Web] Fix init db --- 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 8fe6e7ab..98fc3610 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 = "14112017_1149"; + $db_version = "14112017_1049"; $stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); @@ -285,7 +285,7 @@ function init_db_schema() { "active" => "TINYINT(1) NOT NULL DEFAULT '1'" ), "keys" => array( - "key" => array( + "unique" => array( "username" => array("username") ) ), From 39b560d992a938f8a54d1df98fbe93936d4fa3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Tue, 14 Nov 2017 13:29:27 +0100 Subject: [PATCH 4/4] [Web] Fix init_db, take 2 --- 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 98fc3610..8fe6e7ab 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 = "14112017_1049"; + $db_version = "14112017_1149"; $stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); @@ -285,7 +285,7 @@ function init_db_schema() { "active" => "TINYINT(1) NOT NULL DEFAULT '1'" ), "keys" => array( - "unique" => array( + "key" => array( "username" => array("username") ) ),