25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-02 16:37:52 +01:00

Merge r1864 from trunk:

* 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: 1902
This commit is contained in:
Badlop 2009-02-21 09:26:12 +00:00
parent 02d7d0aa4c
commit 7c6ccbb744
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,10 @@
2009-02-21 Badlop <badlop@process-one.net> 2009-02-21 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)
* doc/Makefile: In Clean do not remove html. In new Distclean, * doc/Makefile: In Clean do not remove html. In new Distclean,
remove also html. remove also html.

View File

@ -235,6 +235,8 @@ init_nodes(Host, ServerHost, ServedHosts) ->
ok. ok.
update_database(Host) -> 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 case catch mnesia:table_info(pubsub_node, attributes) of
[host_node, host_parent, info] -> [host_node, host_parent, info] ->
?INFO_MSG("upgrade pubsub tables",[]), ?INFO_MSG("upgrade pubsub tables",[]),