2001-02-04 13:27:05 +01:00
< ? php
2008-04-20 18:34:16 +02:00
/**
* eGroupWare - API Setup
*
2008-11-24 11:51:59 +01:00
* Update scripts 1.6 --> 1.8
2008-04-20 18:34:16 +02:00
*
* @ link http :// www . egroupware . org
* @ package api
* @ subpackage setup
* @ license http :// opensource . org / licenses / gpl - license . php GPL - GNU General Public License
* @ version $Id $
*/
2003-08-28 16:31:11 +02:00
2008-04-20 18:34:16 +02:00
/* Include older eGroupWare update support */
include ( 'tables_update_0_9_9.inc.php' );
include ( 'tables_update_0_9_10.inc.php' );
include ( 'tables_update_0_9_12.inc.php' );
include ( 'tables_update_0_9_14.inc.php' );
include ( 'tables_update_1_0.inc.php' );
include ( 'tables_update_1_2.inc.php' );
2008-11-24 11:51:59 +01:00
include ( 'tables_update_1_4.inc.php' );
2008-11-03 08:44:02 +01:00
/**
2008-11-24 11:51:59 +01:00
* Update from the stable 1.6 branch to the new devel branch 1.7 . xxx
2008-11-03 08:44:02 +01:00
*/
2008-11-24 11:51:59 +01:00
function phpgwapi_upgrade1_6_001 ()
2008-11-03 08:44:02 +01:00
{
2008-11-24 11:51:59 +01:00
return $GLOBALS [ 'setup_info' ][ 'phpgwapi' ][ 'currentver' ] = '1.7.001' ;
2008-11-03 08:44:02 +01:00
}
2009-05-12 09:21:57 +02:00
2009-07-18 12:00:33 +02:00
function phpgwapi_upgrade1_6_002 ()
{
return $GLOBALS [ 'setup_info' ][ 'phpgwapi' ][ 'currentver' ] = '1.7.001' ;
}
2010-02-14 07:28:36 +01:00
function phpgwapi_upgrade1_6_003 ()
{
return $GLOBALS [ 'setup_info' ][ 'phpgwapi' ][ 'currentver' ] = '1.7.001' ;
}
2009-05-12 09:21:57 +02:00
function phpgwapi_upgrade1_7_001 ()
{
$GLOBALS [ 'egw_setup' ] -> oProc -> AddColumn ( 'egw_sqlfs' , 'fs_link' , array (
'type' => 'varchar' ,
'precision' => '255'
));
// moving symlinks from fs_content to fs_link
$GLOBALS [ 'egw_setup' ] -> oProc -> query ( " UPDATE egw_sqlfs SET fs_link=fs_content,fs_content=NULL WHERE fs_mime='application/x-symlink' " , __LINE__ , __FILE__ );
return $GLOBALS [ 'setup_info' ][ 'phpgwapi' ][ 'currentver' ] = '1.7.002' ;
}
2009-08-03 13:42:24 +02:00
function phpgwapi_upgrade1_7_002 ()
{
$GLOBALS [ 'egw_setup' ] -> oProc -> AlterColumn ( 'egw_sqlfs' , 'fs_mime' , array (
'type' => 'varchar' ,
'precision' => '96' ,
'nullable' => False
));
return $GLOBALS [ 'setup_info' ][ 'phpgwapi' ][ 'currentver' ] = '1.7.003' ;
}