if ("true".equals(applicationProperties.getProperty("dbmigrate.clean"))) {
logger.info("clean database");
Flyway flyway = new Flyway();
flyway.setDataSource(dataSource);
flyway.clean();
}
Collection<DatabaseMigrateInfo> databaseMigrateInfos = new DatabaseMigrateInfoBuilder(
applicationProperties).build();