buster/api/migrations/2025-01-27-390057_adjust_th.../down.sql

12 lines
305 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 chats_organization_id_idx;
DROP INDEX chats_created_by_idx;
DROP INDEX chats_created_at_idx;
-- Drop new threads table
2025-03-01 00:41:44 +08:00
DROP TABLE chats;
-- Rename deprecated table back to threads
ALTER TABLE threads_deprecated RENAME TO threads;