Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Moving comments to Title field  (Read 1852 times)

0 Members and 1 Guest are viewing this topic.

Paul333

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Moving comments to Title field
« on: May 08, 2008, 03:27:30 pm »

Is there an easy way to move ALL comments from the "description" field to the "title" field for each image ?
Logged

Paul333

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Moving comments to Title field
« Reply #1 on: May 08, 2008, 03:29:59 pm »

Probably didn't explain that too well.

I've uploaded a lot of images and populated the "description" field with info rather than the "title" field. I now realise those comments don't show unless I enable display of all the file information ...... which I don't want to do.

Thought there may be a database move (SQL ?) that will shift the whole lot in one go.
Logged

Nibbler

  • Guest
Re: Moving comments to Title field
« Reply #2 on: May 08, 2008, 05:01:37 pm »

Code: [Select]
UPDATE cpg_pictures SET title = caption
Change the prefix as appropriate.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 20 queries.