Post installation migration of Caption->Description, etc?

SHS`

Joined: 2002-12-10
Posts: 30
Posted: Fri, 2005-05-06 19:05

I'd like to recursively populate the currently null custom "Description" field with the current "Caption" data on all photo items, and regenerate all the "Caption" data, using the sanitized version of the filename as per what happens when the form based image uploader is used.

For the latter at least an existing G1 function could be used, but other than that, I'm a bit lost as to how to tackle this one with a (hopfully small) PHP script.

----
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://lambcutlet.org/gallery/
Gallery version: 1.4.4-pl6
Apache version: 1.3.33 (Apache-SSL, Ben-SSL/1.55)
PHP version (don't just say PHP 4, please): 5.0.4
Graphics Toolkit: ImageMagick 6.0.6
Operating system: Debian 3.0
Web browser/version (if applicable): N/A