Abhängigkeiten beim Löschen alter Tickets?
Hallo Liste,
Was darf ich auf keinen Fall vergessen, wenn ich alte Tickets(2006) löschen möchte? Mir ist die ganze Abhängigkeit der diversen Ids nicht ganz klar und ich möchte nicht die referenzielle Integrität aus Versehen zerschießen.
Im Moment würde ich folgendes tun: 1. Alle otrs.ticket suchen, deren change_time aus dem Jahr 2006 ist
2. Alle article_id suchen, deren ticket_id aus 1. resultiert
3. Alle otrs.ticket_history/ _index/ _lock_index/ _watcher/ _time_accounting suchen, die von 1. abhängen
4. Alle otrs.article_attachment/_flag/_plain suchen, die von 2. abhängen
5. die Ergebnisse aus 4. löschen
6. die Ergebnisse aus 3. löschen
7. die Ergebnisse aus 2. löschen
8. die Ergebnisse aus 1. löschen
Habe ich (BITTE ;)) an alles gedacht?
Gruß, Florian ********************************************************************************************** IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error, please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies thereof. *** eSafe scanned this email for viruses, vandals, and malicious content. *** **********************************************************************************************
participants (1)
-
Rustedt, Florian