154155156157158159160161162163164
this.emUtil.doWork(new DsWork() { @Override public void execute(DataSource ds) { Flyway flyway = new Flyway(); flyway.setDataSource(ds); flyway.clean(); // FIXME: Try Liquibase.dropAll() } }); } /**
243244245246247248249250251252253
this.connUtil.doWork(new DsWork() { @Override public void execute(DataSource ds) { Flyway flyway = new Flyway(); flyway.setDataSource(ds); flyway.clean(); // FIXME: Try Liquibase.dropAll() } }); } /**
5354555657585960616263
flyway.setDataSource(connectionUrl, connectionUsername, connectionPassword); // In testmode we are cleaning the database so that subsequent testcases // get a fresh database. if (ninjaProperties.isTest()) { flyway.clean(); } flyway.migrate(); }
169170171172173174175176177178179