diff --git a/lib/db/install.xml b/lib/db/install.xml index 8cb3ba7709d..48785b958f3 100644 --- a/lib/db/install.xml +++ b/lib/db/install.xml @@ -488,7 +488,7 @@ - + diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index f73fe1b6f78..804d26a34e5 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -1974,5 +1974,16 @@ function xmldb_main_upgrade($oldversion) { upgrade_main_savepoint(true, 2013040200.00); } + if ($oldversion < 2013040201.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, 2013040201.00); + } + return true; } diff --git a/version.php b/version.php index 965383ad091..cd6ac879897 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2013040200.00; // YYYYMMDD = weekly release date of this DEV branch +$version = 2013040201.00; // YYYYMMDD = weekly release date of this DEV branch // RR = release increments - 00 in DEV branches // .XX = incremental changes