ALTER TABLE sessions
    ADD COLUMN topic_created_by_bot BOOLEAN NOT NULL DEFAULT FALSE;

UPDATE sessions
SET topic_created_by_bot = TRUE
WHERE thread_id IS NOT NULL;
