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

https://github.com/joshkamau/pgmigrate

Database migration tool for postgres written in go.
https://github.com/joshkamau/pgmigrate

database golang migration postgres

Last synced: 4 months ago
JSON representation

Database migration tool for postgres written in go.

Awesome Lists containing this project

README

          

pgmigrate
=========

Database migration tool for postgres written in go.
This tool is inspired by mybatis migrations.

```
Usage: pgmigrate command [parameter]

Commands:
init Creates (if necessary) and initializes a migration path.
new Creates a new migration with the provided description.
up [n] Run unapplied migrations, ALL by default, or 'n' specified.
down [n] Undoes migrations applied to the database. ONE by default or 'n' specified.
status Prints the changelog from the database if the changelog table exists `
function creates a new function file.
run-functions Drops and 'create or replace' all the functions. This allows you to manage functions using git.
```