Commit cb61d2e2 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie

Added a 'profileicon' field to the usr table,

parent 2af47771
......@@ -68,6 +68,7 @@ class User {
'lastname' => '',
'preferredname' => '',
'email' => '',
'profileicon' => '',
'accountprefs' => array(),
'activityprefs' => array(),
'sesskey' => ''
......
......@@ -72,6 +72,10 @@
<FIELD NAME="studentid" TYPE="text" NOTNULL="false"/>
<FIELD NAME="preferredname" TYPE="text" NOTNULL="false"/>
<FIELD NAME="email" TYPE="text" NOTNULL="false"/>
<!-- This field should be foreign keyed to the artefact table, however the
artefact table already has a key to this table, and XMLDB isn't smart enough
to create the tables first, then the keys. -->
<FIELD NAME="profileicon" TYPE="int" LENGTH="10" NOTNULL="false"/>
<FIELD NAME="suspendedctime" TYPE="datetime" NOTNULL="false"/>
<FIELD NAME="suspendedreason" TYPE="text" NOTNULL="false"/>
<FIELD NAME="suspendedcusr" TYPE="int" LENGTH="10" NOTNULL="false"/>
......
......@@ -151,6 +151,14 @@ function xmldb_core_upgrade($oldversion=0) {
set_config('pathtofile', '/usr/bin/file');
}
if ($oldversion < 2007011500) {
// Add the 'profileicon' field to the usr table
$table = new XMLDBTable('usr');
$field = new XMLDBField('profileicon');
$field->setAttributes(XMLDB_TYPE_INTEGER, 10, false, false, false);
add_field($table, $field);
}
return $status;
}
......
......@@ -27,8 +27,8 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2007011200;
$config->release = '0.2';
$config->version = 2007011500;
$config->release = '0.3.1';
$config->minupgradefrom = 2006121501;
$config->minupgraderelease = '0.1 (build tag BUILD_20061215)';
......
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