Skip to main content
Glama
008-case-insensitive-names.sql580 B
-- We only need to normalize existing strings to lower-case and add expression unique indexes -- for defense-in-depth. Idempotent: LOWER(name) is stable on re-run. UPDATE libraries SET name = LOWER(name); UPDATE versions SET name = LOWER(name) WHERE name IS NOT NULL AND name <> ''; CREATE UNIQUE INDEX IF NOT EXISTS idx_libraries_lower_name ON libraries(LOWER(name)); CREATE UNIQUE INDEX IF NOT EXISTS idx_versions_library_lower_name ON versions(library_id, LOWER(name)); -- Existing UNIQUE(library_id, name) plus these expression indexes enforce case-insensitive uniqueness.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arabold/docs-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server