SET search_path=eye,public;

ALTER TYPE hypothesis_type RENAME to hypothesis_type_;

CREATE TYPE hypothesis_type AS ENUM (
    'absent_traffic_light',
    'absent_house_number',
    'wrong_speed_limit',
    'absent_parking',
    'wrong_parking_ft_type',
    'traffic_sign',
    'wrong_direction',
    'prohibited_path',
    'lane_hypothesis'
);

ALTER TABLE hypothesis
    ALTER COLUMN type
    TYPE hypothesis_type
    USING type::text::hypothesis_type;

DROP TYPE hypothesis_type_;

SET search_path=public;
