Skip to content

--url flag errors running migration #1109

Open
@redeemefy

Description

@redeemefy

Issue Creation Checklist

[X] I have read the contribution guidelines

Issue Description

I'm running the migration command as suggested in the documentation, it is an alternative to the ./config/config.js file.

$ npx sequelize-cli db:migrate --url 'postgres://postgres:somepassword@some-playground-instance-cluster.some-hash.us-east-1.rds.amazonaws.com'

I'm expecting for the command to successfully execute the migration.

What was unclear/insufficient/not covered in the documentation

If the command is an alternative to the ./config/config.js file, the command should succeed but rather it failing with

ERROR: Error reading "config/config.json". Error: Error: Error parsing url: postgres://postgres:somepassword@some-playground-instance-cluster.some-hash.us-east-1.rds.amazonaws.com

If possible: Provide some suggestion on how we can enhance the docs

  • When running the command, do I still need the ./config/config.js file?
  • If the ./config/config.js still needed. Does it needs something special config when utilizing the --url flag so it doesn't fail?

Additional context

Add any other context or screenshots about the issue here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions