Skip to content
Browse files

Fixed a missing PostgreSQL field that had never been added!

  • Loading branch information...
1 parent e71f132 commit 70e51cf34f2577f197001dd8b8626c902d77b84e moodler committed Sep 10, 2003
Showing with 6 additions and 1 deletion.
  1. +4 −0 mod/assignment/db/postgres7.php
  2. +1 −0 mod/assignment/db/postgres7.sql
  3. +1 −1 mod/assignment/version.php
View
4 mod/assignment/db/postgres7.php
@@ -83,6 +83,10 @@ function assignment_upgrade($oldversion) {
if ($oldversion < 2002110302) {
execute_sql(" UPDATE `assignment` SET `type` = '1'");
}
+ if ($oldversion < 2003091000) {
+ # Old field that was never added!
+ table_column("assignment", "", "resubmit", "integer", "2", "unsigned", "0", "", "format");
+ }
return true;
}
View
1 mod/assignment/db/postgres7.sql
@@ -8,6 +8,7 @@ CREATE TABLE prefix_assignment (
name varchar(255) NOT NULL default '',
description text NOT NULL default '',
format integer NOT NULL default '0',
+ resubmit integer NOT NULL default '0',
type integer NOT NULL default '1',
maxbytes integer NOT NULL default '100000',
timedue integer NOT NULL default '0',
View
2 mod/assignment/version.php
@@ -5,7 +5,7 @@
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////
-$module->version = 2002122300;
+$module->version = 2003091000;
$module->cron = 60;
?>

0 comments on commit 70e51cf

Please sign in to comment.
Something went wrong with that request. Please try again.