mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-38344 Calendar: converted name field in event table to text
There is no limitation on length of event name in RFC-2445, so changing type for name from char to text.
This commit is contained in:
parent
7112729206
commit
e2e9ff6542
@ -488,7 +488,7 @@
|
||||
<TABLE NAME="event" COMMENT="For everything with a time associated to it">
|
||||
<FIELDS>
|
||||
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
||||
<FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"/>
|
||||
<FIELD NAME="name" TYPE="text" NOTNULL="true" SEQUENCE="false"/>
|
||||
<FIELD NAME="description" TYPE="text" NOTNULL="true" SEQUENCE="false"/>
|
||||
<FIELD NAME="format" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
||||
<FIELD NAME="courseid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
||||
|
@ -1756,5 +1756,16 @@ function xmldb_main_upgrade($oldversion) {
|
||||
// No savepoint needed for this change.
|
||||
}
|
||||
|
||||
if ($oldversion < 2013032300.00) {
|
||||
// Convert name field in event table to text type as RFC-2445 doesn't have any limitation on it.
|
||||
$table = new xmldb_table('event');
|
||||
$field = new xmldb_field('name', XMLDB_TYPE_TEXT, null, null, XMLDB_NOTNULL, null, null);
|
||||
if ($dbman->field_exists($table, $field)) {
|
||||
$dbman->change_field_type($table, $field);
|
||||
}
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2013032300.00);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$version = 2013031400.00; // YYYYMMDD = weekly release date of this DEV branch
|
||||
$version = 2013032300.00; // YYYYMMDD = weekly release date of this DEV branch
|
||||
// RR = release increments - 00 in DEV branches
|
||||
// .XX = incremental changes
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user