From: <wo...@us...> - 2004-05-06 09:35:32
|
Update of /cvsroot/egroupware/phpbrain/setup In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13686/setup Modified Files: tables_update.inc.php Log Message: First bugfix for this update-script. The next one is more difficult, please refer to the developer-list. Index: tables_update.inc.php =================================================================== RCS file: /cvsroot/egroupware/phpbrain/setup/tables_update.inc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tables_update.inc.php 4 May 2004 19:00:38 -0000 1.1 --- tables_update.inc.php 6 May 2004 09:35:20 -0000 1.2 *************** *** 111,114 **** --- 111,116 ---- 'files' => array('type' => 'text', 'nullable' => False), 'urls' => array('type' => 'text', 'nullable' => False), + 'votes' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'), + 'total' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'), 'votes_1' => array('type' => 'int','precision' => '4','nullable' => False), 'votes_2' => array('type' => 'int','precision' => '4','nullable' => False), *************** *** 123,127 **** --- 125,131 ---- ); $GLOBALS['phpgw_setup']->oProc->DropColumn('phpgw_kb_articles', $new_table_def, 'is_faq'); + unset($newdef['fd']['votes']); $GLOBALS['phpgw_setup']->oProc->DropColumn('phpgw_kb_articles', $new_table_def, 'votes'); + unset($newdef['fd']['total']); $GLOBALS['phpgw_setup']->oProc->DropColumn('phpgw_kb_articles', $new_table_def, 'total'); |