Fixed inserts for log_display.
This commit is contained in:
@@ -55,9 +55,9 @@ CREATE TABLE `prefix_assignment_submissions` (
|
||||
# --------------------------------------------------------
|
||||
|
||||
|
||||
INSERT INTO prefix_log_display VALUES ('assignment', 'view', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display VALUES ('assignment', 'add', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display VALUES ('assignment', 'update', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display VALUES ('assignment', 'view submission', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display VALUES ('assignment', 'upload', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'view', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'add', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'update', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'view submission', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'upload', 'assignment', 'name');
|
||||
|
||||
|
||||
@@ -58,9 +58,9 @@ CREATE INDEX prefix_assignment_submissions_timemarked_idx ON prefix_assignment_s
|
||||
# --------------------------------------------------------
|
||||
|
||||
|
||||
INSERT INTO prefix_log_display VALUES ('assignment', 'view', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display VALUES ('assignment', 'add', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display VALUES ('assignment', 'update', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display VALUES ('assignment', 'view submission', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display VALUES ('assignment', 'upload', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'view', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'add', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'update', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'view submission', 'assignment', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'upload', 'assignment', 'name');
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ function choice_upgrade($oldversion) {
|
||||
table_column("choice", "", "showunanswered", "integer", "4", "unsigned", "0", "", "publish");
|
||||
}
|
||||
if ($oldversion < 2004021700) {
|
||||
modify_database("", "INSERT INTO prefix_log_display VALUES ('choice', 'choose', 'choice', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display VALUES ('choice', 'choose again', 'choice', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'choose', 'choice', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'choose again', 'choice', 'name');");
|
||||
}
|
||||
if ($oldversion < 2004070100) {
|
||||
table_column("choice", "", "timeclose", "integer", "10", "unsigned", "0", "", "showunanswered");
|
||||
|
||||
@@ -83,10 +83,10 @@ rem Dumping data for table log_display
|
||||
rem
|
||||
|
||||
delete from prefix_log_display where module = 'choice';
|
||||
INSERT INTO prefix_log_display VALUES ('choice', 'view', 'choice', 'name');
|
||||
INSERT INTO prefix_log_display VALUES ('choice', 'update', 'choice', 'name');
|
||||
INSERT INTO prefix_log_display VALUES ('choice', 'add', 'choice', 'name');
|
||||
INSERT INTO prefix_log_display VALUES ('choice', 'report', 'choice', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'view', 'choice', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'update', 'choice', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'add', 'choice', 'name');
|
||||
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'report', 'choice', 'name');
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ function choice_upgrade($oldversion) {
|
||||
table_column("choice", "", "showunanswered", "integer", "4", "unsigned", "0", "", "publish");
|
||||
}
|
||||
if ($oldversion < 2004021700) {
|
||||
modify_database("", "INSERT INTO prefix_log_display VALUES ('choice', 'choose', 'choice', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display VALUES ('choice', 'choose again', 'choice', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'choose', 'choice', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'choose again', 'choice', 'name');");
|
||||
}
|
||||
if ($oldversion < 2004070100) {
|
||||
table_column("choice", "", "timeclose", "integer", "10", "unsigned", "0", "", "showunanswered");
|
||||
|
||||
@@ -11,8 +11,8 @@ function resource_upgrade($oldversion) {
|
||||
}
|
||||
|
||||
if ($oldversion < 2004013101) {
|
||||
modify_database("", "INSERT INTO prefix_log_display VALUES ('resource', 'update', 'resource', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display VALUES ('resource', 'add', 'resource', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'update', 'resource', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'add', 'resource', 'name');");
|
||||
}
|
||||
|
||||
if ($oldversion < 2004071000) {
|
||||
|
||||
@@ -7,8 +7,8 @@ function resource_upgrade($oldversion) {
|
||||
global $CFG ;
|
||||
|
||||
if ($oldversion < 2004013101) {
|
||||
modify_database("", "INSERT INTO prefix_log_display VALUES ('resource', 'update', 'resource', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display VALUES ('resource', 'add', 'resource', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'update', 'resource', 'name');");
|
||||
modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'add', 'resource', 'name');");
|
||||
}
|
||||
|
||||
if ($oldversion < 2004071000) {
|
||||
|
||||
Reference in New Issue
Block a user