mirror of
https://github.com/valitydev/psql-migration.git
synced 2024-11-05 16:55:25 +00:00
A SQL migration script for Erlang
c84b06fc7e
Show error if migration can not be created |
||
---|---|---|
.github/workflows | ||
src | ||
.env.template | ||
.gitignore | ||
CONTRIBUTING.md | ||
LICENSE | ||
Makefile | ||
README.md | ||
rebar3 | ||
rebar.config | ||
rebar.lock |
psql_migration
An escript to help with Postgres migrations.
This is inspired by the similarly named pgsql_migration and the excellent tooling offered by diesel.
Build
$ Make
Run
The script will look for a DATABASE_URL
environment variable for connectivity details a running Postgres and supports .env
file to hold that variable.
Run the script with:
$ _build/default/bin/psql_migration
See the help output for more details on options and commands.