botserver/migrations/automation/6.2.0/down.sql
Rodrigo Rodriguez (Pragmatismo) b103c07248 Fix migration errors and reorganize migration files
- Fixed 'relation session_kb_associations does not exist' error in core consolidated migration.
- Renamed migration directories from timestamp-based to version-based (6.0.x, 6.1.x, 6.2.x).
- Reorganized migrations into dedicated feature folders (products, dashboards, learn, video).
- Updated migration execution order in core/shared/utils.rs.
- Moves legacy migrations to 6.0.x/6.1.x and workflow to 6.2.0.
2026-01-27 13:45:54 -03:00

11 lines
466 B
SQL

-- Drop workflow orchestration tables
DROP INDEX IF EXISTS idx_bot_shared_memory_source;
DROP INDEX IF EXISTS idx_bot_shared_memory_target;
DROP INDEX IF EXISTS idx_workflow_events_name;
DROP INDEX IF EXISTS idx_workflow_events_processed;
DROP INDEX IF EXISTS idx_workflow_executions_bot_id;
DROP INDEX IF EXISTS idx_workflow_executions_status;
DROP TABLE IF EXISTS bot_shared_memory;
DROP TABLE IF EXISTS workflow_events;
DROP TABLE IF EXISTS workflow_executions;