diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-02 16:44:50 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-02 16:44:50 +0200 |
commit | dad2de7ba2323ff0f5c229968ec95f05b10b6f45 (patch) | |
tree | 598406032493e10456a440ceb16a3586267cf550 /src/Cache.h | |
parent | Merge pull request #184 from shocklateboy92/features/backlog-progress (diff) | |
download | nheko-dad2de7ba2323ff0f5c229968ec95f05b10b6f45.tar.xz |
Add support for db migrations
Diffstat (limited to 'src/Cache.h')
-rw-r--r-- | src/Cache.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Cache.h b/src/Cache.h index 99c63550..12465c9d 100644 --- a/src/Cache.h +++ b/src/Cache.h @@ -111,10 +111,15 @@ removeRoom(const QString &roomid); void setup(); -bool -isFormatValid(); +//! returns if the format is current, older or newer +cache::CacheVersion +formatVersion(); +//! set the format version to the current version void setCurrentFormat(); +//! migrates db to the current format +bool +runMigrations(); std::map<QString, mtx::responses::Timeline> roomMessages(); |