fixed bug [ 1497590 ] syncml fails due to excessive session id length

--> new version 1.2.102 for the upcomming bugfix release this weekend
This commit is contained in:
Ralf Becker 2006-06-01 20:04:05 +00:00
parent 3bbd54e12d
commit 3660a8f6ad
3 changed files with 23 additions and 2 deletions

View File

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

View File

@ -114,7 +114,7 @@
), ),
'egw_access_log' => array( 'egw_access_log' => array(
'fd' => array( 'fd' => array(
'sessionid' => array('type' => 'char','precision' => '32','nullable' => False), 'sessionid' => array('type' => 'char','precision' => '128','nullable' => False),
'loginid' => array('type' => 'varchar','precision' => '64','nullable' => False), 'loginid' => array('type' => 'varchar','precision' => '64','nullable' => False),
'ip' => array('type' => 'varchar','precision' => '40','nullable' => False), 'ip' => array('type' => 'varchar','precision' => '40','nullable' => False),
'li' => array('type' => 'int','precision' => '4','nullable' => False), 'li' => array('type' => 'int','precision' => '4','nullable' => False),

View File

@ -46,6 +46,13 @@
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.004'; return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.004';
} }
$test[] = '1.2.102';
function phpgwapi_upgrade1_2_102()
{
// 2. 1.2 bugfix-release: egw_accesslog.sessionid is varchar(128)
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.004';
}
// updates in HEAD / 1.3 // updates in HEAD / 1.3
$test[] = '1.3.001'; $test[] = '1.3.001';
function phpgwapi_upgrade1_3_001() function phpgwapi_upgrade1_3_001()
@ -115,4 +122,17 @@
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.005'; return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.005';
} }
$test[] = '1.3.005';
function phpgwapi_upgrade1_3_005()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_access_log','sessionid',array(
'type' => 'char',
'precision' => '128',
'nullable' => False
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.006';
}
?> ?>