Skip to content

migratePostgres

migratePostgres(pool, options?): Promise<void>

Defined in: store/postgres.ts:109

Creates the store's schema and tables if they do not exist. Safe to run repeatedly and concurrently (a transaction-scoped advisory lock serializes runs per schema). postgresStore does this lazily, so calling it is optional; it is named migratePostgres rather than migrate so it cannot be confused with a game's migrate hook (ADR 0009) or with the other adapters' helpers.

PostgresPool

PostgresSchemaOptions = {}

Promise<void>