---
addressbook/libedata-book/e-book-sqlite.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/addressbook/libedata-book/e-book-sqlite.c b/addressbook/libedata-book/e-book-sqlite.c
index 09eceff..370c492 100644
--- a/addressbook/libedata-book/e-book-sqlite.c
+++ b/addressbook/libedata-book/e-book-sqlite.c
@@ -244,7 +244,7 @@ ebsql_init_debug (void)
} \
} G_STMT_END
-#define FOLDER_VERSION 8
+#define FOLDER_VERSION 9
#define INSERT_MULTI_STMT_BYTES 128
#define COLUMN_DEFINITION_BYTES 32
#define GENERATED_QUERY_BYTES 1024
@@ -404,7 +404,8 @@ static EContactField default_summary_fields[] = {
E_CONTACT_TEL,
E_CONTACT_IS_LIST,
E_CONTACT_LIST_SHOW_ADDRESSES,
- E_CONTACT_WANTS_HTML
+ E_CONTACT_WANTS_HTML,
+ E_CONTACT_X509_CERT,
};
/* Create indexes on full_name and email fields as autocompletion
@@ -2293,6 +2294,13 @@ ebsql_introspect_summary (EBookSqlite *ebsql,
summary_field->index |= INDEX_FLAG (SORT_KEY);
}
}
+
+ if (previous_schema < 9) {
+ if (summary_field_array_index (summary_fields, E_CONTACT_X509_CERT) < 0) {
+ summary_field_append (summary_fields, ebsql->priv->folderid,
+ E_CONTACT_X509_CERT, NULL);
+ }
+ }
}
introspect_summary_finish:
--
1.9.3
--
David Woodhouse Open Source Technology Centre
David Woodhouse intel com Intel Corporation
Attachment:
smime.p7s
Description: S/MIME cryptographic signature