Browse Source

[Web] Fix init db

André 7 years ago
parent
commit
3de79b85ef
1 changed files with 2 additions and 2 deletions
  1. 2 2
      data/web/inc/init_db.inc.php

+ 2 - 2
data/web/inc/init_db.inc.php

@@ -3,7 +3,7 @@ function init_db_schema() {
   try {
   try {
     global $pdo;
     global $pdo;
 
 
-    $db_version = "14112017_1149";
+    $db_version = "14112017_1049";
 
 
     $stmt = $pdo->query("SHOW TABLES LIKE 'versions'");
     $stmt = $pdo->query("SHOW TABLES LIKE 'versions'");
     $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
     $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
@@ -285,7 +285,7 @@ function init_db_schema() {
           "active" => "TINYINT(1) NOT NULL DEFAULT '1'"
           "active" => "TINYINT(1) NOT NULL DEFAULT '1'"
         ),
         ),
         "keys" => array(
         "keys" => array(
-          "key" => array(
+          "unique" => array(
             "username" => array("username")
             "username" => array("username")
           )
           )
         ),
         ),