Commit 0244adda authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add employer,institution address columns to resume tables


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 1ec0b3b3
......@@ -26,6 +26,7 @@
<FIELD NAME="startdate" TYPE="text" NOTNULL="true" />
<FIELD NAME="enddate" TYPE="text" NOTNULL="false" />
<FIELD NAME="employer" TYPE="text" NOTNULL="true" />
<FIELD NAME="employeraddress" TYPE="text" NOTNULL="false" />
<FIELD NAME="jobtitle" TYPE="text" NOTNULL="true" />
<FIELD NAME="positiondescription" TYPE="text" NOTNULL="false" />
<FIELD NAME="displayorder" TYPE="int" LENGTH="10" NOTNULL="true" />
......@@ -44,6 +45,7 @@
<FIELD NAME="qualtype" TYPE="text" NOTNULL="true" />
<FIELD NAME="qualname" TYPE="text" NOTNULL="true" />
<FIELD NAME="institution" TYPE="text" NOTNULL="true" />
<FIELD NAME="institutionaddress" TYPE="text" NOTNULL="false" />
<FIELD NAME="qualdescription" TYPE="text" NOTNULL="false" />
<FIELD NAME="displayorder" TYPE="int" LENGTH="10" NOTNULL="true" />
</FIELDS>
......
......@@ -108,6 +108,18 @@ function xmldb_artefact_resume_upgrade($oldversion=0) {
}
}
if ($oldversion < 2009122100) {
$table = new XMLDBTable('artefact_resume_employmenthistory');
$field = new XMLDBField('employeraddress');
$field->setAttributes(XMLDB_TYPE_TEXT);
add_field($table, $field);
$table = new XMLDBTable('artefact_resume_educationhistory');
$field = new XMLDBField('institutionaddress');
$field->setAttributes(XMLDB_TYPE_TEXT);
add_field($table, $field);
}
return $status;
}
......
......@@ -28,7 +28,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2008040200;
$config->version = 2009122100;
$config->release = '1.0.0';
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment