feat: refs #6610 fixDeleteTickets #2154
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2154
Loading…
Reference in New Issue
No description provided.
Delete Branch "6610-hotFixDeleteTicketsWeekly"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -183,2 +183,4 @@
DELETE FROM travelLog WHERE creationDate < v3Month;
CREATE OR REPLACE TEMPORARY TABLE tTicketDelete
SELECT DISTINCT tl.originFk ticketFk, sub.ticketFk aa
Identación
@ -185,0 +186,4 @@
SELECT DISTINCT tl.originFk ticketFk, sub.ticketFk aa
FROM ticketLog tl
JOIN (
SELECT MAX(tl.id)ids,tw.ticketFk
Espacio despues de coma:
MAX(tl.id)ids, tw.ticketFk
@ -185,0 +194,4 @@
AND t.isDeleted
AND tw.ticketFk IS NULL
GROUP BY t.id
) sub ON sub.ids = tl.id
Espacio al final de la linea
@ -185,0 +195,4 @@
AND tw.ticketFk IS NULL
GROUP BY t.id
) sub ON sub.ids = tl.id
WHERE tl.creationDate <= util.VN_CURDATE() - INTERVAL 60 DAY;
WHERE tl.creationDate <= vDateShort
@ -185,0 +186,4 @@
SELECT DISTINCT tl.originFk ticketFk
FROM ticketLog tl
JOIN (
SELECT MAX(tl.id)ids, tw.ticketFk
tw.ticketFk no se utiliza