Index: discuss.php =================================================================== RCS file: /var/cvs/phpgroupware/meerkat/discuss.php,v retrieving revision 1.4.2.1 diff -u -r1.4.2.1 discuss.php --- discuss.php 12 Aug 2002 21:59:01 -0000 1.4.2.1 +++ discuss.php 14 Nov 2003 07:47:45 -0000 @@ -56,7 +56,7 @@ } // add the new comment in $count++; - $sql = "INSERT INTO phpgw_discuss (msg_id,comment,name,count) VALUES ($msgID,'$comment','$name',$count)"; + $sql = "INSERT INTO phpgw_discuss (msg_id,comment,name,m_count) VALUES ($msgID,'$comment','$name',$count)"; $GLOBALS['phpgw']->db->query($sql,__LINE__,__FILE__); // if we generated an error, create an error return response Index: setup/tables_current.inc.php =================================================================== RCS file: /var/cvs/phpgroupware/meerkat/setup/tables_current.inc.php,v retrieving revision 1.1 diff -u -r1.1 tables_current.inc.php --- setup/tables_current.inc.php 8 Aug 2001 20:47:22 -0000 1.1 +++ setup/tables_current.inc.php 14 Nov 2003 07:47:45 -0000 @@ -22,7 +22,7 @@ 'msg_id' => array('type' => 'int', 'precision' => 4,'nullable' => False), 'name' => array('type' => 'varchar', 'precision' => 255,'nullable' => False), 'comment' => array('type' => 'varchar', 'precision' => 255,'nullable' => False), - 'count' => array('type' => 'int', 'precision' => 4,'nullable' => False) + 'm_count' => array('type' => 'int', 'precision' => 4,'nullable' => False) ), 'pk' => array(), 'fk' => array(), Index: setup/tables_update.inc.php =================================================================== RCS file: setup/tables_update.inc.php diff -N setup/tables_update.inc.php --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ setup/tables_update.inc.php 14 Nov 2003 07:47:45 -0000 @@ -0,0 +1,21 @@ +<?php + /**************************************************************************\ + * phpGroupWare - Setup * + * http://www.phpgroupware.org * + * -------------------------------------------- * + * This program is free software; you can redistribute it and/or modify it * + * under the terms of the GNU General Public License as published by the * + * Free Software Foundation; either version 2 of the License, or (at your * + * option) any later version. * + \**************************************************************************/ + /* $Id: tables_update.inc.php,v 1.15.2.1.2.9 2003/10/23 11:16:35 ceb Exp $ */ + + $test[] = '0.0'; + function meerkat_upgrade0_0() + { + $GLOBALS['setup_info']->oProc->RenameColumn('phpgw_discuss','count','m_count',True); + + $GLOBALS['setup_info']['meerkat']['currentver'] = '0.1'; + return $GLOBALS['setup_info']['meerkat']['currentver']; + } +?>