Replace check constraint with trigger for pending fixes