Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a missing PostgreSQL field that had never been added!

  • Loading branch information...
commit 70e51cf34f2577f197001dd8b8626c902d77b84e 1 parent e71f132
moodler authored
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;
?>
Please sign in to comment.
Something went wrong with that request. Please try again.