mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Set PRAGMA synchronous to NORMAL
This commit is contained in:
parent
b0f6628584
commit
098e04c13f
1 changed files with 6 additions and 0 deletions
|
@ -126,6 +126,12 @@ bool SyncJournalDb::checkConnect()
|
|||
return false;
|
||||
}
|
||||
|
||||
QSqlQuery pragma1("PRAGMA synchronous = NORMAL;", _db);
|
||||
if (!pragma1.exec()) {
|
||||
qWarning() << "Error creating table downloadinfo : " << pragma1.lastError().text();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool rc = updateDatabaseStructure();
|
||||
if( rc ) {
|
||||
_getFileRecordQuery.reset(new QSqlQuery(_db));
|
||||
|
|
Loading…
Reference in a new issue