oDb->isTableExists('bx_persons_data') && !$this->oDb->isFieldExists('bx_persons_data', 'obfuscate_faces')) $this->oDb->query("ALTER TABLE `bx_persons_data` ADD `obfuscate_faces` TINYINT NOT NULL DEFAULT '0'"); if ($this->oDb->isTableExists('bx_organizations_data') && !$this->oDb->isFieldExists('bx_organizations_data', 'obfuscate_faces')) $this->oDb->query("ALTER TABLE `bx_organizations_data` ADD `obfuscate_faces` TINYINT NOT NULL DEFAULT '0'"); } return $aResult; } public function uninstall($aParams, $bAutoDisable = false) { $aResult = parent::uninstall($aParams, $bAutoDisable); if ($aResult['result']) { if ($this->oDb->isTableExists('bx_persons_data') && $this->oDb->isFieldExists('bx_persons_data', 'obfuscate_faces')) $this->oDb->query("ALTER TABLE `bx_persons_data` DROP `obfuscate_faces`"); if ($this->oDb->isTableExists('bx_organizations_data') && $this->oDb->isFieldExists('bx_organizations_data', 'obfuscate_faces')) $this->oDb->query("ALTER TABLE `bx_organizations_data` DROP `obfuscate_faces`"); } return $aResult; } } /** @} */