Skip to content

Commit

Permalink
feat(cli-ee): allow Flyway migrations to be out of order
Browse files Browse the repository at this point in the history
Also silence the logger for warnings
  • Loading branch information
loicmathieu committed Aug 31, 2023
1 parent f30bef9 commit a09b4e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,21 @@ flyway:
- classpath:migrations/postgres
# We must ignore missing migrations as we delete some wrong or not used anymore migrations
ignore-migration-patterns: "*:missing,*:future"
out-of-order: true
mysql:
enabled: true
locations:
- classpath:migrations/mysql
# We must ignore missing migrations as we delete some wrong or not used anymore migrations
ignore-migration-patterns: "*:missing,*:future"
out-of-order: true
h2:
enabled: true
locations:
- classpath:migrations/h2
# We must ignore missing migrations as we delete some wrong or not used anymore migrations
ignore-migration-patterns: "*:missing,*:future"
out-of-order: true

kestra:
retries:
Expand Down
4 changes: 4 additions & 0 deletions core/src/main/resources/logback/base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@

<!-- Elastic deprecation warning that is not compatible with OpenSearch, we must disable all warnings ... -->
<logger name="org.opensearch.client.RestClient" level="ERROR" />

<!-- Flyway log warnings for out-of-order or when using IF NOT EXISTS -->
<logger name="org.flywaydb.core.internal.command.DbMigrate" level="ERROR" />
<logger name="org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor" level="ERROR" />
</included>

0 comments on commit a09b4e4

Please sign in to comment.