Increase session_lid to 255 chars (20 not enough to fit user@real.host.name)

This commit is contained in:
Miles Lott 2001-08-15 03:49:25 +00:00
parent d755598dc7
commit 5989616d8c
3 changed files with 14 additions and 4 deletions

View File

@ -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;

View File

@ -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),

View File

@ -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'];
}
?>