"fixed to small column for timestamp in egw_links.link_lastmod"

This commit is contained in:
Ralf Becker 2007-04-28 11:54:24 +00:00
parent ca34042249
commit 664f222868
3 changed files with 16 additions and 2 deletions

View File

@ -14,7 +14,7 @@
/* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'eGroupWare API';
$setup_info['phpgwapi']['version'] = '1.3.020';
$setup_info['phpgwapi']['version'] = '1.3.021';
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;
@ -64,3 +64,4 @@
$setup_info['notifywindow']['hooks'][] = 'home';

View File

@ -437,7 +437,7 @@
'link_app2' => array('type' => 'varchar','precision' => '25','nullable' => False),
'link_id2' => array('type' => 'varchar','precision' => '50','nullable' => False),
'link_remark' => array('type' => 'varchar','precision' => '100'),
'link_lastmod' => array('type' => 'int','precision' => '4','nullable' => False),
'link_lastmod' => array('type' => 'int','precision' => '8','nullable' => False),
'link_owner' => array('type' => 'int','precision' => '4','nullable' => False)
),
'pk' => array('link_id'),

View File

@ -765,4 +765,17 @@
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.020';
}
$test[] = '1.3.020';
function phpgwapi_upgrade1_3_020()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_links','link_lastmod',array(
'type' => 'int',
'precision' => '8',
'nullable' => False
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.3.021';
}
?>