Use footer as a contact status

This commit is contained in:
link2xt
2021-02-11 08:43:50 +03:00
committed by link2xt
parent 59f9fc7cbf
commit 0601b05cb7
10 changed files with 167 additions and 33 deletions

View File

@@ -1500,6 +1500,15 @@ CREATE INDEX devmsglabels_index1 ON devmsglabels (label);
.await?;
sql.set_raw_config_int(context, "dbversion", 74).await?;
}
if dbversion < 75 {
info!(context, "[migration] v75");
sql.execute(
"ALTER TABLE contacts ADD COLUMN status TEXT DEFAULT '';",
paramsv![],
)
.await?;
sql.set_raw_config_int(context, "dbversion", 75).await?;
}
// (2) updates that require high-level objects
// (the structure is complete now and all objects are usable)