add hop info

add hop info creation

Save it to the db

format and fix clippy

replace `and_then` with simple check

cargo fmt

chage table to get info from
This commit is contained in:
Sebastian
2021-07-08 21:24:13 +02:00
committed by Sebastian Klähn
parent 5e29cae81a
commit d185318f46
5 changed files with 68 additions and 2 deletions

View File

@@ -475,6 +475,10 @@ paramsv![]
// this way, the app looks familiar after the contact request upgrade.
info!(context, "[migration] v78");
sql.execute_migration("UPDATE chats SET archived=1 WHERE blocked=2;", 78)
}
if dbversion < 79 {
info!(context, "[migration] v79");
sql.execute_migration("ALTER TABLE msgs ADD COLUMN hop_info TEXT DEFAULT '';", 79)
.await?;
}
if dbversion < 79 {