update functionality to regard the new sized fields org_name, contact_email and contact_email_home

This commit is contained in:
Klaus Leithoff 2008-01-31 12:39:05 +00:00
parent 6ea71715f8
commit 4fd4d8fb6a

View File

@ -31,3 +31,27 @@
{
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.5.001';
}
$test[] = '1.5.001';
function phpgwapi_upgrade1_5_001()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','org_name',array(
'type' => 'varchar',
'precision' => '128',
'nullable' => true
));
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','contact_email',array(
'type' => 'varchar',
'precision' => '128',
'nullable' => true
));
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_addressbook','contact_email_home',array(
'type' => 'varchar',
'precision' => '128',
'nullable' => true
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.5.002';
}