ALTER TABLE social.feedback_task DROP CONSTRAINT type_constraint;

ALTER TABLE social.feedback_task ADD CONSTRAINT type_constraint
    CHECK (type = ANY (ARRAY[
        'wrong-speed-limit'::text,
        'wrong-position'::text,
        'imperfect-route'::text,
        'absent-object'::text,
        'wrong-pedestrian-route'::text,
        'remove'::text,
        'wrong-route-time'::text,
        'wrong-name'::text,
        'other'::text
    ]));
