A SQL migration script for Erlang
Go to file
2021-04-23 10:17:56 -05:00
.github/workflows Use GHA 2021-04-23 10:17:56 -05:00
src Allow undefined down queries 2021-02-25 11:43:17 -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.