forked from extern/egroupware
Add special case for mysql 3.22.X if we can detect the server version (php4)
This commit is contained in:
parent
1e1fd8efe1
commit
7ac912a218
@ -350,6 +350,22 @@
|
|||||||
'ix' => array(),
|
'ix' => array(),
|
||||||
'uc' => array()
|
'uc' => array()
|
||||||
)
|
)
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* Try to fix this unfortunate case for mysql 3.22.X in php4 at least */
|
||||||
|
if(floor(phpversion()) == 4 && @$GLOBALS['phpgw_setup']->db->Type == 'mysql')
|
||||||
|
{
|
||||||
|
$_ver_str = @mysql_get_server_info();
|
||||||
|
$_ver_arr = explode(".",$_ver_str);
|
||||||
|
$_ver = $_ver_arr[1];
|
||||||
|
if(intval($_ver) < 23)
|
||||||
|
{
|
||||||
|
$phpgw_baseline['phpgw_lang']['fd']['message_id'] = array(
|
||||||
|
'type' => 'varchar',
|
||||||
|
'precision' => 150,
|
||||||
|
'nullable' => false,
|
||||||
|
'default' => ''
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -364,6 +364,19 @@
|
|||||||
$test[] = '0.9.13.015';
|
$test[] = '0.9.13.015';
|
||||||
function phpgwapi_upgrade0_9_13_015()
|
function phpgwapi_upgrade0_9_13_015()
|
||||||
{
|
{
|
||||||
|
/* Skip this for mysql 3.22.X in php4 at least */
|
||||||
|
if(floor(phpversion()) == 4 && @$GLOBALS['phpgw_setup']->db->Type == 'mysql')
|
||||||
|
{
|
||||||
|
$_ver_str = @mysql_get_server_info();
|
||||||
|
$_ver_arr = explode(".",$_ver_str);
|
||||||
|
$_ver = $_ver_arr[1];
|
||||||
|
if(intval($_ver) < 23)
|
||||||
|
{
|
||||||
|
$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.13.016';
|
||||||
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$GLOBALS['phpgw_setup']->oProc->AlterColumn(
|
$GLOBALS['phpgw_setup']->oProc->AlterColumn(
|
||||||
'lang',
|
'lang',
|
||||||
'message_id',
|
'message_id',
|
||||||
|
Loading…
Reference in New Issue
Block a user