项目作者: zevst

项目描述 :
Golang Migration is a simple multi-database migration tool.
高级语言: Go
项目地址: git://github.com/zevst/gomig.git
创建时间: 2020-01-12T20:32:23Z
项目社区:https://github.com/zevst/gomig

开源协议:MIT License

下载


Golang Migration

Install

```shell script
go get -u github.com/zevst/gomig

  1. ##### How to use it?
  2. ```shell script
  3. make build
  4. bin/gomig --help
How does GoMig read files?
  1. .
  2. ├── migrations
  3. └── database
  4. ├── timestamp_description.down.sql
  5. └── 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