[DBAL-944] Fix table column alteration on DB2

Replacement for #633 as it was messed up, incomplete, untested and wrong.
I don't quite understand. I don't see any loops. And it's just one added condition. The second one is to continue early and avoid unnecessary additional checks. Can you clarify? Btw, the other platforms do it like this, too currently.