diff --git a/backend/src/main/resources/config/v_1.0/20250211_fix_parent_org_unit.xml b/backend/src/main/resources/config/v_1.0/20250211_fix_parent_org_unit.xml new file mode 100644 index 00000000..c9dadfec --- /dev/null +++ b/backend/src/main/resources/config/v_1.0/20250211_fix_parent_org_unit.xml @@ -0,0 +1,19 @@ + + + + + fix parent org unit + + UPDATE security.org_unit ou + SET parent_id = pou.id + FROM public.recruitment r + JOIN security.org_unit pou on pou.code = r.parent_id + WHERE ou.code = r.idm_id; + + + + \ No newline at end of file diff --git a/backend/src/main/resources/config/v_1.0/changelog-1.0.xml b/backend/src/main/resources/config/v_1.0/changelog-1.0.xml index a5986878..017539a7 100644 --- a/backend/src/main/resources/config/v_1.0/changelog-1.0.xml +++ b/backend/src/main/resources/config/v_1.0/changelog-1.0.xml @@ -5,11 +5,12 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> - + + \ No newline at end of file