Flyway:无法找到SQL迁移的路径 [英] Flyway: Unable to find path for sql migrations

查看:56
本文介绍了Flyway:无法找到SQL迁移的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行flyway迁移时,出现以下错误:

While running flyway migrate I am getting following error:

无法找到sql迁移的路径:/迁移文件夹的路径/

Unable to find path for sql migrations: /path to migration folder/

我正在尝试执行以下命令: java -cp com.googlecode.flyway.commandline.Main migration

I am trying to following command: java -cp com.googlecode.flyway.commandline.Main migrate

我还在类路径中添加了迁移文件夹,并指定了baseDir目录.但是似乎没有什么帮助.任何帮助将不胜感激.

I also added the migration folder in the classpath and specified the baseDir directory. But nothing seems to help. Any help would be greatly appreciated.

推荐答案

如果您正在寻找替代的迁移框架,请尝试使用Mite.我已经取得了成功.它基于Sql,因此您不必学习新的框架和与语言无关的方法,因为它只是一个实用程序.

If you are looking for an alternative migrations framework, try Mite. I've had good success with it. It's Sql based so you don't have to learn a new framework and language agnostic because it's just a utility.

https://github.com/soitgoes/mite

这篇关于Flyway:无法找到SQL迁移的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆