Skip to content

Commit a821bd2

Browse files
author
Dakshin Karthikeyan
committed
Upgrade Flywaydb to v7.6.0
Signed-off-by: Dakshin Karthikeyan <dakshin.k1@gmail.com>
1 parent 546de17 commit a821bd2

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* Enable pod specific annotations in Marquez Helm Chart via `marquez.podAnnotations` [@wslulciuc](https://github.com/wslulciuc)
99
* Add support for job renaming/redirection via symlink [@collado-mike](https://github.com/collado-mike)
1010

11+
### Changed
12+
13+
* Upgrade Flyway to v7.6.0 [@dakshin-k](https://github.com/dakshin-k)
14+
1115
## [0.21.0](https://github.com/MarquezProject/marquez/compare/0.20.0...0.21.0) - 2022-03-03
1216

1317
### Added

api/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencies {
4545
implementation 'com.google.guava:guava:31.1-jre'
4646
implementation 'org.dhatim:dropwizard-sentry:2.0.29'
4747
implementation "io.sentry:sentry:${sentryVersion}"
48-
implementation 'org.flywaydb:flyway-core:6.5.7'
48+
implementation 'org.flywaydb:flyway-core:7.6.0'
4949
implementation "org.postgresql:postgresql:${postgresqlVersion}"
5050
implementation 'com.graphql-java:graphql-java:18.0'
5151
implementation 'com.graphql-java-kickstart:graphql-java-servlet:12.0.0'

api/src/main/java/marquez/db/DbMigration.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import lombok.extern.slf4j.Slf4j;
88
import org.flywaydb.core.Flyway;
99
import org.flywaydb.core.api.FlywayException;
10+
import org.flywaydb.core.api.output.MigrateResult;
1011

1112
@Slf4j
1213
public final class DbMigration {
@@ -31,8 +32,9 @@ public static void migrateDbOrError(
3132
// issues before app termination.
3233
try {
3334
log.info("Migrating database...");
34-
final int migrations = flyway.migrate();
35-
log.info("Successfully applied '{}' migrations to database.", migrations);
35+
final MigrateResult migrateResult = flyway.migrate();
36+
log.info(
37+
"Successfully applied '{}' migrations to database.", migrateResult.migrationsExecuted);
3638
} catch (FlywayException errorOnDbMigrate) {
3739
log.error("Failed to apply migration to database.", errorOnDbMigrate);
3840
try {

0 commit comments

Comments
 (0)