db-migrate / db-migrate/node-db-migrate
'dev' environment not recognized after 'prod' migration - PostgreSQL
- Dominant language
- JavaScript
- Stars
- 2.3k
- Forks
- 361
- PR merge metrics
- No merged PRs in 30d
Description
## I'm submitting a...
- [ ] Bug report
## Current behavior
After a 'production' migration in POSTGRESQL, db-migrate doesn't recognize local migration
## database.json
{
"defaultEnv": "dev",
"dev": {
"driver": "DB_DRIVER",
"user": "DB_USER",
"password": "DB_PASSWORD",
"host": "DB_HOST",
"database": "DB_NAME"
},
"prod": {
"use_env_variable": "DATABASE_URL",
"ssl": {
"rejectUnauthorized": false
}
}
}
## Errors
- When I use 'db-migrate up --config src/config/database.json' I get this error: [ERROR] Error: Environment(s) 'dev' not found.
- When I use 'db-migrate up --config src/config/database.json -e dev' I get this error: [ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: no pg_hba.conf entry for host "xxxxx", user "xxxxx", database "xxxxx", SSL off
Contributor guide
Assessment
This issue has not been assessed yet.