summary refs log tree commit diff
path: root/src/Cache.h
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-05-03 01:56:06 +0200
committerGitHub <noreply@github.com>2020-05-03 01:56:06 +0200
commitccd55c70df1ad57c848e06944d8eef49dc85cdec (patch)
treea9bfae6a1cd69ddde2c076e04b181c2adc1062fd /src/Cache.h
parentMerge pull request #184 from shocklateboy92/features/backlog-progress (diff)
parentAdd delete pending_receipts migration (diff)
downloadnheko-ccd55c70df1ad57c848e06944d8eef49dc85cdec.tar.xz
Merge pull request #189 from Nheko-Reborn/db-migrations
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();