From 5989616d8c7c00ba69876ca85eaed5a86bb79274 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 15 Aug 2001 03:49:25 +0000 Subject: [PATCH] Increase session_lid to 255 chars (20 not enough to fit user@real.host.name) --- phpgwapi/setup/setup.inc.php | 2 +- phpgwapi/setup/tables_current.inc.php | 2 +- phpgwapi/setup/tables_update.inc.php | 14 ++++++++++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index eebc031db6..4090c623a7 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'] = 'phpgwapi'; - $setup_info['phpgwapi']['version'] = '0.9.13.010'; + $setup_info['phpgwapi']['version'] = '0.9.13.011'; $setup_info['phpgwapi']['versions']['current_header'] = '1.17'; $setup_info['phpgwapi']['enable'] = 3; $setup_info['phpgwapi']['app_order'] = 1; diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index 9be3a14027..8337eb5ea0 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -83,7 +83,7 @@ 'phpgw_sessions' => array( 'fd' => array( 'session_id' => array('type' => 'varchar', 'precision' => 255, 'nullable' => false), - 'session_lid' => array('type' => 'varchar', 'precision' => 20), + 'session_lid' => array('type' => 'varchar', 'precision' => 255), 'session_ip' => array('type' => 'varchar', 'precision' => 255), 'session_logintime' => array('type' => 'int', 'precision' => 4), 'session_dla' => array('type' => 'int', 'precision' => 4), diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 8899384d1c..c48c5fab48 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -2023,8 +2023,7 @@ return $setup_info['phpgwapi']['currentver']; } - - $test[] = '0.9.13.007'; + $test[] = '0.9.13.007'; function phpgwapi_upgrade0_9_13_007() { global $setup_info, $phpgw_setup; @@ -2078,4 +2077,15 @@ $setup_info['phpgwapi']['currentver'] = '0.9.13.010'; return $setup_info['phpgwapi']['currentver']; } + + $test[] = '0.9.13.010'; + function phpgwapi_upgrade0_9_13_010() + { + global $setup_info, $phpgw_setup; + + $phpgw_setup->oProc->AlterColumn('phpgw_sessions','session_lid',array('type' => 'varchar', 'precision' => 255, 'nullable'=> False)); + + $setup_info['phpgwapi']['currentver'] = '0.9.13.011'; + return $setup_info['phpgwapi']['currentver']; + } ?>