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

8 lines
250 B
SQL

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