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.
- Host: GitHub
- URL: https://github.com/joshkamau/pgmigrate
- Owner: joshkamau
- Created: 2014-10-23T17:45:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-11-20T15:33:04.000Z (over 3 years ago)
- Last Synced: 2024-11-15T08:10:49.447Z (over 1 year ago)
- Topics: database, golang, migration, postgres
- Language: Go
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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.
```