【发布时间】:2021-09-16 13:30:27
【问题描述】:
尝试部署我的应用时出现此错误:
Found non-empty schema(s) "public" but no schema history table. Use baseline() or set baselineOnMigrate to true to initialize the schema history table.
问题是我已指定 flyway 使用名为linked_note 的不同模式,其中模式表历史记录实际上是。这是我的配置:
spring:
datasource:
tomcat:
initSQL: ""
flyway:
locations: classpath:db/migration/common, db/migration/crunchy
schemas: linked_note
table: schema_version
为什么 flyway 会忽略指定的架构? 为什么默认是公开的?
【问题讨论】:
标签: spring gradle flyway concourse