summaryrefslogtreecommitdiff
path: root/modules/comment/helpers/comment_installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-17 00:52:50 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-17 00:52:50 +0000
commitd568a1e9fd63c97eb86cd84a51bb6770747ec37c (patch)
tree2b382bce985bce886c69d6d58377c5ce71a0cdc6 /modules/comment/helpers/comment_installer.php
parent91be7a38f883cd008d370f81ff68949de68eafbf (diff)
Implement relevance ranked boolean searching on a full text index of
item and comment data. Whew! It's not pretty yet. And you have to manually update the index currently in admin/maintenance. But it works.
Diffstat (limited to 'modules/comment/helpers/comment_installer.php')
-rw-r--r--modules/comment/helpers/comment_installer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/comment/helpers/comment_installer.php b/modules/comment/helpers/comment_installer.php
index aba32566..651065f7 100644
--- a/modules/comment/helpers/comment_installer.php
+++ b/modules/comment/helpers/comment_installer.php
@@ -58,6 +58,9 @@ class comment_installer {
static function uninstall() {
$db = Database::instance();
+ $sql = "SELECT `item_id` FROM `comments`";
+ module::event("item_related_update_batch", $sql);
+
$db->query("DROP TABLE IF EXISTS `comments`;");
module::delete("comment");
}