another mysql 4.1+ index length fix

This commit is contained in:
Lars Kneschke 2006-01-08 09:03:01 +00:00
parent 4dc6d41846
commit 6fe97c4ead
3 changed files with 20 additions and 3 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.2.004';
$setup_info['phpgwapi']['version'] = '1.2.005';
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;

View File

@ -509,8 +509,8 @@
'egw_contentmap' => array(
'fd' => array(
'map_id' => array('type' => 'varchar','precision' => '128','nullable' => False),
'map_guid' => array('type' => 'varchar','precision' => '128','nullable' => False),
'map_locuid' => array('type' => 'varchar','precision' => '128','nullable' => False),
'map_guid' => array('type' => 'varchar','precision' => '100','nullable' => False),
'map_locuid' => array('type' => 'varchar','precision' => '100','nullable' => False),
'map_timestamp' => array('type' => 'timestamp','nullable' => False),
'map_expired' => array('type' => 'bool','nullable' => False)
),

View File

@ -1115,4 +1115,21 @@
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.2.004';
}
$test[] = '1.2.004';
function phpgwapi_upgrade1_2_004()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_contentmap','map_guid',array(
'type' => 'varchar',
'precision' => '100',
'nullable' => False
));
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_contentmap','map_locuid',array(
'type' => 'varchar',
'precision' => '100',
'nullable' => False
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.2.005';
}
?>