From 6a415e11d664c3b8d8de9da685677b54366c854a Mon Sep 17 00:00:00 2001 From: Thorsten Rinne Date: Thu, 12 Sep 2024 19:35:50 +0200 Subject: [PATCH] fix: added missing database columns for WebAuthn keys --- phpmyfaq/src/phpMyFAQ/Instance/Database/Mysqli.php | 1 + phpmyfaq/src/phpMyFAQ/Instance/Database/Pgsql.php | 1 + phpmyfaq/src/phpMyFAQ/Instance/Database/Sqlite3.php | 1 + phpmyfaq/src/phpMyFAQ/Instance/Database/Sqlsrv.php | 1 + 4 files changed, 4 insertions(+) diff --git a/phpmyfaq/src/phpMyFAQ/Instance/Database/Mysqli.php b/phpmyfaq/src/phpMyFAQ/Instance/Database/Mysqli.php index 83ef20f351..77ad35fa80 100644 --- a/phpmyfaq/src/phpMyFAQ/Instance/Database/Mysqli.php +++ b/phpmyfaq/src/phpMyFAQ/Instance/Database/Mysqli.php @@ -342,6 +342,7 @@ class Mysqli extends Database implements Driver access_token TEXT NULL DEFAULT NULL, code_verifier VARCHAR(255) NULL DEFAULT NULL, jwt TEXT NULL DEFAULT NULL, + webauthnkeys TEXT NULL DEFAULT NULL, PRIMARY KEY (user_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB', 'faquserdata' => 'CREATE TABLE %sfaquserdata ( diff --git a/phpmyfaq/src/phpMyFAQ/Instance/Database/Pgsql.php b/phpmyfaq/src/phpMyFAQ/Instance/Database/Pgsql.php index dcc8c5c536..f66bb26b00 100644 --- a/phpmyfaq/src/phpMyFAQ/Instance/Database/Pgsql.php +++ b/phpmyfaq/src/phpMyFAQ/Instance/Database/Pgsql.php @@ -339,6 +339,7 @@ class Pgsql extends Database implements Driver access_token TEXT NULL DEFAULT NULL, code_verifier VARCHAR(255) NULL DEFAULT NULL, jwt TEXT NULL DEFAULT NULL, + webauthnkeys TEXT NULL DEFAULT NULL, PRIMARY KEY (user_id))', 'faquserdata' => 'CREATE TABLE %sfaquserdata ( diff --git a/phpmyfaq/src/phpMyFAQ/Instance/Database/Sqlite3.php b/phpmyfaq/src/phpMyFAQ/Instance/Database/Sqlite3.php index 6efb69ed5d..495b06d0cf 100644 --- a/phpmyfaq/src/phpMyFAQ/Instance/Database/Sqlite3.php +++ b/phpmyfaq/src/phpMyFAQ/Instance/Database/Sqlite3.php @@ -337,6 +337,7 @@ class Sqlite3 extends Database implements Driver access_token TEXT NULL DEFAULT NULL, code_verifier VARCHAR(255) NULL DEFAULT NULL, jwt TEXT NULL DEFAULT NULL, + webauthnkeys TEXT NULL DEFAULT NULL, PRIMARY KEY (user_id))', 'faquserdata' => 'CREATE TABLE %sfaquserdata ( diff --git a/phpmyfaq/src/phpMyFAQ/Instance/Database/Sqlsrv.php b/phpmyfaq/src/phpMyFAQ/Instance/Database/Sqlsrv.php index 8fe2da97e3..f4368fdf93 100644 --- a/phpmyfaq/src/phpMyFAQ/Instance/Database/Sqlsrv.php +++ b/phpmyfaq/src/phpMyFAQ/Instance/Database/Sqlsrv.php @@ -337,6 +337,7 @@ class Sqlsrv extends Database implements Driver access_token TEXT NULL DEFAULT NULL, code_verifier VARCHAR(255) NULL DEFAULT NULL, jwt TEXT NULL DEFAULT NULL, + webauthnkeys TEXT NULL DEFAULT NULL, PRIMARY KEY (user_id))', 'faquserdata' => 'CREATE TABLE %sfaquserdata (