From e7a1ec227866c3ed0bc3c43ece43a7521bb85af5 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 1 May 2017 17:03:47 +0200 Subject: [PATCH] Fix key_id --- data/web/inc/init_db.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/web/inc/init_db.inc.php b/data/web/inc/init_db.inc.php index ed32b7e7..d856f26b 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 = "01052017_1619"; + $db_version = "01052017_1702"; $stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); @@ -248,6 +248,7 @@ function init_db_schema() { "tfa" => array( "cols" => array( "id" => "INT NOT NULL AUTO_INCREMENT", + "key_id" => "VARCHAR(255) NOT NULL", "username" => "VARCHAR(255) NOT NULL", "authmech" => "ENUM('yubi_otp', 'u2f', 'hotp', 'totp')", "secret" => "VARCHAR(255) DEFAULT NULL",