revert updated api
This commit is contained in:
2026-05-22 12:27:12 +00:00
parent e0be2c501f
commit c86768e391
17 changed files with 41 additions and 867 deletions

View File

@ -6,7 +6,7 @@ require_once __DIR__ . '/common.php';
define('QDB_PATH', __DIR__ . '/uploads/questionnaire_database');
define('QDB_LOCK', __DIR__ . '/uploads/.qdb_lock');
define('QDB_SCHEMA', __DIR__ . '/schema.sql');
define('QDB_VERSION', 4);
define('QDB_VERSION', 3);
/**
* Decrypt the master DB file into a temp SQLite file, or create a fresh one
@ -72,10 +72,6 @@ function qdb_open(bool $writable = false): array {
if ($currentVersion < QDB_VERSION) {
$pdo->exec("PRAGMA foreign_keys = OFF;");
$pdo->exec($sql);
require_once __DIR__ . '/lib/migrate_v4.php';
if ($currentVersion < 4) {
qdb_migrate_v4($pdo);
}
$pdo->exec("PRAGMA user_version = " . QDB_VERSION . ";");
$pdo->exec("PRAGMA foreign_keys = ON;");
}