mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user