1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Bugtracker #4405 - extend newsfeed_url DB Field

This commit is contained in:
e107steved
2008-04-29 19:44:26 +00:00
parent 7837aec90c
commit 208d55ffdc
4 changed files with 37 additions and 10 deletions

View File

@@ -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']))
{