Skip to content

DATABASE_URL must be set for sqlx mig add #1391

Closed
@jplatte

Description

@jplatte

Not a big deal since I usually have DATABASE_URL in .env anyways, but I just noticed in a new project before creating .env that sqlx mig add init failed with

error: The DATABASE_URL environment variable must be set

Which there doesn't seem to be a good reason for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions