status-go/protocol/migrations/sqlite/1664195977_add_deleted_for_...

12 lines
352 B
SQL

ALTER TABLE user_messages ADD COLUMN deleted_for_me BOOL DEFAULT FALSE;
CREATE TABLE user_messages_deleted_for_mes (
clock INTEGER NOT NULL,
message_id VARCHAR NOT NULL,
source VARCHAR NOT NULL,
id VARCHAR NOT NULL,
PRIMARY KEY(id)
);
CREATE INDEX user_messages_deleted_for_mes_message_id_source ON user_messages_edits(message_id, source);