A SQL migration script for Erlang
Go to file
Evan Vigil-McClanahan 25bc4e4e31
Merge pull request #6 from helium/madninja/otp23
otp 23 / erlfmt
2021-02-25 06:43:50 -08:00
.buildkite Add buildkite (#1) 2019-12-15 07:34:28 -04:00
src otp 23 / erlfmt 2021-02-25 08:41:48 -06:00
.gitignore otp 23 / erlfmt 2021-02-25 08:41:48 -06:00
CONTRIBUTING.md First working version 2019-12-15 07:14:42 -04:00
LICENSE First working version 2019-12-15 07:14:42 -04:00
Makefile rebar compile now does the right escript step 2019-12-15 08:11:20 -04:00
README.md Typos in README 2019-12-15 07:38:32 -04:00
rebar3 First working version 2019-12-15 07:14:42 -04:00
rebar.config otp 23 / erlfmt 2021-02-25 08:41:48 -06:00
rebar.lock otp 23 / erlfmt 2021-02-25 08:41:48 -06:00

psql_migration

Build status

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.