Commit 9b4927a3 authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review

Merge "Bug 1560633 : Increase column event_log.data to "longtext""

parents 557a46cf 8ffa87a2
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
<FIELD NAME="realusr" TYPE="int" LENGTH="10" NOTNULL="true" /> <FIELD NAME="realusr" TYPE="int" LENGTH="10" NOTNULL="true" />
<FIELD NAME="time" TYPE="datetime" NOTNULL="true" /> <FIELD NAME="time" TYPE="datetime" NOTNULL="true" />
<FIELD NAME="event" TYPE="char" LENGTH="255" NOTNULL="false" /> <FIELD NAME="event" TYPE="char" LENGTH="255" NOTNULL="false" />
<FIELD NAME="data" TYPE="text" NOTNULL="false" /> <FIELD NAME="data" TYPE="text" LENGTH="big" NOTNULL="false" />
</FIELDS> </FIELDS>
<KEYS> <KEYS>
<KEY NAME="usrfk" TYPE="foreign" FIELDS="usr" REFTABLE="usr" REFFIELDS="id" /> <KEY NAME="usrfk" TYPE="foreign" FIELDS="usr" REFTABLE="usr" REFFIELDS="id" />
......
...@@ -4396,5 +4396,14 @@ function xmldb_core_upgrade($oldversion=0) { ...@@ -4396,5 +4396,14 @@ function xmldb_core_upgrade($oldversion=0) {
drop_field($table, $field); drop_field($table, $field);
} }
if ($oldversion < 2016032900) {
log_debug('Expanding the size of the event_log.data');
$table = new XMLDBTable('event_log');
$field = new XMLDBField('data');
$field->setType(XMLDB_TYPE_TEXT);
$field->setLength('big');
change_field_precision($table, $field);
}
return $status; return $status;
} }
...@@ -16,7 +16,7 @@ $config = new stdClass(); ...@@ -16,7 +16,7 @@ $config = new stdClass();
// See https://wiki.mahara.org/wiki/Developer_Area/Version_Numbering_Policy // 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. // For upgrades on stable branches, increment the version by one. On master, use the date.
$config->version = 2016031700; $config->version = 2016032900;
$config->series = '16.04'; $config->series = '16.04';
$config->release = '16.04dev'; $config->release = '16.04dev';
$config->minupgradefrom = 2012080604; $config->minupgradefrom = 2012080604;
......
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