-- Add 'starting' and 'stopping' to recorder_schedules status check constraint

ALTER TABLE recorder_schedules DROP CONSTRAINT recorder_schedules_status_check;

ALTER TABLE recorder_schedules
  ADD CONSTRAINT recorder_schedules_status_check
  CHECK (status IN ('pending','running','completed','failed','cancelled','starting','stopping'));
