]> granicus.if.org Git - ejabberd/commitdiff
* src/mod_pubsub/mod_pubsub.erl: The table pubsub_node in ejabberd
authorBadlop <badlop@process-one.net>
Thu, 5 Feb 2009 21:23:16 +0000 (21:23 +0000)
committerBadlop <badlop@process-one.net>
Thu, 5 Feb 2009 21:23:16 +0000 (21:23 +0000)
older than 2.0.2 had indexes for parentid and type. This is not
required since ejabberd 2.0.2, so those indexes can be
deleted. (EJAB-669)

SVN Revision: 1864

ChangeLog
src/mod_pubsub/mod_pubsub.erl

index ed1f9f375e4eb6241fdfda44d10cf3fa48749aac..a1483389926d34f67e75b70fe60dba94ff4e0594 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-05  Badlop  <badlop@process-one.net>
+
+       * src/mod_pubsub/mod_pubsub.erl: The table pubsub_node in ejabberd
+       older than 2.0.2 had indexes for parentid and type. This is not
+       required since ejabberd 2.0.2, so those indexes can be
+       deleted. (EJAB-669)
+
 2009-02-03  Badlop  <badlop@process-one.net>
 
        * doc/Makefile: When cleaning, remove contributed_modules.tex.
index 291c5189cec574b86eed818b60831ab69600775d..c0f500af22ad18f4380f95fb4091639b9d7edc6a 100644 (file)
@@ -235,6 +235,8 @@ init_nodes(Host, ServerHost) ->
     ok.
 
 update_database(Host) ->
+    mnesia:del_table_index(pubsub_node, type),
+    mnesia:del_table_index(pubsub_node, parentid),
     case catch mnesia:table_info(pubsub_node, attributes) of
        [host_node, host_parent, info] ->
            ?INFO_MSG("upgrade pubsub tables",[]),