adjust UR constraint to match DB constraint