aboutsummaryrefslogtreecommitdiff
path: root/src/mod_pubsub
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-02-05 21:23:16 +0000
committerBadlop <badlop@process-one.net>2009-02-05 21:23:16 +0000
commitec31aef6cbfd64076fbf7cec96e8c0a0902d23a6 (patch)
tree3d0409a804e1d4237a333cdb88664ea9f92e3eed /src/mod_pubsub
parent* doc/Makefile: In Clean do not remove html. In new Distclean, remove also html. (diff)
* 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) SVN Revision: 1864
Diffstat (limited to 'src/mod_pubsub')
-rw-r--r--src/mod_pubsub/mod_pubsub.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl
index 291c5189c..c0f500af2 100644
--- a/src/mod_pubsub/mod_pubsub.erl
+++ b/src/mod_pubsub/mod_pubsub.erl
@@ -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",[]),