File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
main/java/no/nav/foreldrepenger/abakus/jetty
test/java/no/nav/foreldrepenger/abakus/jetty Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ protected void konfigurerJndi() throws Exception {
186
186
}
187
187
188
188
void migrerDatabaser () {
189
- try (var dataSource = DatasourceUtil .createDatasource (DatasourceRole .ADMIN , 1 )) {
189
+ try (var dataSource = DatasourceUtil .createDatasource (DatasourceRole .ADMIN , 2 )) {
190
190
var flyway = Flyway .configure ()
191
191
.dataSource (dataSource )
192
192
.locations ("classpath:/db/migration/defaultDS" )
Original file line number Diff line number Diff line change @@ -35,11 +35,12 @@ void migrerDatabaser() {
35
35
super .migrerDatabaser ();
36
36
} catch (Exception e ) {
37
37
log .info ("Migreringer feilet, cleaner og prøver på nytt for lokal db." );
38
- try (var migreringDs = DatasourceUtil .createDatasource (DatasourceRole .ADMIN , 1 )) {
38
+ try (var migreringDs = DatasourceUtil .createDatasource (DatasourceRole .ADMIN , 2 )) {
39
39
var flyway = Flyway .configure ()
40
40
.dataSource (migreringDs )
41
41
.locations ("classpath:/db/migration/" )
42
42
.baselineOnMigrate (true )
43
+ .cleanDisabled (false )
43
44
.load ();
44
45
flyway .clean ();
45
46
} catch (FlywayException fwe ) {
You can’t perform that action at this time.
0 commit comments