[Feature] Add a cargo binary for running diesel migrations locally #4589
Labels
C-feature
Category: Feature request or enhancement
Developer Experience
Product enhancements to enhance developer experience
good first issue
Good for newcomers
Objective
Add a new binary in the
router
crate that would run migrations locally via cli i.ecargo run migrations
.Context
Currently migrations are managed via the diesel_cli which rely on explicitly providing the database username/password & host,
This is a bit cumbersome when you have to provide the variables over & over again.
It would be somewhat easier if we could leverage
diesel_migrations
to read the credentials from config file / env & apply migrations.(Open to alternative approaches as well for this)
Outcomes
The text was updated successfully, but these errors were encountered: