Skip to main content
Glama
v12.ts1.63 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { PoolClient } from 'pg'; import { prepareCustomMigrationJobData, runCustomMigration } from '../../workers/post-deploy-migration'; import * as fns from '../migrate-functions'; import type { MigrationActionResult } from '../types'; import type { CustomPostDeployMigration } from './types'; export const migration: CustomPostDeployMigration = { type: 'custom', prepareJobData: (asyncJob) => prepareCustomMigrationJobData(asyncJob), run: async (repo, job, jobData) => runCustomMigration(repo, job, jobData, callback), }; // prettier-ignore async function callback(client: PoolClient, results: MigrationActionResult[]): Promise<void> { await fns.idempotentCreateIndex(client, results, 'AllergyIntolerance_encounter_idx', `CREATE INDEX CONCURRENTLY IF NOT EXISTS "AllergyIntolerance_encounter_idx" ON "AllergyIntolerance" ("encounter")`); await fns.idempotentCreateIndex(client, results, 'Immunization_encounter_idx', `CREATE INDEX CONCURRENTLY IF NOT EXISTS "Immunization_encounter_idx" ON "Immunization" ("encounter")`); await fns.idempotentCreateIndex(client, results, 'ProjectMembership___idnt_idx', `CREATE INDEX CONCURRENTLY IF NOT EXISTS "ProjectMembership___idnt_idx" ON "ProjectMembership" USING gin ("__identifier")`); await fns.idempotentCreateIndex(client, results, 'ProjectMembership___idntTextTrgm_idx', `CREATE INDEX CONCURRENTLY IF NOT EXISTS "ProjectMembership___idntTextTrgm_idx" ON "ProjectMembership" USING gin (token_array_to_text("__identifierText") gin_trgm_ops)`); }

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/medplum/medplum'

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