further Davidson CI testing & AI refinement
This commit is contained in:
@@ -11,6 +11,11 @@ function getDbConnection(): PDO
|
||||
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
$pdo->exec('PRAGMA foreign_keys = ON');
|
||||
$pdo->exec('PRAGMA busy_timeout = 5000');
|
||||
// WAL lets readers proceed without blocking a writer's commit (and vice versa),
|
||||
// which the default rollback-journal mode doesn't: two concurrent requests each
|
||||
// holding open, unfetched-to-completion statement handles could otherwise make a
|
||||
// writer's COMMIT fail with "database is locked" even within the busy_timeout.
|
||||
$pdo->exec('PRAGMA journal_mode = WAL');
|
||||
$pdo->exec('CREATE TABLE IF NOT EXISTS users (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
username TEXT NOT NULL UNIQUE,
|
||||
|
||||
Reference in New Issue
Block a user