DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

1b8e1ef4104ef9222fc0ab9a5e72e2e11fe0385d — Jonni Liljamo 1 year, 10 months ago 15e0c28
feat(api): add redo script
2 files changed, 6 insertions(+), 0 deletions(-)

M api/README.md
A api/scripts/dev-migr-redo.sh
M api/README.md => api/README.md +4 -0
@@ 9,3 9,7 @@ development environment. Uses `docker-compose.dev.yaml` to set it up.

`scripts/dev-migr.sh` can be used to run migration in the development
database that the other script sets up.

`scripts/dev-migr-redo.sh` can be used to redo the migrations.
As in, it will run down.sql, and then up.sql again, useful for making sure
migrations work correctly, and for experimenting.

A api/scripts/dev-migr-redo.sh => api/scripts/dev-migr-redo.sh +2 -0
@@ 0,0 1,2 @@
#!/bin/sh
~/.cargo/bin/diesel migration run --database-url postgres://laurelin:laurelin@localhost:5432/laurelin