mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
0197e6c484
* sync local deleted messages * rebase * add REPLACE * fix lint * defer rows.Close() / rename function * add local pair test * replace unused clock with _
12 lines
408 B
SQL
12 lines
408 B
SQL
CREATE TABLE IF NOT EXISTS user_messages_deleted_for_mes_bk (
|
|
clock INTEGER NOT NULL,
|
|
message_id VARCHAR NOT NULL,
|
|
PRIMARY KEY (message_id)
|
|
);
|
|
|
|
INSERT OR REPLACE INTO user_messages_deleted_for_mes_bk SELECT clock, message_id FROM user_messages_deleted_for_mes;
|
|
|
|
DROP TABLE user_messages_deleted_for_mes;
|
|
|
|
ALTER TABLE user_messages_deleted_for_mes_bk RENAME TO user_messages_deleted_for_mes;
|