Change synchronous to NORMAL from FULL
This commit is contained in:
parent
0dd70c9545
commit
0e26020d13
@ -321,13 +321,11 @@ bool CiLogic::init_database(const QString& connectionName, const QString& databa
|
|||||||
// Apply PRAGMAs
|
// Apply PRAGMAs
|
||||||
QSqlQuery pragmaQuery(baseDb);
|
QSqlQuery pragmaQuery(baseDb);
|
||||||
pragmaQuery.exec("PRAGMA journal_mode = WAL;");
|
pragmaQuery.exec("PRAGMA journal_mode = WAL;");
|
||||||
pragmaQuery.exec("PRAGMA synchronous = FULL;");
|
pragmaQuery.exec("PRAGMA synchronous = NORMAL;");
|
||||||
pragmaQuery.exec("PRAGMA foreign_keys = ON;");
|
pragmaQuery.exec("PRAGMA foreign_keys = ON;");
|
||||||
|
|
||||||
// Run the schema creation (or migration) statements
|
// Run the schema creation (or migration) statements
|
||||||
QStringList sqlStatements = QString(R"(
|
QStringList sqlStatements = QString(R"(
|
||||||
PRAGMA foreign_keys = ON;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS person (
|
CREATE TABLE IF NOT EXISTS person (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
username TEXT NOT NULL,
|
username TEXT NOT NULL,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user