New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node-pg-migrate not working when I upgrade Node from 12 - 16 #887
Comments
Do you have a migration example to test with? My setup works: $ node -v
v16.14.2
$ npx node-pg-migrate --version
6.2.1
# Postgres
# show server_version;
server_version
----------------
14.2
(1 row) Ensure you're running the local version of |
I have this problem as well. Affected versions (at least):
|
I am seeing the same issue.
Could this be due to the postgres version? |
We also have this problem; Migrations ran successfully with node version 12.22.12, after upgrading to node 16 the node-pg-migrate up does not fail but does not seem to do anything.
|
Found the solution (at least for me): Root cause seemed to lie somewhere in the pg client connecting to pg; I managed to reproduce the error in a minimal example (with postgres:9.6.3-alpine image as well): package.json: { So when using node 16, node-pg-migrate does not seem to work with pg version 7.18.2 (and probably other versions of pg as well). I guess having pg >= 8 as dependency would make sense. |
Just tested this and upgrading the |
Is this an still an issue? Or did #887 (comment) solved it completely? |
Hi,
I have been working on a project using Node 12.20.1 . When I tried upgrading to the latest version of Node I realized that
> node-pg-migrate "up"
command is not working. I am not getting any errors thrown at my terminal, but the existing migration scripts are not running. Can someone please checkI am using
3.18.1
version of node-pg-migrate, I tried upgrading it to 6.2.1 , but that doesn't seem to help. Is there something else I need to do ?The text was updated successfully, but these errors were encountered: