mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 22:26:30 +00:00
cdc7c55030
* feat: add api and handling to delete messages * fix(delete): add whitelist to message types that can be deleted
13 lines
357 B
SQL
13 lines
357 B
SQL
ALTER TABLE user_messages ADD COLUMN deleted BOOL DEFAULT FALSE;
|
|
|
|
CREATE TABLE user_messages_deletes (
|
|
clock INTEGER NOT NULL,
|
|
chat_id VARCHAR NOT NULL,
|
|
message_id VARCHAR NOT NULL,
|
|
source VARCHAR NOT NULL,
|
|
id VARCHAR NOT NULL,
|
|
PRIMARY KEY(id)
|
|
);
|
|
|
|
CREATE INDEX user_messages_deletes_message_id_source ON user_messages_edits(message_id, source);
|