This can not be done automatically, so you will need to do some things by yourself.
Before starting the upgrade of your board you will need some preparation. phpBB 3.0 and 3.1 have different file structure and different way of handling extensions. This is why in 3.0 it's called a MOD (short for modification) and in 3.1 it's called EXT (short for extension). This is why the file structure is different.
Before everything else copy the images. Create a new directory $phpbb_root_path/files/phpbbgallery with same security parameters as your files directory. Then create $phpbb_root_path/files/phpbbgallery/core (with the same parameters) and then $phpbb_root_path/files/phpbbgallery/core/source (basically you are creating a part of the file structure that the extension will create later).
Copy the content of $phpbb_root_path/gallery/images/upload to $phpbb_root_path/files/phpbbgallery/core/source.
Change owner of the files in $phpbb_root_path/files/phpbbgallery/core/source
Save your configuration from ACP -> phpBB Gallery -> Configure
Upgrade your board. Best is to follow the official upgrade guide. Delete the gallery directory in the root of your board.
Open your database (either using phpMyAdmin or mysql from console) and execute the following SQL:
Code: Select all
DELETE FROM tableprefix_modules WHERE module_basename LIKE '%gallery%'
Install the extension. Follow the installation instructions.
Install EXIF add-on (this is mandatory). You could remove the extension later, but in versions prior to 1.2.0 the EXIF was a core feature and table is changed.
Restore your settings from the saved ones.
P.S.: If by some random chance you see images missing, and you can see their files in source dir ... you will have to execute the following sql statement:
Code: Select all
UPDATE tableprefix_gallery_images SET image_filemissing = 0 WHERE image_filemissing = 1