[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/setup tables_update_0_9_14.inc.php,1.2,
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/setup tables_update_0_9_14.inc.php,1.2,1.3 tables_current.inc.php,1.34,1.35 |
Date: |
Wed, 20 Mar 2002 21:15:48 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/setup
In directory subversions:/tmp/cvs-serv11318
Modified Files:
tables_update_0_9_14.inc.php tables_current.inc.php
Log Message:
Add special case for mysql 3.22.X if we can detect the server version (php4)
Index: tables_update_0_9_14.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/setup/tables_update_0_9_14.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** tables_update_0_9_14.inc.php 1 Mar 2002 11:30:59 -0000 1.2
--- tables_update_0_9_14.inc.php 21 Mar 2002 02:15:45 -0000 1.3
***************
*** 365,368 ****
--- 365,381 ----
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.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** tables_current.inc.php 17 Feb 2002 19:31:50 -0000 1.34
--- tables_current.inc.php 21 Mar 2002 02:15:45 -0000 1.35
***************
*** 351,355 ****
'uc' => array()
)
-
);
?>
--- 351,371 ----
'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' => ''
+ );
+ }
+ }
?>
[Prev in Thread] |
Current Thread |
[Next in 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,
Miles Lott <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: projects/inc class.uibilling.inc.php,1.18.2.4,1.18.2.5
- Next by Date:
[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
- Previous by thread:
[Phpgroupware-cvs] CVS: projects/inc class.uibilling.inc.php,1.18.2.4,1.18.2.5
- Next by 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
- Index(es):