diff --git a/infolog/setup/setup.inc.php b/infolog/setup/setup.inc.php index 2428996964..4d00e3bcad 100755 --- a/infolog/setup/setup.inc.php +++ b/infolog/setup/setup.inc.php @@ -12,7 +12,7 @@ /* $Id$ */ $setup_info['infolog']['name'] = 'infolog'; - $setup_info['infolog']['version'] = '1.0.0'; + $setup_info['infolog']['version'] = '1.0.0.001'; $setup_info['infolog']['app_order'] = 5; $setup_info['infolog']['tables'] = array('phpgw_infolog','phpgw_links','phpgw_infolog_extra'); $setup_info['infolog']['enable'] = 1; @@ -71,3 +71,5 @@ ); + + diff --git a/infolog/setup/tables_current.inc.php b/infolog/setup/tables_current.inc.php index 01b78a9d13..cdcaad53ba 100644 --- a/infolog/setup/tables_current.inc.php +++ b/infolog/setup/tables_current.inc.php @@ -15,10 +15,10 @@ 'phpgw_infolog' => array( 'fd' => array( 'info_id' => array('type' => 'auto','nullable' => False), - 'info_type' => array('type' => 'varchar','precision' => '10','nullable' => False,'default' => 'task'), - 'info_from' => array('type' => 'varchar','precision' => '64'), - 'info_addr' => array('type' => 'varchar','precision' => '64'), - 'info_subject' => array('type' => 'varchar','precision' => '64'), + 'info_type' => array('type' => 'varchar','precision' => '40','nullable' => False,'default' => 'task'), + 'info_from' => array('type' => 'varchar','precision' => '255'), + 'info_addr' => array('type' => 'varchar','precision' => '255'), + 'info_subject' => array('type' => 'varchar','precision' => '255'), 'info_des' => array('type' => 'text'), 'info_owner' => array('type' => 'int','precision' => '4','nullable' => False), 'info_responsible' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'), @@ -31,7 +31,7 @@ 'info_pri' => array('type' => 'varchar','precision' => '10','default' => 'normal'), 'info_time' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'), 'info_bill_cat' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'), - 'info_status' => array('type' => 'varchar','precision' => '10','default' => 'done'), + 'info_status' => array('type' => 'varchar','precision' => '40','default' => 'done'), 'info_confirm' => array('type' => 'varchar','precision' => '10','default' => 'not'), 'info_modifier' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0'), 'info_link_id' => array('type' => 'int','precision' => '4','nullable' => False,'default' => '0') diff --git a/infolog/setup/tables_update.inc.php b/infolog/setup/tables_update.inc.php index 31b9042228..84f8924520 100644 --- a/infolog/setup/tables_update.inc.php +++ b/infolog/setup/tables_update.inc.php @@ -337,4 +337,37 @@ $GLOBALS['setup_info']['infolog']['currentver'] = '1.0.0'; return $GLOBALS['setup_info']['infolog']['currentver']; } + + + $test[] = '1.0.0'; + function infolog_upgrade1_0_0() + { + // longer columns to cope with multibyte charsets + $GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_infolog','info_type',array( + 'type' => 'varchar', + 'precision' => '40', + 'nullable' => False, + 'default' => 'task' + )); + $GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_infolog','info_from',array( + 'type' => 'varchar', + 'precision' => '255' + )); + $GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_infolog','info_addr',array( + 'type' => 'varchar', + 'precision' => '255' + )); + $GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_infolog','info_subject',array( + 'type' => 'varchar', + 'precision' => '255' + )); + $GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_infolog','info_status',array( + 'type' => 'varchar', + 'precision' => '40', + 'default' => 'done' + )); + + $GLOBALS['setup_info']['infolog']['currentver'] = '1.0.0.001'; + return $GLOBALS['setup_info']['infolog']['currentver']; + } ?>