From b7ecd17ce8a3aaf30e86c5e9c283ac4c54bdac79 Mon Sep 17 00:00:00 2001 From: Myles Carrick Date: Thu, 14 Apr 2011 12:08:27 +1000 Subject: [PATCH 02/11] MOODLE-32: db: set limit of URL to 60 characters (actual Connect limit) --- db/install.xml | 34 +++++++++++++++++----------------- db/upgrade.php | 15 +++++++++++++++ version.php | 2 +- 3 files changed, 33 insertions(+), 18 deletions(-) diff --git a/db/install.xml b/db/install.xml index 5c8422b..39dac7b 100644 --- a/db/install.xml +++ b/db/install.xml @@ -1,23 +1,23 @@ - - - - - - - - - - - - - + + + + + + + + + + + + @@ -28,10 +28,10 @@
- - - - + + + + diff --git a/db/upgrade.php b/db/upgrade.php index e0048be..fe37e55 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -57,6 +57,21 @@ function xmldb_adobeconnect_upgrade($oldversion=0) { upgrade_mod_savepoint(true, 2010120800, 'adobeconnect'); } + if ($oldversion < 2011041400) { + + // Changing precision of field meeturl on table adobeconnect to (60) + $table = new xmldb_table('adobeconnect'); + $field = new xmldb_field('meeturl', XMLDB_TYPE_CHAR, '60', null, null, null, null, 'templatescoid'); + + // Launch change of precision for field meeturl + $dbman->change_field_precision($table, $field); + + // adobeconnect savepoint reached + upgrade_mod_savepoint(true, 2011041400, 'adobeconnect'); + } + + + return true; } \ No newline at end of file diff --git a/version.php b/version.php index 7a23df5..65df9d9 100644 --- a/version.php +++ b/version.php @@ -7,5 +7,5 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$module->version = 2010120800; // The current module version (Date: YYYYMMDDXX) +$module->version = 2011041400; // The current module version (Date: YYYYMMDDXX) $module->cron = 0; // Period for cron to check this module (secs) \ No newline at end of file -- 1.7.2.2