diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index 2a842b72a..90fb31425 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/update_routines.php,v $ -| $Revision: 1.19 $ -| $Date: 2008-01-15 21:57:15 $ +| $Revision: 1.20 $ +| $Date: 2008-04-29 19:44:17 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -351,6 +351,21 @@ function update_706_to_800($type='') } + if (mysql_table_exists('newsfeed')) + { // Need to extend field newsfeed_url varchar(250) NOT NULL default '' + if ($sql -> db_Query("SHOW FIELDS FROM ".MPREFIX."newsfeed LIKE 'newsfeed_url'")) + { + $row = $sql -> db_Fetch(); + if (str_replace('varchar', 'char', strtolower($row['Type'])) != 'char(250)') + { + if ($just_check) return update_needed('Update newsfeed field definition'); + mysql_query("ALTER TABLE `".MPREFIX."newsfeed` MODIFY `newsfeed_url` VARCHAR(250) NOT NULL DEFAULT '' "); + catch_error(); + } + } + } + + // Check need for user timezone before we delete the field if (varsettrue($pref['signup_option_timezone'])) { diff --git a/e107_plugins/newsfeed/admin_config.php b/e107_plugins/newsfeed/admin_config.php index dba8f9738..991840be2 100644 --- a/e107_plugins/newsfeed/admin_config.php +++ b/e107_plugins/newsfeed/admin_config.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/newsfeed/admin_config.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:35:31 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2008-04-29 19:44:25 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ require_once("../../class2.php"); @@ -131,7 +131,7 @@ $text = "