Skip to content
Snippets Groups Projects
Commit eff2090e authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

FlywayDB software upgraded from 4 to 8.3.0

parent a4bbb2d8
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>4.2.0</version>
<version>8.3.0</version>
</dependency>
<dependency>
<groupId>com.bedatadriven</groupId>
......
......@@ -40,8 +40,10 @@ public class StartupListener implements javax.servlet.ServletContextListener {
System.out.println("VIPSCoreManager system initializing");
System.out.println("VIPSCoreManager checking for database migrations");
// Migrate DB on startup using flywaydb.org
Flyway flyway = new Flyway();
flyway.setDataSource(vipscoremanagerDS);
Flyway flyway = Flyway.configure()
.table("schema_version")
.dataSource(vipscoremanagerDS)
.load();
flyway.migrate();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment