forked from extern/egroupware
fixed bug [ 1018087 ] custom infolog type name only allow 10 bytes:
==> longer fields for multibyte charsets
This commit is contained in:
parent
08089de0a6
commit
fb6621ae2a
@ -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 @@
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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')
|
||||
|
@ -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'];
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user