diff --git a/mod/chat/db/mysql.php b/mod/chat/db/mysql.php index 2766c6efec3..965d4a30196 100644 --- a/mod/chat/db/mysql.php +++ b/mod/chat/db/mysql.php @@ -37,7 +37,7 @@ function chat_upgrade($oldversion) { modify_database("", "INSERT INTO prefix_log_display VALUES ('chat', 'talk', 'chat', 'name');"); } - if ($oldversion < 2004111200) { + if ($oldversion < 2004060401) { modify_database('','ALTER TABLE prefix_chat ADD INDEX `course` (`course`);'); modify_database('','ALTER TABLE prefix_chat_messages ADD INDEX `chatid` (`chatid`);'); modify_database('','ALTER TABLE prefix_chat_messages ADD INDEX `userid` (`userid`);'); diff --git a/mod/chat/db/postgres7.php b/mod/chat/db/postgres7.php index e9c24455409..97418c1240d 100644 --- a/mod/chat/db/postgres7.php +++ b/mod/chat/db/postgres7.php @@ -20,7 +20,7 @@ function chat_upgrade($oldversion) { modify_database("", "INSERT INTO prefix_log_display VALUES ('chat', 'talk', 'chat', 'name');"); } - if ($oldversion < 2004111200) { + if ($oldversion < 2004060401) { modify_database('','CREATE INDEX prefix_chat_course_idx ON prefix_chat(course);'); modify_database('','CREATE INDEX prefix_chat_messages_chatid_idx ON prefix_chat_messages (chatid);'); modify_database('','CREATE INDEX prefix_chat_messages_userid_idx ON prefix_chat_messages (userid);'); diff --git a/mod/chat/version.php b/mod/chat/version.php index 9b36d9acb82..970df5c4cfa 100644 --- a/mod/chat/version.php +++ b/mod/chat/version.php @@ -5,7 +5,7 @@ /// This fragment is called by moodle_needs_upgrading() and /admin/index.php ///////////////////////////////////////////////////////////////////////////////// -$module->version = 2004121100; // The (date) version of this module +$module->version = 2004060401; // The (date) version of this module $module->requires = 2004052505; // Requires this Moodle version $module->cron = 300; // How often should cron check this module (seconds)?