mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 23:58:54 +01:00
in some old installations the email_type is NOT NULL, contrary to what our tables_current says
This commit is contained in:
parent
7d3c9bf1fc
commit
9a787b926c
@ -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 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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';
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user