英文:
Soda CLI show warning : Migrator: unable to dump schema: exec: "pg_dump": executable file not found in $PATH
问题
我是你的中文翻译助手,以下是翻译的内容:
我刚开始使用gobuffalo,每次运行迁移时都会显示这个警告。这个警告的意思是什么?
> soda migrate up
v5.3.1
[POP] 2021/05/25 14:17:12 info - > create_products
[POP] 2021/05/25 14:17:12 info - Successfully applied 1 migrations.
[POP] 2021/05/25 14:17:12 info - 0.0829 seconds
[POP] 2021/05/25 14:17:12 warn - Migrator: unable to dump schema: exec: "pg_dump": executable file not found in $PATH
我的服务器有问题吗?这个警告会对任何事情产生影响吗?感谢您的帮助。
谢谢!
英文:
I'm new on using gobuffalo, and every time i run migrate always show this warning. What is the meaning of that warning?
> soda migrate up
v5.3.1
[POP] 2021/05/25 14:17:12 info - > create_products
[POP] 2021/05/25 14:17:12 info - Successfully applied 1 migrations.
[POP] 2021/05/25 14:17:12 info - 0.0829 seconds
[POP] 2021/05/25 14:17:12 warn - Migrator: unable to dump schema: exec: "pg_dump": executable file not found in $PATH
Is there something wrong in my server or this warning not effect anything? any help will be appreciated.
Thank you!
答案1
得分: 1
当您运行soda
CLI来执行迁移时,soda
会应用这些迁移,然后尝试使用数据库的原生工具来转储当前的数据库模式。
这个警告只是说在您的服务器上找不到pg_dump
可执行文件,因此soda
无法转储当前的模式。由于迁移正常运行,您可以安全地忽略此警告。
英文:
When you run the soda
CLI for executing the migrations, soda
applies the migrations, then it tries to dump the current database schema using the database native tool.
This warning only says the pg_dump
executable was not found on your server, and soda couldn't dump the current schema. Since the migrations run fine, you can safely ignore this warning.
答案2
得分: 0
我刚刚在PATH变量中添加了PostgreSQL/bin目录的位置。
例如,可以在Windows中更改PATH变量的方法可以在以下链接中找到:
https://www.computerhope.com/issues/ch000549.htm
对我来说,这解决了问题。
英文:
I just added in PATH variable location to PostgreSQL/bin directory.
For example how PATH variable can be change in Windows can be found:
https://www.computerhope.com/issues/ch000549.htm
For me it solved the issue.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论