Skip to content
database migrate tool
Go Smarty
Branch: master
Clone or download
Latest commit 283cdb0 Jun 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin update README.md Oct 24, 2017
conf add transaction Apr 5, 2018
migrate update Apr 5, 2018
vendor 添加vendor Jul 31, 2017
.gitignore add gitignore Apr 25, 2018
README.md update README.md Jun 8, 2018
main.go update dir name Apr 5, 2018

README.md

migrate

Golang实现的数据库迁移管理工具

usage

  • 拷贝conf/conf.toml.exmpale为conf/conf.toml,并配置数据库信息
  • go build -o bin/migrate migrate.go,编译生成可执行文件
  • bin/migrate create [filename](创建迁移文件)
  • bin/migrate up(执行迁移)
  • bin/migrate down(回滚迁移)
  • bin/migrate status(查看迁移文件的状态)
You can’t perform that action at this time.