mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
ed5a5c154d
Move to a monorepo structure with submodules - Rename status-protocol-go to status-go/protocol
14 lines
368 B
SQL
14 lines
368 B
SQL
DELETE FROM sessions;
|
|
DELETE FROM keys;
|
|
DROP TABLE ratchet_info;
|
|
|
|
CREATE TABLE ratchet_info_v2 (
|
|
bundle_id BLOB NOT NULL,
|
|
ephemeral_key BLOB,
|
|
identity BLOB NOT NULL,
|
|
symmetric_key BLOB NOT NULL,
|
|
installation_id TEXT NOT NULL,
|
|
UNIQUE(bundle_id, identity, installation_id) ON CONFLICT REPLACE,
|
|
FOREIGN KEY (bundle_id) REFERENCES bundles(signed_pre_key)
|
|
);
|