zevst / gomig

Golang Migration is a simple multi-database migration tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang Migration

Install
go get -u github.com/zevst/gomig
How to use it?
make build
bin/gomig --help
How does GoMig read files?
.
├── migrations
│   └── database
│       ├── timestamp_description.down.sql
│       └── timestamp_description.up.sql
ENVs
  • GOMIG_CONFIG_TYPE: type of config
  • GOMIG_CONFIG_PATH: directory with configurations
  • GOMIG_CONFIG_NAME: main config
  • GOMIG_CONFIG_FILE_PATH: environment config
  • GOMIG_DIR: directory with migrations
  • GOMIG_MIGRATION_TABLE_PREFIX: migrations table name prefix

About

Golang Migration is a simple multi-database migration tool.

License:MIT License


Languages

Language:Go 99.7%Language:Makefile 0.3%