Skip to main content
Module

x/pg_mem/migrate/migrate-interfaces.ts>MigrationParams

An in memory postgres DB instance for your unit tests
Latest
interface MigrationParams
import { type MigrationParams } from "https://deno.land/x/pg_mem@2.8.1/migrate/migrate-interfaces.ts";

Properties

optional
force: boolean

If true, will force the migration API to rollback and re-apply the latest migration over again each time when Node.js app launches.

optional
table: string

Migrations table name. Default is 'migrations'

optional
migrationsPath: string

Path to the migrations folder. Default is path.join(process.cwd(), 'migrations')

optional
migrations: readonly MigrationData[]

Migration data read from migrations folder. migrationsPath will be ignored if this is provided.