Convert SQL modules to use a custom max length constant.