From c903f9b076c2a52f57233cb386db82f23bb2d1ce Mon Sep 17 00:00:00 2001 From: defacer Date: Thu, 24 Feb 2005 04:26:33 +0000 Subject: [PATCH] Fix for bug 2627 (which was real and not a duplicate). --- blocks/db/mysql.php | 4 ++++ blocks/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/blocks/db/mysql.php b/blocks/db/mysql.php index efa69b947f9..0320c52d58a 100644 --- a/blocks/db/mysql.php +++ b/blocks/db/mysql.php @@ -126,6 +126,10 @@ global $CFG; $result = $result && table_column('block_instance', 'position', 'position', 'varchar', '10', ''); } + if ($oldversion < 2004112900 && $result) { + execute_sql('UPDATE '.$CFG->prefix.'block_instance SET pagetype = \''.PAGE_COURSE_VIEW.'\' WHERE pagetype = \'\''); + } + //Finally, return result return $result; } diff --git a/blocks/version.php b/blocks/version.php index 776025f03c7..6f8d67d2b88 100644 --- a/blocks/version.php +++ b/blocks/version.php @@ -5,4 +5,4 @@ // database (blocks_version) to determine whether upgrades should // be performed (see db/backup_*.php) -$blocks_version = 2004111200; // The current version is a date (YYYYMMDDXX) +$blocks_version = 2005022400; // The current version is a date (YYYYMMDDXX)