Commit acbb5e4e by Nilu

data fix for jobs created without level

parent e35809c3
update tl_assessment_template set assessment_type = (select COALESCE( assessment_type, 'COMPREHENSIVE') from tl_occupation where object_id = tl_assessment_template.occupation_id) where level_id is null and occupation_id is not null;
update tl_assessment_template set level_id = (select assessment_level_id from tl_occupation where object_id = tl_assessment_template.occupation_id) where level_id is null and occupation_id is not null;
update tl_job set assessment_type = (select COALESCE( assessment_type, 'COMPREHENSIVE') from tl_occupation where object_id = tl_job.occupation_id) where level_id is null and occupation_id is not null;
update tl_job set level_id = (select assessment_level_id from tl_occupation where object_id = tl_job.occupation_id) where level_id is null and occupation_id is not null;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment