mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Increase cred_password field size in DB to be able to get fit large smime pkey.
This commit is contained in:
parent
0ff93f38f9
commit
3327077cec
@ -11,7 +11,7 @@
|
||||
/* Basic information about this app */
|
||||
$setup_info['api']['name'] = 'api';
|
||||
$setup_info['api']['title'] = 'EGroupware API';
|
||||
$setup_info['api']['version'] = '17.1';
|
||||
$setup_info['api']['version'] = '17.1.001';
|
||||
$setup_info['api']['versions']['current_header'] = '1.29';
|
||||
// maintenance release in sync with changelog in doc/rpm-build/debian.changes
|
||||
$setup_info['api']['versions']['maintenance_release'] = '17.1.20180321';
|
||||
|
@ -465,7 +465,7 @@ $phpgw_baseline = array(
|
||||
'cred_type' => array('type' => 'int','precision' => '1','nullable' => False,'comment' => '&1=imap, &2=smtp, &4=admin'),
|
||||
'account_id' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False,'comment' => 'account_id or 0=all'),
|
||||
'cred_username' => array('type' => 'varchar','precision' => '80','nullable' => False,'comment' => 'username'),
|
||||
'cred_password' => array('type' => 'varchar','precision' => '9600','comment' => 'password encrypted'),
|
||||
'cred_password' => array('type' => 'varchar','precision' => '16384','comment' => 'password encrypted'),
|
||||
'cred_pw_enc' => array('type' => 'int','precision' => '1','default' => '0','comment' => '0=not, 1=user pw, 2=system')
|
||||
),
|
||||
'pk' => array('cred_id'),
|
||||
|
@ -407,3 +407,19 @@ function api_upgrade16_9_004()
|
||||
{
|
||||
return $GLOBALS['setup_info']['api']['currentver'] = '17.1';
|
||||
}
|
||||
|
||||
/**
|
||||
* Give egw_ea_credentials.cred_password size 16k to accommodate bigger private s/mime keys
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function api_upgrade17_1()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_ea_credentials','cred_password',array(
|
||||
'type' => 'varchar',
|
||||
'precision' => '16384',
|
||||
'comment' => 'password encrypted'
|
||||
));
|
||||
|
||||
return $GLOBALS['setup_info']['api']['currentver'] = '17.1.001';
|
||||
}
|
Loading…
Reference in New Issue
Block a user