You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the guide in Yokai ORM, but the migration command is not getting the correct config.
This is the config.yml :
modules:
// ... other modulesorm:
dsn: "${POSTGRES_USER}:${POSTGRES_PASSWORD}@tcp(${POSTGRES_HOST}:${POSTGRES_PORT})/${POSTGRES_DATABASE}?parseTime=True"driver: postgres # driver to useconfig:
dry_run: false # disabled by defaultskip_default_transaction: false # disabled by defaultfull_save_associations: false # disabled by defaultprepare_stmt: false # disabled by defaultdisable_automatic_ping: false # disabled by defaultdisable_foreign_key_constraint_when_migrating: false # disabled by defaultignore_relationships_when_migrating: false # disabled by defaultdisable_nested_transaction: false # disabled by defaultallow_global_update: false # disabled by defaultquery_fields: false # disabled by defaulttranslate_error: false # disabled by defaultlog:
enabled: true # to log SQL queries, disabled by defaultlevel: info # with a minimal levelvalues: false # by adding or not clear SQL queries parameters values in logs, disabled by defaulttrace:
enabled: true # to trace SQL queries, disabled by defaultvalues: true # by adding or not clear SQL queries parameters values in trace spans, disabled by default
So you can try something like dsn: "user=${POSTGRES_USER} password=${POSTGRES_PASSWORD} host=${POSTGRES_HOST} port=${POSTGRES_PORT} dbname=${POSTGRES_DATABASE} sslmode=disable"
Or if you want to use the URL DSN style, maybe try adding postgres:// at the start.
Hello,
I followed the guide in Yokai ORM, but the migration command is not getting the correct config.
This is the config.yml :
And the logs when I run the migrate command :
The text was updated successfully, but these errors were encountered: