summary refs log tree commit diff
path: root/src/Cache.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-02 16:44:50 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-02 16:44:50 +0200
commitdad2de7ba2323ff0f5c229968ec95f05b10b6f45 (patch)
tree598406032493e10456a440ceb16a3586267cf550 /src/Cache.h
parentMerge pull request #184 from shocklateboy92/features/backlog-progress (diff)
downloadnheko-dad2de7ba2323ff0f5c229968ec95f05b10b6f45.tar.xz
Add support for db migrations
Diffstat (limited to 'src/Cache.h')
-rw-r--r--src/Cache.h9
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();