// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors
// SPDX-License-Identifier: Apache-2.0
/*
* Generated by @medplum/generator
* Do not edit manually.
*/
import type { PoolClient } from 'pg';
export async function run(client: PoolClient): Promise<void> {
await client.query('ALTER TABLE IF EXISTS "Appointment" ADD COLUMN IF NOT EXISTS "end" TIMESTAMPTZ');
await client.query('CREATE INDEX CONCURRENTLY IF NOT EXISTS Appointment_end_idx ON "Appointment" ("end")');
await client.query('ALTER TABLE IF EXISTS "Slot" ADD COLUMN IF NOT EXISTS "end" TIMESTAMPTZ');
await client.query('CREATE INDEX CONCURRENTLY IF NOT EXISTS Slot_end_idx ON "Slot" ("end")');
}