A SQL migration script for Erlang
Go to file
2020-01-13 05:49:54 -07:00
.buildkite Add buildkite (#1) 2019-12-15 07:34:28 -04:00
src Ignore non .sql files in the migrations folder 2020-01-13 05:49:54 -07:00
.gitignore First working version 2019-12-15 07:14:42 -04: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 Expore open_connection/0, fix xref 2019-12-21 10:05:18 -07:00
rebar.lock First working version 2019-12-15 07:14:42 -04: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.