]> git.mjollnir.org Git - moodle.git/commitdiff
moodle16cleanup: blocks/rss_client set the correct column default value
authormartinlanghoff <martinlanghoff>
Wed, 17 May 2006 06:35:50 +0000 (06:35 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 17 May 2006 06:35:50 +0000 (06:35 +0000)
blocks/rss_client/db/postgres7.php
blocks/version.php

index d7fa36bea8211cc3107212f41f78bdb636e81733..49afcf20f47a70d2d440ad2a19a88ba45cca3597 100644 (file)
@@ -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;
 }
 
index 0836067fc6015c6b9b5ac30933df64af509a4c6f..2483818935b9d40691c104ba1d571d192d4a5604 100644 (file)
@@ -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)