From 16460b928751e32e973a75538279a5cccdff3920 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 23 Dec 2005 10:53:37 +0000 Subject: [PATCH] switch table row back to varchar again --- phpgwapi/setup/setup.inc.php | 2 +- phpgwapi/setup/tables_current.inc.php | 2 +- phpgwapi/setup/tables_update.inc.php | 13 +++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index 6a6b249bc3..73df9726bf 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.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; diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index a6c58c07f4..84dca09945 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -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) ), diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index adeb762639..c70ff859b8 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -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']; + }