mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Fixed missing Label logs - thanks Eloy!
This commit is contained in:
parent
94b9a1ca02
commit
899e041895
@ -10,6 +10,12 @@ function label_upgrade($oldversion) {
|
||||
table_column("label", "", "course", "integer", "10", "unsigned", "0", "not null", "id");
|
||||
}
|
||||
|
||||
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');");
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -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');
|
||||
|
@ -10,6 +10,11 @@ function label_upgrade($oldversion) {
|
||||
table_column("label", "", "course", "integer", "10", "unsigned", "0", "not null", "id");
|
||||
}
|
||||
|
||||
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');");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -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');
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user