77b6133e2a
- 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.
21 lines
435 B
PL/PgSQL
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;
|
|
|