BEGIN;
alter table phoneline_forwarding drop constraint phoneline_forwarding_when_unconditional_check;
alter table phoneline_forwarding drop constraint phoneline_forwarding_when_busy_check;
alter table phoneline_forwarding drop constraint phoneline_forwarding_when_noanswer_check;
alter table phoneline_forwarding drop constraint phoneline_forwarding_when_loggedoff_check;
alter table phoneline_forwarding drop constraint phoneline_forwarding_when_dnd_check;
alter table phoneline_forwarding drop constraint phoneline_forwarding_when_unreachable_check;

alter table phoneline_forwarding add constraint phoneline_forwarding_when_unconditional_check
  CHECK (when_unconditional IN ('ring','voicemail','operator','forward','hangup','busy','refuse','mobile','ask','hunt'));
alter table phoneline_forwarding add constraint phoneline_forwarding_when_busy_check
  CHECK (when_busy IN ('voicemail','operator','forward','hangup','busy','refuse','mobile','ask','hunt'));
alter table phoneline_forwarding add constraint phoneline_forwarding_when_noanswer_check
  CHECK (when_noanswer IN ('voicemail','operator','forward','hangup','busy','refuse','mobile','ask','hunt'));
alter table phoneline_forwarding add constraint phoneline_forwarding_when_loggedoff_check
  CHECK (when_loggedoff IN ('voicemail','operator','forward','hangup','busy','refuse','mobile','ask','hunt'));
alter table phoneline_forwarding add constraint phoneline_forwarding_when_dnd_check
  CHECK (when_dnd IN ('voicemail','operator','forward','hangup','busy','refuse','mobile','ask','hunt'));
alter table phoneline_forwarding add constraint phoneline_forwarding_when_unreachable_check
  CHECK (when_unreachable IN ('voicemail','operator','forward','hangup','busy','refuse','mobile','ask','hunt'));

COMMIT;
