Permalink
Browse files

moodle16cleanup: blocks/rss_client set the correct column default value

  • Loading branch information...
1 parent d7d37bc commit 7f8199c25394c12b8f177b8a3a8e6f92cc7be9f4 martinlanghoff committed May 17, 2006
Showing with 7 additions and 1 deletion.
  1. +6 −0 blocks/rss_client/db/postgres7.php
  2. +1 −1 blocks/version.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;
}
View
@@ -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)

0 comments on commit 7f8199c

Please sign in to comment.