Commit 8a73f1b8 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Added two fields to the usr table to handle account expiry/inactive

e-mails
parent 5f829e05
......@@ -61,7 +61,9 @@
<FIELD NAME="passwordchange" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" />
<FIELD NAME="deleted" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" />
<FIELD NAME="expiry" TYPE="datetime" NOTNULL="false" />
<FIELD NAME="expirymailsent" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0"/>
<FIELD NAME="lastlogin" TYPE="datetime" NOTNULL="false" />
<FIELD NAME="inactivemailsent" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0"/>
<FIELD NAME="staff" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" />
<FIELD NAME="admin" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" />
<FIELD NAME="firstname" TYPE="text" NOTNULL="false" />
......
......@@ -41,6 +41,16 @@ function xmldb_core_upgrade($oldversion=0) {
change_field_enum($table, $field);
}
if ($oldversion < 2006121401) {
$table = new XMLDBTable('usr');
$field = new XMLDBField('expirymailsent');
$field->setAttributes(XMLDB_TYPE_INTEGER, 1, false, true, false, null, null, 0);
add_field($table, $field);
$field = new XMLDBField('inactivemailsent');
$field->setAttributes(XMLDB_TYPE_INTEGER, 1, false, true, false, null, null, 0);
add_field($table, $field);
}
return $status;
}
......
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