https://github.com/crgimenes/migration
SQL migration tool
https://github.com/crgimenes/migration
go golang migration package sql
Last synced: 4 months ago
JSON representation
SQL migration tool
- Host: GitHub
- URL: https://github.com/crgimenes/migration
- Owner: crgimenes
- License: mit
- Created: 2018-11-18T14:38:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-07T02:18:41.000Z (over 1 year ago)
- Last Synced: 2024-11-19T12:58:57.196Z (over 1 year ago)
- Topics: go, golang, migration, package, sql
- Language: Go
- Homepage:
- Size: 3.46 MB
- Stars: 8
- Watchers: 4
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# migration
[](https://travis-ci.org/gosidekick/migration)
[](https://goreportcard.com/report/github.com/gosidekick/migration/v3)
[](https://godoc.org/github.com/gosidekick/migration/v3)
[](https://tldrlegal.com/license/mit-license)
[](https://codecov.io/gh/gosidekick/migration)
[](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
```