其他分享
首页 > 其他分享> > [FAQ] golang-migrate/migrate error: migration failed in line 0: (details: Error 1065: Query was emp

[FAQ] golang-migrate/migrate error: migration failed in line 0: (details: Error 1065: Query was emp

作者:互联网

 

当我们使用 migrate create 创建了迁移文件。

 

没有及时填写内容,此时运行 migrate 的后续命令比如 up、down 会抛出错误:

 

error: migration failed in line 0:  (details: Error 1065: Query was empty)

 

Ref:https://github.com/golang-migrate/migrate/issues/244

Link:https://www.cnblogs.com/farwish/p/14221011.html

标签:migrate,FAQ,1065,golang,failed,migration,com,details
来源: https://www.cnblogs.com/farwish/p/14221011.html