diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index 30075c0ed1..0314ecd4f2 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'] = 'phpgwapi'; - $setup_info['phpgwapi']['version'] = '0.9.13.003'; + $setup_info['phpgwapi']['version'] = '0.9.13.004'; $setup_info['phpgwapi']['versions']['current_header'] = '1.16'; $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 bbfa7dce51..9c9e723a33 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -112,7 +112,7 @@ ), 'phpgw_access_log' => array( 'fd' => array( - 'sessionid' => array('type' => 'varchar', 'precision' => 30), + 'sessionid' => array('type' => 'char', 'precision' => 32), 'loginid' => array('type' => 'varchar', 'precision' => 30), 'ip' => array('type' => 'varchar', 'precision' => 30), 'li' => array('type' => 'int', 'precision' => 4), @@ -166,7 +166,7 @@ 'pk' => array(), 'fk' => array(), 'ix' => array(), - 'uc' => array('appname') + 'uc' => array('id') ), 'phpgw_categories' => array( 'fd' => array( diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 8b54b53452..606fb54f22 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -1253,7 +1253,7 @@ 'phpgw_nextid', array( 'fd' => array( 'appname' => array('type' => 'varchar', 'precision' => 25, 'nullable' => False), - 'id' => array('type' => 'int', 'precision' => 4) + 'id' => array('type' => 'int', 'precision' => 4), ), 'pk' => array(), 'fk' => array(), @@ -1500,4 +1500,15 @@ //return True; } + $test[] = '0.9.13.003'; + function phpgwapi_upgrade0_9_13_003() + { + global $setup_info,$phpgw_setup; + + $phpgw_setup->oProc->AlterColumn('phpgw_access_log','sessionid',array('type' => 'char', 'precision' => 32)); + + $setup_info['phpgwapi']['currentver'] = '0.9.13.004'; + return $setup_info['phpgwapi']['currentver']; + } + ?>