BS-8827, match custom value max length in db.