OO-678: adapt the alter scripts for mysql and postgresql to be correctly parsed by our upgrader
Merge with fc19296604bdf95b8c715c808927b737dc0261b0