nwaku/migrations/message_store/00006_renameColumn.up.sql

12 lines
270 B
MySQL
Raw Normal View History

ALTER TABLE message RENAME COLUMN receiverTimestamp TO storedAt;
DROP INDEX IF EXISTS i_msg;
CREATE INDEX IF NOT EXISTS i_query ON message (contentTopic, pubsubTopic, storedAt, id);
DROP INDEX IF EXISTS i_rt;
CREATE INDEX IF NOT EXISTS i_ts ON message (storedAt);