蜜蜂迁移命令不起作用

时间:2017-09-08 07:24:23

标签: postgresql go beego

运行迁移时出现以下错误。它工作正常。但是当我再次删除并创建数据库时,它现在给出了以下错误。

$ bee migrate -driver="postgres" -
conn="postgres://postgres@localhost:5432/lerg_development?sslmode=disable"

2017/09/08 12:42:37 INFO     ▶ 0001 Using 'postgres' as 'driver'
2017/09/08 12:42:37 INFO     ▶ 0002 Using 
'postgres://postgres@localhost:5432/lerg_development?sslmode=disable' as 'conn'
2017/09/08 12:42:37 INFO     ▶ 0003 Running all outstanding migrations
2017/09/08 12:42:39 INFO     ▶ 0004 |> 2017/09/08 12:42:39 [I] start upgrade Lerg_20170903_194959
2017/09/08 12:42:39 INFO     ▶ 0005 |> must have one register DataBase alias named `default`
2017/09/08 12:42:39 ERROR    ▶ 0006 Could not run migration binary: exit status 2

提供连接字符串时,数据库连接似乎没问题。

0 个答案:

没有答案