buster/api/migrations/2025-04-01-184914_add_file_.../down.sql

8 lines
250 B
MySQL
Raw Normal View History

2025-04-02 03:17:24 +08:00
-- Drop indices first
DROP INDEX IF EXISTS idx_chats_most_recent_file_id;
DROP INDEX IF EXISTS idx_chats_most_recent_file_type;
-- Drop columns
ALTER TABLE chats
DROP COLUMN IF EXISTS most_recent_file_id,
DROP COLUMN IF EXISTS most_recent_file_type;