Permalink
Browse files

Added missing showrecent field to PostgreSQL

  • Loading branch information...
moodler
moodler committed Sep 10, 2003
1 parent 88487de commit e71f132dc85682a9180fd69b34d34669614e5fef
Showing with 6 additions and 0 deletions.
  1. +5 −0 lib/db/postgres7.php
  2. +1 −0 lib/db/postgres7.sql
View
@@ -245,6 +245,11 @@ function main_upgrade($oldversion=0) {
execute_sql(" INSERT INTO {$CFG->prefix}log_display (module, action, mtable, field) VALUES ('course', 'user report', 'user', 'CONCAT(firstname,\" \",lastname)') ");
}
if ($oldversion < 2003091000) {
# Old field that was never added!
table_column("course", "", "showrecent", "integer", "10", "unsigned", "1", "", "numsections");
}
return $result;
}
?>
View
@@ -24,6 +24,7 @@ CREATE TABLE prefix_course (
guest integer NOT NULL default '0',
startdate integer NOT NULL default '0',
numsections integer NOT NULL default '1',
showrecent integer NOT NULL default '1',
marker integer NOT NULL default '0',
visible integer NOT NULL default '1',
timecreated integer NOT NULL default '0',

0 comments on commit e71f132

Please sign in to comment.