Skip to content

Commit f4b38a9

Browse files
Fix upgrade failure on QC exclusions linked to metrics being deleted (#1139)
1 parent 6e45a7f commit f4b38a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

resources/schemas/dbscripts/postgresql/targetedms-25.004-25.005.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
DELETE FROM targetedms.QCMetricExclusion WHERE MetricId IN
2+
(SELECT Id FROM targetedms.QCMetricConfiguration WHERE Series2QueryName IS NOT NULL);
3+
4+
DELETE FROM targetedms.QCTraceMetricValues WHERE Metric IN
5+
(SELECT Id FROM targetedms.QCMetricConfiguration WHERE Series2QueryName IS NOT NULL);
6+
17
DELETE FROM targetedms.QCEnabledMetrics WHERE Metric IN
28
(SELECT Id FROM targetedms.QCMetricConfiguration WHERE Series2QueryName IS NOT NULL);
39

0 commit comments

Comments
 (0)