Open cbesangeeth opened 6 years ago
I'm using db-migrate-redshift
- repo link now.
But it is hangs up on select version() as version
when i do migrate. Here is my verbose:
$ db-migrate up --config cfg/database.json --verbose
[INFO] Detected and using the projects local version of db-migrate. '/home/sangeeth/Desktop/myGitRepos/analytics-api/node_modules/db-migrate/index.js'
[INFO] Using dev settings: { driver: 'redshift',
database: '*****',
user: '*****',
password: '******',
host: '******' }
[INFO] require: db-migrate-redshift
[INFO] connecting
[INFO] connected
[SQL] select version() as version
[ERROR] Error: connect ETIMEDOUT 54.161.156.200:5432
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@wzrdtales , Could you able to help me out?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
redshift migration is not working because of unsupported function
server_version()
.Current behavior
Since redshift is postgres compliance, i'm using
db-migrate-pg
in my node.js application forredshift
.When i ran
migrate
script, i'm getting below error from redshift db. Here is my verbose looks like:So we can see the error is thrown from
redshift
.I had asked this in SO. Link to stackoverflow question
Got to know that
show server_version();
is unsupported postgres function in redshift and they suggested to patch the library to work withselect version();
instead.Expected behavior
Can you help me out, how to migrate my sql scripts in redshift? Or How to patch
server_version
to useselect version
?Environment