diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-30 11:27:33 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-30 15:28:55 +0100 |
commit | 33029ab13cdb378e2b4a0886a591fb02a5cb2b65 (patch) | |
tree | 1ffffda4f125fd4989856a9610d5843f5d097135 /common/storage.h | |
parent | f675a280ad48a9a2ba7b38f81cf0dfdafb3a96b5 (diff) | |
download | sink-33029ab13cdb378e2b4a0886a591fb02a5cb2b65.tar.gz sink-33029ab13cdb378e2b4a0886a591fb02a5cb2b65.zip |
Support for storage upgrades
Diffstat (limited to 'common/storage.h')
-rw-r--r-- | common/storage.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/storage.h b/common/storage.h index 1967a5e..f5f1879 100644 --- a/common/storage.h +++ b/common/storage.h | |||
@@ -235,6 +235,9 @@ public: | |||
235 | 235 | ||
236 | static QByteArray generateUid(); | 236 | static QByteArray generateUid(); |
237 | 237 | ||
238 | static qint64 databaseVersion(const Transaction &); | ||
239 | static void setDatabaseVersion(Transaction &, qint64 revision); | ||
240 | |||
238 | private: | 241 | private: |
239 | std::function<void(const DataStore::Error &error)> mErrorHandler; | 242 | std::function<void(const DataStore::Error &error)> mErrorHandler; |
240 | 243 | ||