Fix for PLUS-1191: upgrade was failing due to given length 767