fix migration length for pg