node-sql-migrations icon indicating copy to clipboard operation
node-sql-migrations copied to clipboard

raw SQL migrations for node

Results 17 node-sql-migrations issues
Sort by recently updated
recently updated
newest added

When you use require('sql-migrations').migrate(configuration) instead of run() it does not attach adapter. So it breaks with an error: ..../node_modules/sql-migrations/commands/run-migrations-command.js:4 return adapter.appliedMigrations() ^ TypeError: Cannot read property 'appliedMigrations' of undefined migrate()...

Bumps [minimist](https://github.com/minimistjs/minimist) from 0.0.8 to 1.2.8. Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long option followed by single dash [#17](https://github.com/minimistjs/minimist/issues/17) [Tests] Remove duplicate test [#12](https://github.com/minimistjs/minimist/issues/12) [Fix]...

dependencies

https://github.com/aaronabramov/node-sql-migrations/issues/29

The statement `select * from __migrations__;` from [pg.js](https://github.com/aaronabramov/node-sql-migrations/blob/4cede144f8a1813c451f500b38084bf91391fc5a/adapters/pg.js#L27) does not return the migrations in the correct order as no order is specified in the postgres command meaning that the results...

When the migration directory contains additional files, `sql-migrations` aborts with a rather cryptic error: ``` ERROR: TypeError: Cannot read properties of null (reading '0') at /path/to/project/node_modules/sql-migrations/commands/run-migrations-command.js:36:43 ``` The reason is...

I'm not working with Postgres these days. If anyone would like to maintain this project get in touch.

help wanted

``` pgp().pg.types.setTypeParser(20, parseInt); ``` this code will result in wrong detection of already applied migrations. The reason, i guess, is that id column has `BigInt` type, and gets affected by...

Migration will have an error if migration file contains multiple sql statements...