From 23e13c91e44e9d1fcbe2215f16d10117de4d0e84 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 21 Aug 2018 12:03:40 +0200 Subject: Separate UIDs and revisions --- common/domain/typeimplementations.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'common/domain/typeimplementations.cpp') diff --git a/common/domain/typeimplementations.cpp b/common/domain/typeimplementations.cpp index aedf889..f969072 100644 --- a/common/domain/typeimplementations.cpp +++ b/common/domain/typeimplementations.cpp @@ -89,7 +89,7 @@ void TypeImplementation::configure(TypeIndex &index) QMap TypeImplementation::typeDatabases() { - return merge(QMap{{QByteArray{Mail::name} + ".main", 0}}, MailIndexConfig::databases()); + return merge(QMap{{QByteArray{Mail::name} + ".main", Storage::IntegerKeys}}, MailIndexConfig::databases()); } void TypeImplementation::configure(IndexPropertyMapper &indexPropertyMapper) @@ -132,7 +132,7 @@ void TypeImplementation::configure(TypeIndex &index) QMap TypeImplementation::typeDatabases() { - return merge(QMap{{QByteArray{Folder::name} + ".main", 0}}, FolderIndexConfig::databases()); + return merge(QMap{{QByteArray{Folder::name} + ".main", Storage::IntegerKeys}}, FolderIndexConfig::databases()); } void TypeImplementation::configure(PropertyMapper &propertyMapper) @@ -157,7 +157,7 @@ void TypeImplementation::configure(TypeIndex &index) QMap TypeImplementation::typeDatabases() { - return merge(QMap{{QByteArray{Contact::name} + ".main", 0}}, ContactIndexConfig::databases()); + return merge(QMap{{QByteArray{Contact::name} + ".main", Storage::IntegerKeys}}, ContactIndexConfig::databases()); } void TypeImplementation::configure(PropertyMapper &propertyMapper) @@ -185,7 +185,7 @@ void TypeImplementation::configure(TypeIndex &index) QMap TypeImplementation::typeDatabases() { - return merge(QMap{{QByteArray{Addressbook::name} + ".main", 0}}, AddressbookIndexConfig::databases()); + return merge(QMap{{QByteArray{Addressbook::name} + ".main", Storage::IntegerKeys}}, AddressbookIndexConfig::databases()); } void TypeImplementation::configure(PropertyMapper &propertyMapper) @@ -207,7 +207,7 @@ void TypeImplementation::configure(TypeIndex &index) QMap TypeImplementation::typeDatabases() { - return merge(QMap{{QByteArray{Event::name} + ".main", 0}}, EventIndexConfig::databases()); + return merge(QMap{{QByteArray{Event::name} + ".main", Storage::IntegerKeys}}, EventIndexConfig::databases()); } void TypeImplementation::configure(PropertyMapper &propertyMapper) @@ -235,7 +235,7 @@ void TypeImplementation::configure(TypeIndex &index) QMap TypeImplementation::typeDatabases() { - return merge(QMap{{QByteArray{Todo::name} + ".main", 0}}, TodoIndexConfig::databases()); + return merge(QMap{{QByteArray{Todo::name} + ".main", Storage::IntegerKeys}}, TodoIndexConfig::databases()); } void TypeImplementation::configure(PropertyMapper &propertyMapper) @@ -266,7 +266,7 @@ void TypeImplementation::configure(TypeIndex &index) QMap TypeImplementation::typeDatabases() { - return merge(QMap{{QByteArray{Calendar::name} + ".main", 0}}, CalendarIndexConfig::databases()); + return merge(QMap{{QByteArray{Calendar::name} + ".main", Storage::IntegerKeys}}, CalendarIndexConfig::databases()); } void TypeImplementation::configure(PropertyMapper &propertyMapper) -- cgit v1.2.3