$resName, 'version' => $version, ); if ($this->getDbVersion($resName)) { self::$_versions[$resName] = $resName; return $this->_getWriteAdapter()->delete($this->getMainTable(), array('code = ?' => $resName)); } else { self::$_versions[$resName] = $version; return $this->_getWriteAdapter()->insert($this->getMainTable(), $dbModuleInfo); } } }