-- 0007_chat_adapter down: drop the adapter_id column and its index. -- SQLite DROP COLUMN (3.35+) cannot drop a column that is still referenced by an -- index, so the adapter index is dropped first, then the column. DROP INDEX IF EXISTS idx_chat_msgs_adapter_created; ALTER TABLE chat_messages DROP COLUMN adapter_id;