ALTER TABLE social.feedback_task_outgoing_closed
    DROP CONSTRAINT check_bucket_outgoing;

ALTER TABLE social.feedback_task_outgoing_closed
    ADD CONSTRAINT
        check_bucket CHECK (bucket <> 'incoming'::text AND bucket <> 'deferred'::text)
        NOT VALID;


ALTER TABLE social.feedback_task_outgoing_opened
    DROP CONSTRAINT check_bucket_outgoing;

ALTER TABLE social.feedback_task_outgoing_opened
    ADD CONSTRAINT
        check_bucket CHECK (bucket <> 'incoming'::text AND bucket <> 'deferred'::text)
        NOT VALID;


ALTER TABLE social.feedback_task_outgoing_opened_experiment
    DROP CONSTRAINT check_bucket_outgoing;

ALTER TABLE social.feedback_task_outgoing_opened_experiment
    ADD CONSTRAINT
        check_bucket CHECK (bucket <> 'incoming'::text AND bucket <> 'deferred'::text)
        NOT VALID;

