Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

zevst/gomig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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