mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Inserts for log_display.
This commit is contained in:
parent
a2655f6527
commit
fccaec1f5b
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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+
|
||||
|
Loading…
x
Reference in New Issue
Block a user