update flyway to v9.1.3

This commit is contained in:
Craig Raw
2024-10-10 09:04:01 +02:00
parent c450efe499
commit 1d8c37066e
4 changed files with 30 additions and 8 deletions
@@ -624,7 +624,7 @@ public class DbPersistence implements Persistence {
}
private Flyway getFlyway(Storage storage, String schema, String password, File resourcesDir) throws StorageException {
return Flyway.configure().dataSource(getDataSource(storage, password)).locations("filesystem:" + resourcesDir.getAbsolutePath()).schemas(schema).failOnMissingLocations(true).load();
return Flyway.configure().cleanDisabled(false).dataSource(getDataSource(storage, password)).locations("filesystem:" + resourcesDir.getAbsolutePath()).schemas(schema).failOnMissingLocations(true).load();
}
//Flyway does not support JPMS yet, so the migration files are extracted to a temp dir in order to avoid classloader encapsulation issues