https://github.com/rubenv/sql-migrate
下载安装go get -v github.com/rubenv/sql-migrate/...
教程:https://github.com/rubenv/sql-migrate
使用sql-migrate 命令
$ sql-migrate --helpusage: sql-migrate [--version] [--help] <command> [<args>]Available commands are: down Undo a database migration new Create a new migration redo Reapply the last migration status Show migration status up Migrates the database to the most recent version available
sql-migrate up --help
$ sql-migrate up --helpUsage: sql-migrate up [options] ... Migrates the database to the most recent version available.Options: -config=dbconfig.yml Configuration file to
总结 以上是内存溢出为你收集整理的go 数据库迁移工具sql-migrate全部内容,希望文章能够帮你解决go 数据库迁移工具sql-migrate所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)