From: vyshane Date: Mon, 24 Apr 2006 08:43:29 +0000 (+0000) Subject: Inserts for log_display. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fccaec1f5b31e73b3c1a74cb6d8416084eda5b9c;p=moodle.git Inserts for log_display. --- diff --git a/mod/chat/db/mysql.php b/mod/chat/db/mysql.php index d38f0cf5fe..1a3faa4315 100644 --- a/mod/chat/db/mysql.php +++ b/mod/chat/db/mysql.php @@ -7,7 +7,7 @@ function chat_upgrade($oldversion) { global $CFG; if ($oldversion < 2003072100) { - modify_database ("", " INSERT INTO prefix_log_display VALUES ('chat', 'report', 'chat', 'name'); "); + modify_database ("", " INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'report', 'chat', 'name'); "); } if ($oldversion < 2003072101) { @@ -34,7 +34,7 @@ function chat_upgrade($oldversion) { } if ($oldversion < 2004043000) { - modify_database("", "INSERT INTO prefix_log_display VALUES ('chat', 'talk', 'chat', 'name');"); + modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'talk', 'chat', 'name');"); } if ($oldversion < 2004111200) { diff --git a/mod/chat/db/oci8po.sql b/mod/chat/db/oci8po.sql index e082c15661..2e4d3bf498 100755 --- a/mod/chat/db/oci8po.sql +++ b/mod/chat/db/oci8po.sql @@ -125,9 +125,9 @@ select * from prefix_chat_users; delete from prefix_log_display where module='chat'; -INSERT INTO prefix_log_display VALUES ('chat', 'view', 'chat', 'name'); -INSERT INTO prefix_log_display VALUES ('chat', 'add', 'chat', 'name'); -INSERT INTO prefix_log_display VALUES ('chat', 'update', 'chat', 'name'); -INSERT INTO prefix_log_display VALUES ('chat', 'report', 'chat', 'name'); +INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'view', 'chat', 'name'); +INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'add', 'chat', 'name'); +INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'update', 'chat', 'name'); +INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'report', 'chat', 'name'); select * from prefix_log_display where module='chat' order by 1,2,3,4; diff --git a/mod/chat/db/postgres7.php b/mod/chat/db/postgres7.php index 88a89c70bf..5dbab31c54 100644 --- a/mod/chat/db/postgres7.php +++ b/mod/chat/db/postgres7.php @@ -17,7 +17,7 @@ function chat_upgrade($oldversion) { } if ($oldversion < 2004043000) { - modify_database("", "INSERT INTO prefix_log_display VALUES ('chat', 'talk', 'chat', 'name');"); + modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'talk', 'chat', 'name');"); } if ($oldversion < 2004111200) { //drop them first to avoid collisions with upgrades from 1.4.2+