Inserts for log_display.

This commit is contained in:
vyshane 2006-04-24 08:43:29 +00:00
parent a2655f6527
commit fccaec1f5b
3 changed files with 7 additions and 7 deletions

View File

@ -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) {

View File

@ -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;

View File

@ -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+