[Tickets #4732] Re: New, faster datatree history migration script

bugs@bugs.horde.org bugs at bugs.horde.org
Tue Dec 5 13:18:57 PST 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4732
-----------------------------------------------------------------------
 Ticket             | 4732
 Updated By         | josh at endries.org
 Summary            | New, faster datatree history migration script
 Queue              | Horde Base
 Version            | 3.1.3
 Type               | Enhancement
 State              | Feedback
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


josh at endries.org (2006-12-05 13:18) wrote:

> Yes, those are probably parent entries. I haven't had a chance to 
> look yet to see why your script isn't deleting them, but you should 
> be able to kill everything with a group_uid of horde.history. Then 
> you can use this snippet to find any "orphaned" datatree_ids that 
> should be purged from horde_datatree_attributes:

The lines are not deleted because the delete statements are within the
attribute loop, and since there are no attributes it never enters that
loop. Moving the delete lines out of that loop (down three lines) should
take care of it. They should probably be outside the loop anyway since
they have nothing to do with the data tree object's attributes, only the
object itself, oops!

Josh




More information about the bugs mailing list