From 43e2425857607eb0ec35853a1d85f6ba7548fdc3 Mon Sep 17 00:00:00 2001 From: vyshane Date: Mon, 24 Apr 2006 08:28:21 +0000 Subject: [PATCH] Fixed log_display inserts. --- mod/label/db/mysql.php | 4 ++-- mod/label/db/mysql.sql | 4 ++-- mod/label/db/postgres7.php | 4 ++-- mod/label/db/postgres7.sql | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mod/label/db/mysql.php b/mod/label/db/mysql.php index 37fa12a61b..f9ca2a22b7 100644 --- a/mod/label/db/mysql.php +++ b/mod/label/db/mysql.php @@ -12,8 +12,8 @@ function label_upgrade($oldversion) { } if ($oldversion < 2004021900) { - modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name');"); - modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name');"); + modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'add', 'quiz', 'name');"); + modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'update', 'quiz', 'name');"); } if ($oldversion < 2004111200) { //DROP first diff --git a/mod/label/db/mysql.sql b/mod/label/db/mysql.sql index 990e4c9241..cbbce05e3c 100644 --- a/mod/label/db/mysql.sql +++ b/mod/label/db/mysql.sql @@ -8,5 +8,5 @@ CREATE TABLE `prefix_label` ( KEY course (course) ) COMMENT='Defines labels'; -INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name'); -INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name'); +INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'add', 'quiz', 'name'); +INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'update', 'quiz', 'name'); diff --git a/mod/label/db/postgres7.php b/mod/label/db/postgres7.php index d9547523d2..1488200779 100644 --- a/mod/label/db/postgres7.php +++ b/mod/label/db/postgres7.php @@ -22,9 +22,9 @@ function label_upgrade($oldversion) { if ($oldversion < 2004021900) { - modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name');"); + modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'add', 'quiz', 'name');"); - modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name');"); + modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'update', 'quiz', 'name');"); } diff --git a/mod/label/db/postgres7.sql b/mod/label/db/postgres7.sql index 8a90726ca7..e01f359300 100644 --- a/mod/label/db/postgres7.sql +++ b/mod/label/db/postgres7.sql @@ -8,5 +8,5 @@ CREATE TABLE prefix_label ( CREATE INDEX prefix_label_course_idx ON prefix_label (course); -INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name'); -INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name'); +INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'add', 'quiz', 'name'); +INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'update', 'quiz', 'name'); -- 2.39.5