View Single Post
Old April 15th, 2005, 09:24 AM   #9 (permalink)
ConqSoft
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,417
Re: Coppermine User Import

Something like this. Though, this hasn't been tested, and was just typed off the top of my head.

UPDATE adv_gallery_images SET userid = (SELECT user.userid FROM user WHERE adv_gallery_images.username = user.username)

and

UPDATE adv_gallery_posts SET userid = (SELECT user.userid FROM user WHERE adv_gallery_posts.username = user.username)


And if you have any user-owned/created categories in Coppermine, you'd need to run a similar update on the Gallery category table.
ConqSoft is offline   Reply With Quote