buster/api/migrations/2025-01-28-174921_adjust_me.../down.sql

12 lines
313 B
MySQL
Raw Normal View History

-- This file should undo anything in `up.sql`
-- Drop indexes
2025-03-01 00:41:44 +08:00
DROP INDEX messages_chat_id_idx;
DROP INDEX messages_created_by_idx;
DROP INDEX messages_created_at_idx;
-- Drop new messages table
DROP TABLE messages;
-- Rename deprecated table back to messages
ALTER TABLE messages_deprecated RENAME TO messages;