Skip to content

Commit a4265fe

Browse files
committed
Updated view.
1 parent 0d732a1 commit a4265fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

database.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ CREATE VIEW view_ticket AS
269269
a.statusid,
270270
a.parentid,
271271
a.userid,
272-
a.watcherid,
273272
a.name,
274273
a.worked,
275274
a.estimate,
@@ -287,7 +286,6 @@ CREATE VIEW view_ticket AS
287286
a.isbillable,
288287
d.name AS status,
289288
d.sortindex,
290-
d.icon AS status_icon,
291289
d.color AS status_color,
292290
a.search,
293291
b.isprivate,
@@ -298,13 +296,15 @@ CREATE VIEW view_ticket AS
298296
a.source,
299297
a.markdown,
300298
a.ispublic,
299+
d.icon AS status_icon,
301300
a.note,
302-
a.attrs
301+
a.watcherid,
302+
a.attrs,
303+
ARRAY(SELECT tbl_ticket.id FROM tbl_ticket WHERE tbl_ticket.parentid = a.id) AS children
303304
FROM tbl_ticket a
304305
LEFT JOIN tbl_folder b ON b.id = a.folderid
305306
LEFT JOIN cl_status d ON d.id = a.statusid
306-
WHERE
307-
a.isremoved = false;
307+
WHERE a.isremoved = false;
308308

309309
CREATE VIEW view_ticket_time AS
310310
SELECT

0 commit comments

Comments
 (0)