feature 3009: Don't delete 'lat' and 'lon' fields in case users try to delete an old plugin using them (SQL crash)

git-svn-id: http://piwigo.org/svn/trunk@25802 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2013-12-06 20:21:53 +00:00
parent 4fca6a259e
commit 02620af958
-8
View File
@@ -55,14 +55,6 @@ UPDATE '. IMAGES_TABLE .'
longitude = lon
WHERE lat != NULL
AND lon != NULL
;';
pwg_query($query);
// delete old fields
$query = '
ALTER TABLE '. IMAGES_TABLE .'
DROP `lat`,
DROP `lon`
;';
pwg_query($query);
}