psql-migration/README.md

26 lines
707 B
Markdown
Raw Permalink Normal View History

2019-12-15 11:14:42 +00:00
psql_migration
=====
2021-04-23 19:25:23 +00:00
[![CI](https://github.com/helium/psql-migration/actions/workflows/ci.yml/badge.svg)](https://github.com/helium/psql-migration/actions/workflows/ci.yml)
2019-12-15 11:34:28 +00:00
2019-12-15 11:14:42 +00:00
An escript to help with Postgres migrations.
This is inspired by the similarly named [pgsql_migration](https://github.com/artemeff/pgsql_migration) and the excellent tooling offered by [diesel](http://diesel.rs).
Build
-----
2019-12-15 11:38:32 +00:00
$ Make
2019-12-15 11:14:42 +00:00
Run
---
2019-12-15 11:38:32 +00:00
The script will look for a `DATABASE_URL` environment variable for connectivity details a running Postgres and supports `.env` file to hold that variable.
2019-12-15 11:14:42 +00:00
Run the script with:
$ _build/default/bin/psql_migration
See the help output for more details on options and commands.