This commit is contained in:
parent
c9d24bf353
commit
d52e155afa
2 changed files with 21 additions and 1 deletions
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<databaseChangeLog
|
||||||
|
xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
|
||||||
|
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
|
||||||
|
|
||||||
|
<changeSet id="0001" author="d.ivanov">
|
||||||
|
<comment>fix parent org unit</comment>
|
||||||
|
<sql>
|
||||||
|
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;
|
||||||
|
</sql>
|
||||||
|
</changeSet>
|
||||||
|
|
||||||
|
</databaseChangeLog>
|
||||||
|
|
@ -5,11 +5,12 @@
|
||||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
||||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
|
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
|
||||||
|
|
||||||
<include file="20241120-SUPPORT-8722_create_db.xml" relativeToChangelogFile="true"/>
|
<include file="20241120-SUPPORT-8722_create_db.xml" relativeToChangelogFile="true"/>
|
||||||
<include file="20250205-ERVU-261_create_db.xml" relativeToChangelogFile="true"/>
|
<include file="20250205-ERVU-261_create_db.xml" relativeToChangelogFile="true"/>
|
||||||
<include file="20250207_user_account_email.xml" relativeToChangelogFile="true"/>
|
<include file="20250207_user_account_email.xml" relativeToChangelogFile="true"/>
|
||||||
<include file="20250207_ERVU-273_create_db.xml" relativeToChangelogFile="true"/>
|
<include file="20250207_ERVU-273_create_db.xml" relativeToChangelogFile="true"/>
|
||||||
<include file="20250211_create_admin_user.xml" relativeToChangelogFile="true"/>
|
<include file="20250211_create_admin_user.xml" relativeToChangelogFile="true"/>
|
||||||
|
<include file="20250211_fix_parent_org_unit.xml" relativeToChangelogFile="true"/>
|
||||||
|
|
||||||
|
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue