MCPcopy
hub / github.com/simstudioai/sim / migrate.ts

File migrate.ts

packages/db/scripts/migrate.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { getPostgresErrorCode } from '@sim/utils/errors'
2import { sleep } from '@sim/utils/helpers'
3import { backoffWithJitter } from '@sim/utils/retry'
4import { drizzle } from 'drizzle-orm/postgres-js'

Callers

nothing calls this directly

Calls 8

connectWithRetryFunction · 0.85
acquireMigrationLockFunction · 0.85
runMigrationsWithRetryFunction · 0.85
warnOnInvalidIndexesFunction · 0.85
releaseMigrationLockFunction · 0.85
printMigrationErrorFunction · 0.85
errorMethod · 0.80
logMethod · 0.80

Tested by

no test coverage detected