Exemple #1
0
 private Script getMigrationScript(Dialect dialect, SimpleJdbcTemplate template) {
   Script script = new Script();
   for (ChangeSet changeSet : changeSets) {
     if (!isApplied(changeSet)) {
       script.append(changeSet.getScript(dialect, template));
       script.append(markAsApplied(changeSet, template));
     }
   }
   return script;
 }
Exemple #2
0
 private Script getInitScript(SimpleJdbcTemplate template) {
   Script script = new Script();
   for (ChangeSet changeSet : changeSets) {
     script.append(markAsApplied(changeSet, template));
   }
   return script;
 }