*/ class Webshopapps_Wsacommon_Model_Resource_Resource extends Mage_Core_Model_Resource_Resource { /** * Set module version into *****DB CREATED BY TOM***** * * @param string $resName * @param string $version * @return int */ public function deleteDbVersion($resName, $version) { $dbModuleInfo = array( 'code' => $resName, 'version' => $version, ); if ($this->getDbVersion($resName)) { self::$_versions[$resName] = $resName; Mage::log($dbModuleInfo); return $this->_getWriteAdapter()->delete($this->getMainTable(), array('code = ?' => $resName)); } else { self::$_versions[$resName] = $version; return $this->_getWriteAdapter()->insert($this->getMainTable(), $dbModuleInfo); } } }