ALTER TABLE service.bld_recognition_task
    DROP CONSTRAINT bld_recognition_task_mode_check,
    ADD CONSTRAINT bld_recognition_task_mode_check
        CHECK (mode in ('rectangle', 'edge', 'edge_vert', 'complex_grid', 'complex_projection', 'complex_maskrcnn'));