Commit 8c985731 authored by David Ligne's avatar David Ligne Committed by Aaron Wells

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

behatnotneeded: Changes on database columns types only.

Change-Id: I0e80fe7b4ca7552c854f3496db6496e984bbdd53
parent 254f4409
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,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" />
......
...@@ -3970,5 +3970,14 @@ function xmldb_core_upgrade($oldversion=0) { ...@@ -3970,5 +3970,14 @@ function xmldb_core_upgrade($oldversion=0) {
} }
} }
if ($oldversion < 2014092337) {
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 = 2014092336; $config->version = 2014092337;
$config->series = '1.10'; $config->series = '1.10';
$config->release = '1.10.10testing'; $config->release = '1.10.10testing';
$config->minupgradefrom = 2009022600; $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