mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Add some log messages, that migrations are in progress
This commit is contained in:
parent
9f79b85579
commit
3df4bde032
1 changed files with 2 additions and 0 deletions
|
@ -787,6 +787,7 @@ Cache::runMigrations()
|
|||
}},
|
||||
};
|
||||
|
||||
nhlog::db()->info("Running migrations, this may take a while!");
|
||||
for (const auto &[target_version, migration] : migrations) {
|
||||
if (target_version > stored_version)
|
||||
if (!migration()) {
|
||||
|
@ -794,6 +795,7 @@ Cache::runMigrations()
|
|||
return false;
|
||||
}
|
||||
}
|
||||
nhlog::db()->info("Migrations finished.");
|
||||
|
||||
setCurrentFormat();
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue