mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
WIP: Start with decryption, and a test for it. Next TODO: SQL table migartion.
This commit is contained in:
@@ -1261,6 +1261,15 @@ CREATE INDEX gossip_timestamp_index ON gossip_timestamp (chat_id, fingerprint);
|
||||
.await?;
|
||||
}
|
||||
|
||||
inc_and_check(&mut migration_version, 134)?;
|
||||
if dbversion < migration_version {
|
||||
sql.execute_migration(
|
||||
"CREATE TABLE symmetric_secrets(
|
||||
chat_id INTEGER PRIMARY KEY NOT NULL,
|
||||
symmetric_secret: ",
|
||||
)
|
||||
}
|
||||
|
||||
let new_version = sql
|
||||
.get_raw_config_int(VERSION_CFG)
|
||||
.await?
|
||||
|
||||
Reference in New Issue
Block a user