Skip to content

Commit a403859

Browse files
committed
fixes #65 Down command does not work with case sensitive column names.
1 parent 2ac13ca commit a403859

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2010-2016 the original author or authors.
2+
* Copyright 2010-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -127,7 +127,7 @@ protected void deleteChange(ConnectionProvider connectionProvider, Change change
127127
DatabaseOperationOption option) {
128128
SqlRunner runner = getSqlRunner(connectionProvider);
129129
try {
130-
runner.delete("delete from " + option.getChangelogTable() + " where id = ?",
130+
runner.delete("delete from " + option.getChangelogTable() + " where ID = ?",
131131
change.getId());
132132
} catch (SQLException e) {
133133
throw new MigrationException("Error querying last applied migration. Cause: " + e, e);

0 commit comments

Comments
 (0)