为什么我的flyway应用程序在公共架构中运行脚本?

为什么我的flyway应用程序在公共架构中运行脚本?

问题描述:

我的search_path设置为-mydb,gisdb,pg_catalog为什么我的flyway应用程序在公共架构中运行脚本?

即使这样,我的springboot flyway项目在公共架构上运行我的db迁移脚本。

我错过了什么?

这三个扩展在 'MYDB' 数据库 - DBLINK,PostGIS中,postgres_fdw

我可以通过下面的查询来解决这个问题:

alter database oat set search_path = mydb, gisdb ; 

而且,这个被称为该FIX- https://dba.stackexchange.com/questions/56023/what-is-the-search-path-for-a-given-database-and-user