Skip to content

migrate

migrate(client, options?): Promise<{ applied: number[]; version: number; }>

Defined in: packages/store-postgres/src/migrations.ts:210

Applies the migrations that are missing, in one transaction under an advisory lock, so several processes starting at once cannot apply the same migration twice. Returns the versions applied.

PgClient

NamingOptions = {}

Promise<{ applied: number[]; version: number; }>