in some old installations the email_type is NOT NULL, contrary to what our tables_current says

This commit is contained in:
Ralf Becker 2005-11-12 18:21:02 +00:00
parent 7d3c9bf1fc
commit 9a787b926c
2 changed files with 21 additions and 1 deletions

View File

@ -14,7 +14,7 @@
/* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'API';
$setup_info['phpgwapi']['version'] = '1.0.1.020';
$setup_info['phpgwapi']['version'] = '1.0.1.021';
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;
@ -80,3 +80,4 @@

View File

@ -801,4 +801,23 @@
$GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.0.1.020';
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
}
$test[] = '1.0.1.020';
function phpgwapi_upgrade1_0_1_020()
{
// in some old installations the email_type is NOT NULL, contrary to what our tables_current says
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_addressbook','email_type',array(
'type' => 'varchar',
'precision' => '32',
'default' => 'INTERNET'
));
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_addressbook','email_home_type',array(
'type' => 'varchar',
'precision' => '32',
'default' => 'INTERNET'
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.0.1.021';
}
?>