Fix batch statements in Java db migrations