Commit bff17130 authored by Ard Schrijvers's avatar Ard Schrijvers

REPO-1937 bump the index in the next loop

(note this was at this moment not a real bug because uniqueIndexes always
contained just 1 value)
parent 26f64479
......@@ -149,6 +149,7 @@ public class DbLockManager extends AbstractLockManager {
int index = 1;
for (String uniqueIndex : uniqueIndexes) {
statement.addBatch("CREATE UNIQUE INDEX " + tableName + "_idx_"+index+" on " + tableName + "("+uniqueIndex+")");
index++;
}
statement.setQueryTimeout(10);
statement.executeBatch();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment