Skip to content

Commit 8c5516b

Browse files
authored
fix: TICKET 0009383: Cannot use 'Tree Counters Latest Exec On Test Plan on Platform' setting (#372)
The view latest_exec_by_testplan_plat was missing for Postgresql Co-authored-by: atisne <aurelien.tisne@cs-soprasteria.com>
1 parent 2640d5a commit 8c5516b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

install/sql/postgres/testlink_create_tables.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,15 @@ CREATE OR REPLACE VIEW /*prefix*/tcversions_without_platforms AS
10881088
WHERE TCPL.tcversion_id = NHTCV.id ) )
10891089
);
10901090

1091+
--
1092+
--
1093+
CREATE OR REPLACE VIEW /*prefix*/latest_exec_by_testplan_plat AS
1094+
(
1095+
SELECT tcversion_id, testplan_id,platform_id,max(id) AS id
1096+
FROM /*prefix*/executions
1097+
GROUP BY tcversion_id,testplan_id,platform_id
1098+
);
1099+
10911100
--
10921101
--
10931102
CREATE OR REPLACE VIEW /*prefix*/tsuites_tree_depth_2 AS

0 commit comments

Comments
 (0)