Skip to content

Commit 2a37bfc

Browse files
committed
Down operation should stop when there is no changelog table.
1 parent 3efd441 commit 2a37bfc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/apache/ibatis/migration/operations/DownOperation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public DownOperation operate(ConnectionProvider connectionProvider, MigrationLoa
5252
deleteChange(connectionProvider, change, option);
5353
} else {
5454
println(printStream, "Changelog doesn't exist. No further migrations will be undone (normal for the last migration).");
55+
stepCount = steps;
5556
}
5657
println(printStream);
5758
stepCount++;

0 commit comments

Comments
 (0)