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: Reset the pid to zero  (Read 2180 times)

0 Members and 1 Guest are viewing this topic.

wkpoon

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Reset the pid to zero
« on: June 12, 2007, 11:00:48 am »

If there a way to reset the pid to zero ? when I delete all albums and create a new one, the pid did not reset to zero and I the photo file name is the same as the pid that is 0001.jpg would had the pid 1 and so on.
« Last Edit: June 13, 2007, 08:33:00 am by GauGau »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Reset the pid to zero
« Reply #1 on: June 12, 2007, 11:23:31 am »

You can reset the pid to start from 1 using a database tool such as phpMyAdmin. You actually need to set the AUTO_INCREMENT value to 1 for cpg_pictures table. But make sure that there are no photos in cpg before doing so.
Logged
Chief Geek at Ranium Systems

wkpoon

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Reset the pid to zero
« Reply #2 on: June 13, 2007, 06:58:52 am »

I had reset the pid to 1 and had my file name consist with the pid that 001.jpg would had pid 1. Thanks Ali for your help!!
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.