lib: Implement versioning in the database and provide upgrade function.
[notmuch] / lib / database-private.h
index 643b0507dc26c0500d980993107d9d7e7b911fe1..5891584ec978e5f2868e5c87533462bff083b775 100644 (file)
@@ -33,6 +33,8 @@ struct _notmuch_database {
     Xapian::QueryParser *query_parser;
     Xapian::TermGenerator *term_gen;
     Xapian::ValueRangeProcessor *value_range_processor;
+
+    notmuch_bool_t needs_upgrade;
 };
 
 /* Convert tags from Xapian internal format to notmuch format.