Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/crgimenes/migration

SQL migration tool
https://github.com/crgimenes/migration

go golang migration package sql

Last synced: about 17 hours ago
JSON representation

SQL migration tool

Awesome Lists containing this project

README

        

# migration
[![Build Status](https://travis-ci.org/gosidekick/migration.svg?branch=master)](https://travis-ci.org/gosidekick/migration)
[![Go Report Card](https://goreportcard.com/badge/github.com/gosidekick/migration)](https://goreportcard.com/report/github.com/gosidekick/migration/v3)
[![GoDoc](https://godoc.org/github.com/gosidekick/migration?status.png)](https://godoc.org/github.com/gosidekick/migration/v3)
[![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
[![codecov](https://codecov.io/gh/gosidekick/migration/branch/master/graph/badge.svg)](https://codecov.io/gh/gosidekick/migration)
[![Maintainability](https://api.codeclimate.com/v1/badges/a99a88d28ad37a79dbf6/maintainability)](https://codecov.io/gh/gosidekick/migration)

PostgreSQL migration tool with transactions

```console
./migration exec -url "postgres://postgres@localhost:5432/dbname?sslmode=disable" -dir ./fixtures -action up
```

```console
./migration exec -url "postgres://postgres@localhost:5432/dbname?sslmode=disable" -dir ./fixtures -action down 2
```

```console
./migration exec -url "postgres://postgres@localhost:5432/dbname?sslmode=disable" -dir ./fixtures -action status
```