mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Merge pull request #2357 from thaytan/metadata-index-e2eMangledName
syncjournaldb: index e2eMangledName column in metadata
This commit is contained in:
commit
a4cb7e3040
1 changed files with 9 additions and 0 deletions
|
@ -745,6 +745,15 @@ bool SyncJournalDb::updateMetadataTableStructure()
|
|||
commitInternal("update database structure: add contentChecksum col for uploadinfo");
|
||||
}
|
||||
|
||||
if (true) {
|
||||
SqlQuery query(_db);
|
||||
query.prepare("CREATE INDEX IF NOT EXISTS metadata_e2e_id ON metadata(e2eMangledName);");
|
||||
if (!query.exec()) {
|
||||
sqlFail("updateMetadataTableStructure: create index e2eMangledName", query);
|
||||
re = false;
|
||||
}
|
||||
commitInternal("update database structure: add e2eMangledName index");
|
||||
}
|
||||
|
||||
return re;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue