ALTER TABLE social.feedback_task DROP CONSTRAINT type_constraint;

ALTER TABLE social.feedback_task ADD CONSTRAINT type_constraint
    CHECK (type = ANY (ARRAY[
        'absent-object'::text,
        'imperfect-route'::text,
        'other'::text,
        'remove'::text,
        'route-lost'::text,
        'wrong-address'::text,
        'wrong-name'::text,
        'wrong-parking'::text,
        'wrong-pedestrian-route'::text,
        'wrong-position'::text,
        'wrong-road-direction'::text,
        'wrong-route-time'::text,
        'wrong-speed-limit'::text,
        'mandatory-direction-traffic-sign'::text,
        'prohibited-turn-sign'::text,
        'one-way-traffic-sign'::text,
        'traffic-lane-sign'::text,
        'traffic-prohibited-sign'::text,
        'traffic-circle-sign'::text
    ]));
