]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed missing Label logs - thanks Eloy!
authormoodler <moodler>
Thu, 19 Feb 2004 13:25:25 +0000 (13:25 +0000)
committermoodler <moodler>
Thu, 19 Feb 2004 13:25:25 +0000 (13:25 +0000)
mod/label/db/mysql.php
mod/label/db/mysql.sql
mod/label/db/postgres7.php
mod/label/db/postgres7.sql
mod/label/version.php

index f677b2d91fe8e9f04b9f4986fd65c9b43bfed322..74e0f571eb56488a01acb273df4cb36a34f801b9 100644 (file)
@@ -10,6 +10,12 @@ function label_upgrade($oldversion) {
         table_column("label", "", "course", "integer", "10", "unsigned", "0", "not null", "id");\r
     }\r
 \r
+    if ($oldversion < 2004021900) {\r
+        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name');");\r
+        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name');");\r
+    }\r
+\r
+\r
     return true;\r
 }\r
 \r
index 9d6871bbef26b63cd4255855ca07d4ca64262b27..836a64e90ff7a9f7f2c22607ba2554a8f8520880 100644 (file)
@@ -6,3 +6,6 @@ CREATE TABLE `prefix_label` (
   `timemodified` int(10) unsigned NOT NULL default '0',
   PRIMARY KEY  (`id`)
 ) COMMENT='Defines labels';
+
+INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name');
+INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name');
index f677b2d91fe8e9f04b9f4986fd65c9b43bfed322..854c2977b777f8ad192667332fa4ce07454a0c84 100644 (file)
@@ -10,6 +10,11 @@ function label_upgrade($oldversion) {
         table_column("label", "", "course", "integer", "10", "unsigned", "0", "not null", "id");\r
     }\r
 \r
+    if ($oldversion < 2004021900) {\r
+        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name');");\r
+        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name');");\r
+    }\r
+\r
     return true;\r
 }\r
 \r
index 8be8e25898e5c9146abdbf20b7760cd53e565469..bcf4ef2bc2cda4d9042fdefd6ffa6ec8257af219 100644 (file)
@@ -5,3 +5,6 @@ CREATE TABLE prefix_label (
   content text,
   timemodified integer NOT NULL default '0'
 );
+
+INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name');
+INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name');
index d3206843383ad846fd1a94182f87f5060d0259e7..f95b2e1e9e6ed11e6220023ab8ad28884ba7bd26 100644 (file)
@@ -5,7 +5,7 @@
 ///  This fragment is called by moodle_needs_upgrading() and /admin/index.php
 /////////////////////////////////////////////////////////////////////////////////
 
-$module->version  = 2004013101;  // The current module version (Date: YYYYMMDDXX)
+$module->version  = 2004021900;  // The current module version (Date: YYYYMMDDXX)
 $module->requires = 2004013101;  // Requires this Moodle version
 $module->cron     = 0;           // Period for cron to check this module (secs)