如何更改目录以在flyway中查找?

Hig*_*row 1 flyway

通常flyway在/ sql中查找查询.

但我wana给了一些不同的位置..那么c:/用户/查询.

如何配置flyway查看diff文件夹?

Axe*_*ine 9

使用该flyway.locations属性.

例: flyway.locations=filesystem:c:/User/Queries


Gna*_*yam 5

在命令行参数中传递它。

对于飞行路线信息

flyway info -locations=filesystem:./migration -user=username -password=password -url=jdbc:postgresql://localhost:portNo/dBName
Run Code Online (Sandbox Code Playgroud)

对于飞行路线迁移

flyway migrate -locations=filesystem:./migration -user=username -password=password -url=jdbc:postgresql://localhost:portNo/dBName
Run Code Online (Sandbox Code Playgroud)