From: martinlanghoff Date: Wed, 17 May 2006 06:35:50 +0000 (+0000) Subject: moodle16cleanup: blocks/rss_client set the correct column default value X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7f8199c25394c12b8f177b8a3a8e6f92cc7be9f4;p=moodle.git moodle16cleanup: blocks/rss_client set the correct column default value --- diff --git a/blocks/rss_client/db/postgres7.php b/blocks/rss_client/db/postgres7.php index d7fa36bea8..49afcf20f4 100644 --- a/blocks/rss_client/db/postgres7.php +++ b/blocks/rss_client/db/postgres7.php @@ -12,6 +12,12 @@ function rss_client_upgrade($oldversion) { table_column('block_rss_client','description','description','text'); } + if ($oldversion < 2005090201) { + modify_database('', 'ALTER TABLE prefix_block_rss_client + ALTER COLUMN title SET DEFAULT \'\', + ALTER COLUMN description SET DEFAULT \'\''); + } + return true; } diff --git a/blocks/version.php b/blocks/version.php index 0836067fc6..2483818935 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 = 2005090200; // The current version is a date (YYYYMMDDXX) +$blocks_version = 2005090201; // The current version is a date (YYYYMMDDXX)