Skip to content

Commit

Permalink
fix: flyway validation failing in mds variant (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
ununhexium authored Aug 20, 2024
1 parent 853a608 commit 4701b16
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ please see [changelog_updates.md](docs/dev/changelog_updates.md).

- Improve database performance by removing duplicate indexes
- The data address is now correctly updated when editing an asset.
- Fix a database initialization error when starting the EDC with Logging House v1.1.0

### Deployment Migration Notes

#### MDS only

##### logging-house-client extension

If the extension is to be switched off, the following must now be set, as the extension is now activated by default when integrated:
- `EDC_LOGGINGHOUSE_EXTENSION_ENABLED: 'false'`

#### Compatible Versions

- Connector Backend Docker Images:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public Flyway setupFlywayForUnifiedHistory(DataSource dataSource) {
return Flyway.configure()
.dataSource(dataSource)
.cleanDisabled(!config.flywayCleanEnabled())
.baselineVersion("0")
.baselineOnMigrate(true)
.table("flyway_schema_history")
.locations(locations.toArray(new String[0]))
.load();
Expand Down
5 changes: 5 additions & 0 deletions launchers/.env.connector
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,8 @@ EDC_VAULT=/app/empty-properties-file.properties

# Base URL for the On Request asset datasource, as reachable by the data plane
MY_EDC_DATASOURCE_PLACEHOLDER_BASEURL=${EDC_DSP_CALLBACK_ADDRESS}

# Make the Logging House use the same DB as the EDC
EDC_DATASOURCE_LOGGINGHOUSE_URL=${MY_EDC_JDBC_URL}
EDC_DATASOURCE_LOGGINGHOUSE_USER=${MY_EDC_JDBC_USER}
EDC_DATASOURCE_LOGGINGHOUSE_PASSWORD=${MY_EDC_JDBC_PASSWORD}

0 comments on commit 4701b16

Please sign in to comment.