mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Create indexes.
This commit is contained in:
parent
8ffce13e0e
commit
f1078daa08
@ -215,7 +215,20 @@ int csync_journal_create_tables(CSYNC *ctx) {
|
||||
"PRIMARY KEY(phash)"
|
||||
");"
|
||||
);
|
||||
if (result == NULL) {
|
||||
return -1;
|
||||
}
|
||||
c_strlist_destroy(result);
|
||||
|
||||
result = csync_journal_query(ctx,
|
||||
"CREATE INDEX metadata_phash ON metadata(phash);");
|
||||
if (result == NULL) {
|
||||
return -1;
|
||||
}
|
||||
c_strlist_destroy(result);
|
||||
|
||||
result = csync_journal_query(ctx,
|
||||
"CREATE INDEX metadata_inode ON metadata(inode);");
|
||||
if (result == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user