Files
Enterprise-Knowledge-Base/migrations/versioned/000004_add_mcp_services.down.sql
T
wizardchen 77b6133e2a feat: Add MCP services support and enhance migration scripts
- Introduced new MCP services functionality, including management routes and integration with the agent service.
- Updated Docker Compose configuration to include a new SQL migration for MCP services.
- Enhanced Makefile with new migration commands for versioning and creating migrations.
- Improved chat component to handle selected MCP services in message processing.
- Updated migration documentation to reflect new strategies and added MCP services migration files.
2025-11-09 03:27:24 +08:00

21 lines
435 B
PL/PgSQL

-- Rollback: Remove MCP services table
BEGIN;
-- Drop trigger
DROP TRIGGER IF EXISTS trigger_mcp_services_updated_at ON mcp_services;
-- Drop function
DROP FUNCTION IF EXISTS update_mcp_services_updated_at();
-- Drop indexes
DROP INDEX IF EXISTS idx_mcp_services_tenant_id;
DROP INDEX IF EXISTS idx_mcp_services_enabled;
DROP INDEX IF EXISTS idx_mcp_services_deleted_at;
-- Drop table
DROP TABLE IF EXISTS mcp_services;
COMMIT;