[Web] Workaround for missing function when using API (fixes #1640)

[Web] Fixes SQL error on admin username change
This commit is contained in:
André
2018-08-05 22:31:53 +02:00
parent 9dd17d4609
commit 73f880ffba
3 changed files with 46 additions and 44 deletions

View File

@@ -3,7 +3,7 @@ function init_db_schema() {
try {
global $pdo;
$db_version = "31072018_2319";
$db_version = "05072018_2319";
$stmt = $pdo->query("SHOW TABLES LIKE 'versions'");
$num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
@@ -147,7 +147,7 @@ function init_db_schema() {
"col" => "username",
"ref" => "admin.username",
"delete" => "CASCADE",
"update" => "NO ACTION"
"update" => "CASCADE"
)
)
),