A SQL migration script for Erlang
Go to file
2024-07-31 12:10:16 +05:00
.github/workflows Use GHA 2021-04-23 10:17:56 -05:00
src Show error if migration can not be created 2022-11-22 18:53:57 +01:00
.env.template Add .env.template 2021-06-29 00:02:23 -04:00
.gitignore Update gitignore 2021-06-29 11:54:51 -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 Use GHA badge 2021-04-23 14:25:23 -05:00
rebar.config Bump for OTP 24 2022-05-26 13:38:32 -05:00
rebar.lock Bump for OTP 24 2022-05-26 13:38:32 -05:00

psql_migration

CI

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.