Commit c3769488 authored by Guus der Kinderen's avatar Guus der Kinderen Committed by akrherz

OF-1254 and OF-1255: Fix various database scripts. (#724)

* OF-1254: Correct database version in update script 25.

Most database update scripts version 25 identify themselfs incorrectly as 24. This causes the update script to be executed each time that Openfire starts.

* OF-1255: Fix Mysql installation script.

This removes an offending semicolon.
parent 00332806
...@@ -250,7 +250,7 @@ CREATE TABLE ofMucConversationLog ( ...@@ -250,7 +250,7 @@ CREATE TABLE ofMucConversationLog (
body TEXT NULL, body TEXT NULL,
stanza TEXT NULL, stanza TEXT NULL,
INDEX ofMucConversationLog_time_idx (logTime), INDEX ofMucConversationLog_time_idx (logTime),
INDEX ofMucConversationLog_msg_id (messageID); INDEX ofMucConversationLog_msg_id (messageID)
); );
# PubSub Tables # PubSub Tables
......
CREATE INDEX ofMucConvLog_msg_id ON ofMucConversationLog (messageID); CREATE INDEX ofMucConvLog_msg_id ON ofMucConversationLog (messageID);
UPDATE ofVersion SET version = 24 WHERE name = 'openfire'; UPDATE ofVersion SET version = 25 WHERE name = 'openfire';
\ No newline at end of file \ No newline at end of file
ALTER TABLE ofMucConversationLog ADD INDEX ofMucConvLog_msg_id (messageID); ALTER TABLE ofMucConversationLog ADD INDEX ofMucConvLog_msg_id (messageID);
UPDATE ofVersion SET version = 24 WHERE name = 'openfire'; UPDATE ofVersion SET version = 25 WHERE name = 'openfire';
\ No newline at end of file \ No newline at end of file
CREATE INDEX ofMucConvLog_msg_id ON ofMucConversationLog (messageID); CREATE INDEX ofMucConvLog_msg_id ON ofMucConversationLog (messageID);
UPDATE ofVersion SET version = 24 WHERE name = 'openfire'; UPDATE ofVersion SET version = 25 WHERE name = 'openfire';
\ No newline at end of file \ No newline at end of file
CREATE INDEX ofMucConvLog_msg_id ON ofMucConversationLog (messageID); CREATE INDEX ofMucConvLog_msg_id ON ofMucConversationLog (messageID);
UPDATE ofVersion SET version = 24 WHERE name = 'openfire'; UPDATE ofVersion SET version = 25 WHERE name = 'openfire';
\ No newline at end of file \ No newline at end of file
CREATE INDEX ofMucConvLog_msg_id ON ofMucConversationLog (messageID); CREATE INDEX ofMucConvLog_msg_id ON ofMucConversationLog (messageID);
UPDATE ofVersion SET version = 24 WHERE name = 'openfire'; UPDATE ofVersion SET version = 25 WHERE name = 'openfire';
\ No newline at end of file \ No newline at end of file
CREATE INDEX ofMucConvLog_msg_id ON ofMucConversationLog (messageID); CREATE INDEX ofMucConvLog_msg_id ON ofMucConversationLog (messageID);
UPDATE ofVersion SET version = 24 WHERE name = 'openfire'; UPDATE ofVersion SET version = 25 WHERE name = 'openfire';
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment