status-go/protocol/migrations/sqlite/1715163262_rename_peersyncing_group_id_field.up.sql
Alexander c46e395a58
Extend peersyncing to sync 1-to-1 messages (#4962)
* fix_: extend peersyncing to sync 1-to-1 messages

* fix_: tests
2024-05-14 12:20:13 +02:00

6 lines
212 B
SQL

DROP INDEX IF EXISTS peersyncing_messages_timestamp;
ALTER TABLE peersyncing_messages RENAME COLUMN group_id TO chat_id;
CREATE INDEX peersyncing_messages_timestamp ON peersyncing_messages(chat_id, timestamp);