Upgrade Path Question

Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2006-05-10 04:46

Hello !

Would there be any particular reason for this code not to wok in Gallery 2.0.x ?

        global $gallery;  
        $storage =& $gallery->getStorage();
        $updatequery='
           UPDATE [GalleryPluginParameterMap]
           SET [GalleryPluginParameterMap::parameterValue] = \''.$result[4].'\'
           WHERE [GalleryPluginParameterMap::pluginType] = \''.$result[0].'\'
           AND [GalleryPluginParameterMap::pluginId] = \''.$result[1].'\'
           AND [GalleryPluginParameterMap::itemId] = \''.$result[2].'\'
           AND [GalleryPluginParameterMap::parameterName] = \''.$result[3].'\'
           ';

        $ret = $storage->execute($updatequery);

The same thing seems to work fine in Galler 2.1.x, maybe I missing something ?

Thanks in advance!
-------------------------
The Termite :-)