for (Change change : migrations) {
if (shouldRun(change, v1, v2)) {
printStream.println("-- " + change.getFilename());
File file = scriptFile(change.getFilename());
FileReader fileReader = new FileReader(file);
MigrationReader migrationReader = new MigrationReader(fileReader, undo, variables);
char[] cbuf = new char[1024];
int l;
while ((l = migrationReader.read(cbuf)) == cbuf.length) {
printStream.print(new String(cbuf, 0, l));
}
printStream.print(new String(cbuf, 0, l - 1));
printStream.println();
printStream.println();