[Pkg-owncloud-commits] [owncloud-client] 31/115: SyncJournal: Add an index on inode to the journal database.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Aug 29 22:03:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 7fcf7230395b1fe7e8d6950f1f1d5f699f26fa45
Author: Klaas Freitag <freitag at owncloud.com>
Date: Thu Aug 14 13:22:43 2014 +0200
SyncJournal: Add an index on inode to the journal database.
---
src/mirall/syncjournaldb.cpp | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/mirall/syncjournaldb.cpp b/src/mirall/syncjournaldb.cpp
index 1696a08..89c1238 100644
--- a/src/mirall/syncjournaldb.cpp
+++ b/src/mirall/syncjournaldb.cpp
@@ -319,16 +319,24 @@ bool SyncJournalDb::updateDatabaseStructure()
query.prepare("CREATE INDEX metadata_file_id ON metadata(fileid);");
re = re && query.exec();
- commitInternal("update database structure");
+ commitInternal("update database structure: add fileid col");
}
if( columns.indexOf(QLatin1String("remotePerm")) == -1 ) {
QSqlQuery query(_db);
query.prepare("ALTER TABLE metadata ADD COLUMN remotePerm VARCHAR(128);");
- re = query.exec();
+ re = re && query.exec();
commitInternal("update database structure (remotePerm");
}
+ if( 1 ) {
+ QSqlQuery query(_db);
+ query.prepare("CREATE UNIQUE INDEX IF NOT EXISTS metadata_inode ON metadata(inode);");
+ re = re && query.exec();
+
+ commitInternal("update database structure: add inode index");
+
+ }
return re;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list