Commit 8190728f authored by Aaron Wells's avatar Aaron Wells Committed by Robert Lyon

Bug 1598974: Update sso_session to handle SHA-256 session ids

Change-Id: I8ec8c26eb7bc8458e125aa0cc7ab0790657708a8
behatnotneeded: Can't test mnet in behat
parent 8825bed5
......@@ -254,7 +254,7 @@
<FIELD NAME="token" TYPE="char" LENGTH="40" NOTNULL="true"/>
<FIELD NAME="confirmtimeout" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" />
<FIELD NAME="expires" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" />
<FIELD NAME="sessionid" TYPE="char" LENGTH="40" NOTNULL="true"/>
<FIELD NAME="sessionid" TYPE="char" LENGTH="64" NOTNULL="true"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="userid,instanceid" />
......
......@@ -4159,5 +4159,15 @@ function xmldb_core_upgrade($oldversion=0) {
}
}
if ($oldversion < 2015030432) {
log_debug('Extend sso_session.sessionid to 64 characters because we now use SHA-256 session ids.');
$table = new XMLDBTable('sso_session');
$field = new XMLDBField('sessionid');
$field->setType(XMLDB_TYPE_CHAR);
$field->setLength(64);
$field->setNotNull(true);
change_field_precision($table, $field);
}
return $status;
}
......@@ -16,7 +16,7 @@ $config = new stdClass();
// See https://wiki.mahara.org/wiki/Developer_Area/Version_Numbering_Policy
// For upgrades on stable branches, increment the version by one. On master, use the date.
$config->version = 2015030431;
$config->version = 2015030432;
$config->series = '15.04';
$config->release = '15.04.8testing';
$config->minupgradefrom = 2009022600;
......
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