From 669bdcabc95ab36ba0ab42755949df341073eb31 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Tue, 7 Feb 2012 11:40:31 +0800 Subject: [PATCH] MDL-30521 blog: Updated uniquehash field preceision to 255 in post table --- lib/db/install.xml | 2 +- lib/db/upgrade.php | 12 ++++++++++++ version.php | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/db/install.xml b/lib/db/install.xml index 657814d13618e..81c5a9177c059 100644 --- a/lib/db/install.xml +++ b/lib/db/install.xml @@ -987,7 +987,7 @@ - + diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 2c28ba359ef97..06652de62e51b 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -145,6 +145,18 @@ function xmldb_main_upgrade($oldversion) { upgrade_main_savepoint(true, 2012020200.06); } + if ($oldversion < 2012021300.01) { + // Changing precision of field uniquehash on table post to 255 + $table = new xmldb_table('post'); + $field = new xmldb_field('uniquehash', XMLDB_TYPE_CHAR, '255', null, XMLDB_NOTNULL, null, null, 'content'); + + // Launch change of precision for field uniquehash + $dbman->change_field_precision($table, $field); + + // Main savepoint reached + upgrade_main_savepoint(true, 2012021300.01); + } + return true; } diff --git a/version.php b/version.php index c0cc5359e34ae..93bb8e9e47b87 100644 --- a/version.php +++ b/version.php @@ -30,7 +30,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2012021300.00; // YYYYMMDD = weekly release date of this DEV branch +$version = 2012021300.01; // YYYYMMDD = weekly release date of this DEV branch // RR = release increments - 00 in DEV branches // .XX = incremental changes