diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index 9558e6af5e..46ba6b4157 100755 --- a/phpgwapi/setup/setup.inc.php +++ b/phpgwapi/setup/setup.inc.php @@ -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; diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index a56696687c..bab869af20 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -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) ), diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index e2c059c40c..5bc9ea4ab6 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -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'; + } ?>