Categorygithub.com/zevst/gomig
repositorypackage
0.0.0-20200428135920-d2e1011545e7
Repository: https://github.com/zevst/gomig.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

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