Fixed inserts for log_display.

This commit is contained in:
vyshane 2006-04-24 08:38:03 +00:00
parent 43e2425857
commit 93642edd6a
7 changed files with 22 additions and 22 deletions

View file

@ -55,9 +55,9 @@ CREATE TABLE `prefix_assignment_submissions` (
# -------------------------------------------------------- # --------------------------------------------------------
INSERT INTO prefix_log_display VALUES ('assignment', 'view', 'assignment', 'name'); INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'view', 'assignment', 'name');
INSERT INTO prefix_log_display VALUES ('assignment', 'add', 'assignment', 'name'); INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'add', 'assignment', 'name');
INSERT INTO prefix_log_display VALUES ('assignment', 'update', 'assignment', 'name'); INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'update', 'assignment', 'name');
INSERT INTO prefix_log_display VALUES ('assignment', 'view submission', 'assignment', 'name'); INSERT INTO prefix_log_display (module, action, mtable, field) 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', 'upload', 'assignment', 'name');

View file

@ -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 (module, action, mtable, field) VALUES ('assignment', 'view', 'assignment', 'name');
INSERT INTO prefix_log_display VALUES ('assignment', 'add', 'assignment', 'name'); INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'add', 'assignment', 'name');
INSERT INTO prefix_log_display VALUES ('assignment', 'update', 'assignment', 'name'); INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'update', 'assignment', 'name');
INSERT INTO prefix_log_display VALUES ('assignment', 'view submission', 'assignment', 'name'); INSERT INTO prefix_log_display (module, action, mtable, field) 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', 'upload', 'assignment', 'name');

View file

@ -29,8 +29,8 @@ function choice_upgrade($oldversion) {
table_column("choice", "", "showunanswered", "integer", "4", "unsigned", "0", "", "publish"); table_column("choice", "", "showunanswered", "integer", "4", "unsigned", "0", "", "publish");
} }
if ($oldversion < 2004021700) { if ($oldversion < 2004021700) {
modify_database("", "INSERT INTO prefix_log_display VALUES ('choice', 'choose', '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 VALUES ('choice', 'choose again', 'choice', 'name');"); modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'choose again', 'choice', 'name');");
} }
if ($oldversion < 2004070100) { if ($oldversion < 2004070100) {
table_column("choice", "", "timeclose", "integer", "10", "unsigned", "0", "", "showunanswered"); table_column("choice", "", "timeclose", "integer", "10", "unsigned", "0", "", "showunanswered");

View file

@ -83,10 +83,10 @@ rem Dumping data for table log_display
rem rem
delete from prefix_log_display where module = 'choice'; delete from prefix_log_display where module = 'choice';
INSERT INTO prefix_log_display VALUES ('choice', 'view', 'choice', 'name'); INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'view', 'choice', 'name');
INSERT INTO prefix_log_display VALUES ('choice', 'update', 'choice', 'name'); INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'update', 'choice', 'name');
INSERT INTO prefix_log_display VALUES ('choice', 'add', 'choice', 'name'); INSERT INTO prefix_log_display (module, action, mtable, field) 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', 'report', 'choice', 'name');

View file

@ -15,8 +15,8 @@ function choice_upgrade($oldversion) {
table_column("choice", "", "showunanswered", "integer", "4", "unsigned", "0", "", "publish"); table_column("choice", "", "showunanswered", "integer", "4", "unsigned", "0", "", "publish");
} }
if ($oldversion < 2004021700) { if ($oldversion < 2004021700) {
modify_database("", "INSERT INTO prefix_log_display VALUES ('choice', 'choose', '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 VALUES ('choice', 'choose again', 'choice', 'name');"); modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'choose again', 'choice', 'name');");
} }
if ($oldversion < 2004070100) { if ($oldversion < 2004070100) {
table_column("choice", "", "timeclose", "integer", "10", "unsigned", "0", "", "showunanswered"); table_column("choice", "", "timeclose", "integer", "10", "unsigned", "0", "", "showunanswered");

View file

@ -11,8 +11,8 @@ function resource_upgrade($oldversion) {
} }
if ($oldversion < 2004013101) { if ($oldversion < 2004013101) {
modify_database("", "INSERT INTO prefix_log_display VALUES ('resource', 'update', '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 VALUES ('resource', 'add', 'resource', 'name');"); modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'add', 'resource', 'name');");
} }
if ($oldversion < 2004071000) { if ($oldversion < 2004071000) {

View file

@ -7,8 +7,8 @@ function resource_upgrade($oldversion) {
global $CFG ; global $CFG ;
if ($oldversion < 2004013101) { if ($oldversion < 2004013101) {
modify_database("", "INSERT INTO prefix_log_display VALUES ('resource', 'update', '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 VALUES ('resource', 'add', 'resource', 'name');"); modify_database("", "INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'add', 'resource', 'name');");
} }
if ($oldversion < 2004071000) { if ($oldversion < 2004071000) {