[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/setup tables_update.inc.php,1.53.2.1,1.
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/setup tables_update.inc.php,1.53.2.1,1.53.2.2 tables_current.inc.php,1.32.2.2,1.32.2.3 |
Date: |
Wed, 20 Mar 2002 21:19:41 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/setup
In directory subversions:/tmp/cvs-serv15707
Modified Files:
Tag: Version-0_9_14-branch
tables_update.inc.php tables_current.inc.php
Log Message:
Possible workaround for mysql 3.22.X in php4 only
Index: tables_update.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/setup/tables_update.inc.php,v
retrieving revision 1.53.2.1
retrieving revision 1.53.2.2
diff -C2 -r1.53.2.1 -r1.53.2.2
*** tables_update.inc.php 24 Jan 2002 19:26:33 -0000 1.53.2.1
--- tables_update.inc.php 21 Mar 2002 02:19:38 -0000 1.53.2.2
***************
*** 372,375 ****
--- 372,388 ----
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(
'lang',
Index: tables_current.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/setup/tables_current.inc.php,v
retrieving revision 1.32.2.2
retrieving revision 1.32.2.3
diff -C2 -r1.32.2.2 -r1.32.2.3
*** tables_current.inc.php 15 Feb 2002 18:49:17 -0000 1.32.2.2
--- tables_current.inc.php 21 Mar 2002 02:19:38 -0000 1.32.2.3
***************
*** 353,357 ****
'uc' => array()
)
-
);
?>
--- 353,373 ----
'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['lang']['fd']['message_id'] = array(
+ 'type' => 'varchar',
+ 'precision' => 150,
+ 'nullable' => false,
+ 'default' => ''
+ );
+ }
+ }
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/setup tables_update.inc.php,1.53.2.1,1.53.2.2 tables_current.inc.php,1.32.2.2,1.32.2.3,
Miles Lott <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: phpgwapi/setup tables_update_0_9_14.inc.php,1.2,1.3 tables_current.inc.php,1.34,1.35
- Next by Date:
[Phpgroupware-cvs] CVS: todo/inc class.ui.inc.php,1.2.2.10,1.2.2.11
- Previous by thread:
[Phpgroupware-cvs] CVS: phpgwapi/setup tables_update_0_9_14.inc.php,1.2,1.3 tables_current.inc.php,1.34,1.35
- Next by thread:
[Phpgroupware-cvs] CVS: todo/inc class.ui.inc.php,1.2.2.10,1.2.2.11
- Index(es):