add column for selfavatar_sent timestamp

This commit is contained in:
B. Petersen
2019-12-05 14:35:11 +01:00
committed by holger krekel
parent 541710147a
commit 251aa22c4c

View File

@@ -859,6 +859,14 @@ fn open(
)?;
sql.set_raw_config_int(context, "dbversion", 60)?;
}
if dbversion < 61 {
info!(context, "[migration] v61");
sql.execute(
"ALTER TABLE contacts ADD COLUMN selfavatar_sent INTEGER DEFAULT 0;",
NO_PARAMS,
)?;
sql.set_raw_config_int(context, "dbversion", 61)?;
}
// (2) updates that require high-level objects
// (the structure is complete now and all objects are usable)