From 3660a8f6ad64f13dae1da9afb7db529a9710579b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 1 Jun 2006 20:04:05 +0000 Subject: [PATCH] fixed bug [ 1497590 ] syncml fails due to excessive session id length --> new version 1.2.102 for the upcomming bugfix release this weekend --- phpgwapi/setup/setup.inc.php | 3 ++- phpgwapi/setup/tables_current.inc.php | 2 +- phpgwapi/setup/tables_update.inc.php | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index 9b901af47e..86766479b6 100755 --- a/phpgwapi/setup/setup.inc.php +++ b/phpgwapi/setup/setup.inc.php @@ -14,7 +14,7 @@ /* Basic information about this app */ $setup_info['phpgwapi']['name'] = 'phpgwapi'; $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']['enable'] = 3; $setup_info['phpgwapi']['app_order'] = 1; @@ -65,3 +65,4 @@ + diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index d48109d3e4..10e0b310a0 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -114,7 +114,7 @@ ), 'egw_access_log' => 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), 'ip' => array('type' => 'varchar','precision' => '40','nullable' => False), 'li' => array('type' => 'int','precision' => '4','nullable' => False), diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 2905c510fb..987fc98b1f 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -46,6 +46,13 @@ 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 $test[] = '1.3.001'; function phpgwapi_upgrade1_3_001() @@ -115,4 +122,17 @@ 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'; + } ?>