Skip to content
Browse files

Fixed missing log_displays - thanks Eloy!

  • Loading branch information...
1 parent 899e041 commit 004f8037f4d9472d9e66378a5260652e62ac4db8 moodler committed Feb 19, 2004
Showing with 14 additions and 1 deletion.
  1. +4 −0 mod/quiz/db/mysql.php
  2. +2 −0 mod/quiz/db/mysql.sql
  3. +5 −0 mod/quiz/db/postgres7.php
  4. +2 −0 mod/quiz/db/postgres7.sql
  5. +1 −1 mod/quiz/version.php
View
4 mod/quiz/db/mysql.php
@@ -185,6 +185,10 @@ function quiz_upgrade($oldversion) {
table_column("quiz_questions", "", "questiontextformat", "integer", "2", "", "0", "not null", "questiontext");
}
+ if ($oldversion < 2004021900) {
+ modify_database("","INSERT INTO prefix_log_display VALUES ('quiz', 'add', 'quiz', 'name');");
+ modify_database("","INSERT INTO prefix_log_display VALUES ('quiz', 'update', 'quiz', 'name');");
+ }
return true;
}
View
2 mod/quiz/db/mysql.sql
@@ -266,6 +266,8 @@ CREATE TABLE `prefix_quiz_multianswers` (
) TYPE=MyISAM COMMENT='Options for multianswer questions';
# --------------------------------------------------------
+INSERT INTO prefix_log_display VALUES ('quiz', 'add', 'quiz', 'name');
+INSERT INTO prefix_log_display VALUES ('quiz', 'update', 'quiz', 'name');
INSERT INTO prefix_log_display VALUES ('quiz', 'view', 'quiz', 'name');
INSERT INTO prefix_log_display VALUES ('quiz', 'report', 'quiz', 'name');
INSERT INTO prefix_log_display VALUES ('quiz', 'attempt', 'quiz', 'name');
View
5 mod/quiz/db/postgres7.php
@@ -140,6 +140,11 @@ function quiz_upgrade($oldversion) {
table_column("quiz_questions", "", "questiontextformat", "integer", "2", "", "0", "not null", "questiontext");
}
+ if ($oldversion < 2004021900) {
+ modify_database("","INSERT INTO prefix_log_display VALUES ('quiz', 'add', 'quiz', 'name');");
+ modify_database("","INSERT INTO prefix_log_display VALUES ('quiz', 'update', 'quiz', 'name');");
+ }
+
return true;
}
View
2 mod/quiz/db/postgres7.sql
@@ -239,6 +239,8 @@ CREATE TABLE prefix_quiz_truefalse (
CREATE INDEX prefix_quiz_truefalse_question_idx ON prefix_quiz_truefalse (question);
+INSERT INTO prefix_log_display VALUES ('quiz', 'add', 'quiz', 'name');
+INSERT INTO prefix_log_display VALUES ('quiz', 'update', 'quiz', 'name');
INSERT INTO prefix_log_display VALUES ('quiz', 'view', 'quiz', 'name');
INSERT INTO prefix_log_display VALUES ('quiz', 'report', 'quiz', 'name');
INSERT INTO prefix_log_display VALUES ('quiz', 'attempt', 'quiz', 'name');
View
2 mod/quiz/version.php
@@ -5,7 +5,7 @@
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
////////////////////////////////////////////////////////////////////////////////
-$module->version = 2004021300; // The (date) version of this module
+$module->version = 2004021900; // The (date) version of this module
$module->requires = 2004013101; // Requires this Moodle version
$module->cron = 0; // How often should cron check this module (seconds)?

0 comments on commit 004f803

Please sign in to comment.
Something went wrong with that request. Please try again.