-- ============================================================ -- Migration 020: No terminal de encerramento pelo bot -- Tabelas: -- bot_flow_nodes -- ============================================================ ALTER TABLE bot_flow_nodes DROP CONSTRAINT IF EXISTS bot_flow_nodes_node_type_check; ALTER TABLE bot_flow_nodes ADD CONSTRAINT bot_flow_nodes_node_type_check CHECK (node_type IN ('greeting', 'question', 'agent', 'close'));