A SQL migration script for Erlang
Go to file
Marc Nijdam 71b7f65ce0
Merge pull request #9 from vmalepati1/master
Add .env.template and strip newline characters from database URLs
2021-06-29 22:54:09 -06:00
.github/workflows Use GHA 2021-04-23 10:17:56 -05:00
src Use string:trim rather than regex replace 2021-06-30 00:14:57 -04: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
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

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.