postgresql7.1 select cm_form_widget__register_attribute_widget( :content_type, :attribute_name, :widget, :is_required ); update cm_attribute_widgets set is_required = case when is_required = 't'::bool then 'f'::bool else 't'::bool end where attribute_id = :attribute_id and widget = :widget