Okay, my client nuked his folders too, so I created this insert query to rebuild it from within MySQL Query Browser. In the case of my client, he is using MySQL on a linux (Ubuntu) box with the Sugar Suite installed in 'sugarcrm'. Make adjustments as needed for your configuration. I did not feel like typing all those id codes!
Code:
INSERT INTO sugarcrm.folders_subscriptions (id, folder_id, assigned_user_id)
SELECT uuid() AS sid, f.id AS fid, u.id AS uid
FROM sugarcrm.users u, sugarcrm.folders f
WHERE f.created_by = u.id
Bookmarks