super(repository, environment, force);
}
public void execute(String... params) {
try {
Change lastChange = getLastAppliedChange();
List<Change> migrations = getMigrations();
Collections.reverse(migrations);
int steps = 0;
for (Change change : migrations) {
if (change.getId().equals(lastChange.getId())) {
printStream.println(horizontalLine("Undoing: " + change.getFilename(), 80));
ScriptRunner runner = getScriptRunner();
try {
runner.runScript(new MigrationReader(scriptFileReader(scriptFile(change.getFilename())), true, environmentProperties()));
} finally {