Revert "refactored export functionality"

This reverts commit 2616238dc8.
This commit is contained in:
2026-05-22 14:23:39 +02:00
parent 2616238dc8
commit e0be2c501f
6 changed files with 157 additions and 206 deletions

View File

@ -78,12 +78,6 @@ function qdb_open(bool $writable = false): array {
}
$pdo->exec("PRAGMA user_version = " . QDB_VERSION . ";");
$pdo->exec("PRAGMA foreign_keys = ON;");
// Persist upgrade even when opened read-only (otherwise migration is lost on discard)
if (!$writable) {
qdb_save($tmpDb, $lockFp);
return qdb_open(false);
}
}
return [$pdo, $tmpDb, $lockFp];