芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/search/engine/simpledb/db/uninstall.php
. /** * Uninstall code. * * @package search_simpledb * @copyright 2016 Dan Poltawski
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die; /** * Plugin uninstall code. * * @package search_simpledb * @copyright 2016 Dan Poltawski
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ function xmldb_search_simpledb_uninstall() { global $DB; switch ($DB->get_dbfamily()) { case 'postgres': $DB->execute("DROP INDEX {search_simpledb_title}"); $DB->execute("DROP INDEX {search_simpledb_content}"); $DB->execute("DROP INDEX {search_simpledb_description1}"); $DB->execute("DROP INDEX {search_simpledb_description2}"); break; case 'mysql': if ($DB->is_fulltext_search_supported()) { $DB->execute("ALTER TABLE {search_simpledb_index} DROP INDEX {search_simpledb_index_index}"); } break; case 'mssql': if ($DB->is_fulltext_search_supported()) { $DB->execute("DROP FULLTEXT CATALOG {search_simpledb_catalog}"); } break; } }