Addition of the overallocation field to the workshop table.
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
fwrite ($bf,full_tag("GRADE",4,false,$workshop->grade));
|
||||
fwrite ($bf,full_tag("NTASSESSMENTS",4,false,$workshop->ntassessments));
|
||||
fwrite ($bf,full_tag("NSASSESSMENTS",4,false,$workshop->nsassessments));
|
||||
fwrite ($bf,full_tag("OVERALLOCATION",4,false,$workshop->nsassessments));
|
||||
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$workshop->timemodified));
|
||||
fwrite ($bf,full_tag("MERGEGRADES",4,false,$workshop->mergegrades));
|
||||
fwrite ($bf,full_tag("TEACHERWEIGHT",4,false,$workshop->teacherweight));
|
||||
|
||||
@@ -21,7 +21,8 @@ CREATE TABLE prefix_workshop (
|
||||
deadline number(10) default '0' not null,
|
||||
grade number(10) default '0' not null,
|
||||
ntassessments number(3) default '0' not null,
|
||||
nsassessments number(3) default '0' not null,
|
||||
nsassessments number(3) default '0' not null,
|
||||
overallocation number(3) default '0' not null,
|
||||
timemodified number(10) default '0' not null,
|
||||
mergegrades number(3) default '0' not null,
|
||||
teacherweight number(3) default '5' NOT NULL,
|
||||
|
||||
@@ -21,6 +21,7 @@ CREATE TABLE prefix_workshop (
|
||||
grade INT8 NOT NULL default '0',
|
||||
ntassessments INT NOT NULL default '0',
|
||||
nsassessments INT NOT NULL default '0',
|
||||
overallocation INT NOT NULL default '0',
|
||||
timemodified INT8 NOT NULL default '0',
|
||||
mergegrades INT NOT NULL default '0',
|
||||
teacherweight INT NOT NULL default '5',
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
$workshop->grade = backup_todb($info['MOD']['#']['GRADE']['0']['#']);
|
||||
$workshop->ntassessments = backup_todb($info['MOD']['#']['NTASSESSMENTS']['0']['#']);
|
||||
$workshop->nsassessments = backup_todb($info['MOD']['#']['NSASSESSMENTS']['0']['#']);
|
||||
$workshop->overallocation = backup_todb($info['MOD']['#']['OVERALLOCATION']['0']['#']);
|
||||
$workshop->timemodified = backup_todb($info['MOD']['#']['TIMEMODIFIED']['0']['#']);
|
||||
$workshop->mergegrades = backup_todb($info['MOD']['#']['MERGEGRADES']['0']['#']);
|
||||
$workshop->teacherweight = backup_todb($info['MOD']['#']['TEACHERWEIGHT']['0']['#']);
|
||||
|
||||
Reference in New Issue
Block a user