Documentation
    Preparing search index...
    • Discovers and runs pending Drizzle ORM migrations against the provided database.

      Migration folders are resolved by searching the following paths relative to baseFolder (or process.cwd() when omitted): ./db/migrations, ./src/db/migrations, ./migrations, ./src/migrations.

      Parameters

      • drizzle: NodePgDatabase

        A Drizzle ORM NodePgDatabase instance.

      • migrationsSchema: string

        The Postgres schema used to store the migrations table.

      • OptionalbaseFolder: string

        Optional base directory used to locate the migrations folder.

      Returns Promise<void>

      A promise that resolves when all pending migrations have been applied.

      Error When no migrations folder is found or when a migration fails.