mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
SyncJounral: add an index on the error blacklist table
https://github.com/owncloud/enterprise/issues/1035
This commit is contained in:
parent
893e22691d
commit
cd83772112
1 changed files with 7 additions and 0 deletions
|
@ -613,6 +613,13 @@ bool SyncJournalDb::updateErrorBlacklistTableStructure()
|
|||
commitInternal("update database structure: add lastTryTime, ignoreDuration cols");
|
||||
}
|
||||
|
||||
SqlQuery query(_db);
|
||||
query.prepare("CREATE INDEX IF NOT EXISTS blacklist_index ON blacklist(path collate nocase);");
|
||||
if( !query.exec()) {
|
||||
sqlFail("updateErrorBlacklistTableStructure: create index blacklit", query);
|
||||
re = false;
|
||||
}
|
||||
|
||||
return re;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue