status-go/protocol/migrations/sqlite/1715163262_rename_peersynci...

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);