Skip to content

Commit 9961242

Browse files
fix[backend](changeset): added customHeader entries as password type (#2100)
1 parent f11eb07 commit 9961242

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<databaseChangeLog
3+
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
6+
7+
<changeSet id="20260522001" author="Alex">
8+
<comment>Set utmstack.socai.customHeaders data type to password</comment>
9+
<sql dbms="postgresql" splitStatements="false">
10+
<![CDATA[
11+
do $$
12+
declare
13+
grp_id integer;
14+
begin
15+
select id into grp_id from public.utm_module_group
16+
where module_id = (select id from public.utm_module where module_name = 'SOC_AI')
17+
limit 1;
18+
19+
IF grp_id IS NOT NULL THEN
20+
UPDATE public.utm_module_group_configuration
21+
SET conf_data_type = 'password'
22+
WHERE group_id = grp_id AND conf_key = 'utmstack.socai.customHeaders';
23+
END IF;
24+
end;
25+
$$ language plpgsql;
26+
]]>
27+
</sql>
28+
</changeSet>
29+
</databaseChangeLog>

backend/src/main/resources/config/liquibase/master.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,4 +597,6 @@
597597

598598
<include file="/config/liquibase/changelog/20260409002_update_socai_config.xml" relativeToChangelogFile="false"/>
599599

600+
<include file="/config/liquibase/changelog/20260522001_update_socai_custom_headers_password.xml" relativeToChangelogFile="false"/>
601+
600602
</databaseChangeLog>

0 commit comments

Comments
 (0)