Skip to content

Error: Database with the same name as the username does not exist #228

@patorash

Description

@patorash

When using hanami-cli 2.1.1 with PostgreSQL, an error occurs when calling create_command. It seems that the error happens when specifying a PostgreSQL user, and there is no database with the same name as the user.

https://github.com/hanami/cli/blob/5bfd953797fcc2ad7b91d3b94c912e017ff070a6/lib/hanami/cli/commands/app/db/utils/postgres.rb#L17

psql: error: connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL:  database "{{username}}" does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions