/** * Custom migration script - why? * Well migration scripts aren't so complex, and we haven't found a simple enough library * to deserve a new dependency. We like this setup because we can customize it easily * and it's pretty easy to understand. * * This migration system handles both custom TypeScript migrations and * SQL migrations generated by Drizzle. */ import type { PoolClient } from 'pg'; export type Migration = { name: string; up?: (client: PoolClient) => Promise; /** per-migration timeout in ms, overrides defaultTimeout */ timeout?: number; }; export type MigrateOptions = { connectionString: string; migrations: Record Promise>; createDatabases?: string[]; onMigrationComplete?: () => Promise; gitSha?: string; cvrDb?: string; changeDb?: string; /** call process.exit(0) after migrations complete (default: false) */ forceExit?: boolean; /** default timeout for all migrations in ms (default: 5000) */ defaultTimeout?: number; }; export declare function migrate(options: MigrateOptions): Promise; /** load migration files from a directory (for non-vite contexts like bun scripts) */ export declare function loadMigrationsFromDir(dir: string): Record Promise>; //# sourceMappingURL=migrate.d.ts.map