Change synchronous to NORMAL from FULL

This commit is contained in:
Simon Quigley 2025-01-24 22:02:34 -06:00
parent 0dd70c9545
commit 0e26020d13

View File

@ -321,13 +321,11 @@ bool CiLogic::init_database(const QString& connectionName, const QString& databa
// Apply PRAGMAs
QSqlQuery pragmaQuery(baseDb);
pragmaQuery.exec("PRAGMA journal_mode = WAL;");
pragmaQuery.exec("PRAGMA synchronous = FULL;");
pragmaQuery.exec("PRAGMA synchronous = NORMAL;");
pragmaQuery.exec("PRAGMA foreign_keys = ON;");
// Run the schema creation (or migration) statements
QStringList sqlStatements = QString(R"(
PRAGMA foreign_keys = ON;
CREATE TABLE IF NOT EXISTS person (
id INTEGER PRIMARY KEY,
username TEXT NOT NULL,