[Web] Fix init db

master
André 2017-11-14 12:37:08 +01:00
parent 7bb1e2e40e
commit 4d6ddc1db4
1 changed files with 4 additions and 7 deletions

View File

@ -3,7 +3,7 @@ function init_db_schema() {
try { try {
global $pdo; global $pdo;
$db_version = "08112017_1049"; $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,11 +285,8 @@ function init_db_schema() {
"active" => "TINYINT(1) NOT NULL DEFAULT '1'" "active" => "TINYINT(1) NOT NULL DEFAULT '1'"
), ),
"keys" => array( "keys" => array(
"primary" => array( "unique" => array(
"" => array("username") "username" => array("username")
),
"key" => array(
"domain" => array("domain")
) )
), ),
"attr" => "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC" "attr" => "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC"
@ -718,4 +715,4 @@ function init_db_schema() {
); );
} }
} }
?> ?>