reset image ID's

Phoca Gallery - image gallery extension
lucas3001
Phoca Member
Phoca Member
Posts: 43
Joined: 10 Feb 2015, 15:44

reset image ID's

Post by lucas3001 »

Hello!

doing different trials to optimize phoca to my site, i'm uploading, deleting, importing from g+ , deleting again and so on....
so now i've messed up the image numbering, and i've id's from 100 even if I have in total just 50....

i'm wondering if there is the possibility to reset the id counter (of course starting all back).

also.... is it not possible to recreate thumbnails for g+ imported images....why?

thank you in advance
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reset image ID's

Post by Jan »

Hi, this is the database counting - auto increment, so the only way is to "restore" the table in database with "truncate" command - and of course all data will be removed by this command:

The best method is to do it in phpMyADmin: TRUNCATE "your_prefix_phocagallery"

Jan
If you find Phoca extensions useful, please support the project
lucas3001
Phoca Member
Phoca Member
Posts: 43
Joined: 10 Feb 2015, 15:44

Re: reset image ID's

Post by lucas3001 »

Thank you!

It worked great!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: reset image ID's

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply