Skip to content

Commit 304c50b

Browse files
committed
fix: update correlation rules for azure and o365
1 parent 18bff6d commit 304c50b

File tree

5 files changed

+1766
-0
lines changed

5 files changed

+1766
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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="20260128001" author="Manuel Abascal">
8+
9+
<sql dbms="postgresql" splitStatements="true" stripComments="true">
10+
<![CDATA[
11+
DELETE FROM utm_correlation_rules
12+
WHERE id IN (
13+
SELECT u.id
14+
FROM utm_correlation_rules u
15+
INNER JOIN utm_group_rules_data_type ugrdt ON u.id = ugrdt.rule_id
16+
INNER JOIN utm_data_types udt ON udt.id = ugrdt.data_type_id
17+
WHERE udt.data_type IN ('azure')
18+
);
19+
]]>
20+
</sql>
21+
22+
<sqlFile
23+
path="config/liquibase/data/azure.rules.sql"
24+
relativeToChangelogFile="false"
25+
splitStatements="false"
26+
stripComments="false"
27+
encoding="UTF-8"/>
28+
29+
</changeSet>
30+
31+
</databaseChangeLog>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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="20260128002" author="Manuel Abascal">
8+
9+
<sql dbms="postgresql" splitStatements="true" stripComments="true">
10+
<![CDATA[
11+
DELETE FROM utm_correlation_rules
12+
WHERE id IN (
13+
SELECT u.id
14+
FROM utm_correlation_rules u
15+
INNER JOIN utm_group_rules_data_type ugrdt ON u.id = ugrdt.rule_id
16+
INNER JOIN utm_data_types udt ON udt.id = ugrdt.data_type_id
17+
WHERE udt.data_type IN ('o365')
18+
);
19+
]]>
20+
</sql>
21+
22+
<sqlFile
23+
path="config/liquibase/data/o365.rules.sql"
24+
relativeToChangelogFile="false"
25+
splitStatements="false"
26+
stripComments="false"
27+
encoding="UTF-8"/>
28+
29+
</changeSet>
30+
31+
</databaseChangeLog>

0 commit comments

Comments
 (0)