switch table row back to varchar again

This commit is contained in:
Lars Kneschke 2005-12-23 10:53:37 +00:00
parent ba3ec700c9
commit 16460b9287
3 changed files with 15 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.2.002';
$setup_info['phpgwapi']['version'] = '1.2.003';
$setup_info['phpgwapi']['versions']['current_header'] = '1.28';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;

View File

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

View File

@ -1058,3 +1058,16 @@
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.2.002';
}
$test[] = '1.2.002';
function phpgwapi_upgrade1_2_002()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_contentmap','map_locuid',array(
'type' => 'varchar',
'precision' => '128',
'nullable' => False
));
$GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.2.003';
return $GLOBALS['setup_info']['phpgwapi']['currentver'];
}