Skip to content

v0.3.1

Choose a tag to compare

@brunolau brunolau released this 06 Feb 08:17
· 216 commits to main since this release

0.3.1

This release fixes minor issue with migration scaffolder

Bug Fixes

Fixed scaffoldEmpty() Using Incompatible querySimple() Method

Fixed MigrationScaffold.scaffoldEmpty() generating migration templates that used db.getClient().querySimple() instead of db.query(). The querySimple() method only exists on PostgresClient and BunClient, causing runtime errors when using PgClient.

Before (broken with PgClient):

await db.getClient().querySimple(`
  -- Your UP migration SQL
`);

After (works with all clients):

await db.query(`
  -- Your UP migration SQL
`);

Files Changed

  • src/migration/migration-scaffold.ts - Fixed generateEmptyMigrationFile() to use db.query()