v1.5.1 hangs after `executed` call(but works with 1.4.0)
See original GitHub issueI have following scripts at package.json
{
"scripts": {
"db:migrate": "knex-migrate up",
"db:migrate:drop": "knex-migrate down --to 0",
"db:migrate:reset": "npm run db:migrate:drop && npm run db:migrate"
}
}
When I run npm run db:migrate:reset with knex-migrate(v1.5.1), it will hang (looks like waiting for reponse forever?) after this log (of knex with debug:true option)
{ method: 'pluck',
options: {},
timeout: false,
cancelOnTimeout: false,
bindings: [],
__knexQueryUid: '794b75ef-f7e5-4600-ac2d-e9224b1bb30a',
toNative: [Function: toNative],
sql: 'select "name" from "knex_migrations" order by "id" asc',
pluck: 'name' }
But when I downgrade knex-migrate from v1.5.1 to v1.4.0, It works with same configuration(env) 🤔
Postgres logs
I’m not sure is this related…
ERROR: relation "knex_migrations" does not exist at character 25
STATEMENT: select count("id") from "knex_migrations"
Versions
npm packages
knex@0.14.2knex-migrate@1.5.1
others
npm-4.2.0node-v7.10.0- Uses docker image of
postgres:10-alpine-PostgreSQL 10.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 6.3.0) 6.3.0, 64-bit
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Known issues — nRF Connect SDK 2.2.99 documentation
The Android CHIP Tool crashes when attempting to start the subscription after typing minimum and maximum subscription interval values. Also, the Subscription ...
Read more >Bug listing with status RESOLVED with resolution FIXED as at ...
Bug listing with status RESOLVED with resolution FIXED as at 2022/12/31 05:46:05.
Read more >Changelog | Meteor API Docs
Proving the login results to the _onLoginHook when finishing login inside callLoginMethod . PR. github-oauth@1.4.0. More data will be retrieved and saved under ......
Read more >OpenFlow Switch Specification - Open Networking Foundation
Version 1.4.0. Table. 0. Table. 1. Table n. Packet. Execute ... omitted) and has priority equal to 0 is called the table-miss flow...
Read more >Known issues - PaperCut
The Print Deploy client attempts to install printers that have already been installed. 1.2.1194. Resolved. v1.3 Print Deploy and later.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@sheerun thanks for reply!
The error still exists, and reproduced at forked repository by following steps
Prerequisites
Steps to reproduce
package dirand install dependencies.And it looks like this issue consists with 3 suspicious things.
knex v0.14.2has some wrong behavior with postgres?process.exit(0)aftermain()resolved, we could ignorenon-resolve promiseissue at that time(first time when I posted) 😭, but latest(v1.5.3) version not hasprocess.exit(0)https://github.com/sheerun/knex-migrate/blob/v1.4.0/src/cli.js#L327 https://github.com/sheerun/knex-migrate/blob/master/src/cli.js#L118
knex(config.development)atknexfile.jscall.Conclusion
BTW I can confirm these issues are gone, when I upgrade knex from
old version(0.14.2)tolatest version(0.14.4). So we can close this issue! but it would be nice to add some notice to README or elsewhere 😉@sheerun @rewop thanks again for your cooperation!
@rewop @subuta I’ve update umzig for knex-migrate 1.5.3, does this error happen again?
If it still exists, could you modify example project in repository to reproduce this issue?
@rewop btw. I cannot reproduce unfortunately