Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/helium/psql-migration

A SQL migration script for Erlang
https://github.com/helium/psql-migration

Last synced: 5 days ago
JSON representation

A SQL migration script for Erlang

Awesome Lists containing this project

README

        

psql_migration
=====

[![CI](https://github.com/helium/psql-migration/actions/workflows/ci.yml/badge.svg)](https://github.com/helium/psql-migration/actions/workflows/ci.yml)

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
-----

$ 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.