diff --git a/infolog/setup/setup.inc.php b/infolog/setup/setup.inc.php old mode 100755 new mode 100644 index ccc64729b4..09ef0fb4f4 --- a/infolog/setup/setup.inc.php +++ b/infolog/setup/setup.inc.php @@ -12,7 +12,7 @@ */ $setup_info['infolog']['name'] = 'infolog'; -$setup_info['infolog']['version'] = '16.1'; +$setup_info['infolog']['version'] = '16.1.001'; $setup_info['infolog']['app_order'] = 5; $setup_info['infolog']['tables'] = array('egw_infolog','egw_infolog_extra'); $setup_info['infolog']['enable'] = 1; @@ -70,3 +70,4 @@ $setup_info['infolog']['depends'][] = array( 'appname' => 'api', 'versions' => Array('16.1') ); + diff --git a/infolog/setup/tables_current.inc.php b/infolog/setup/tables_current.inc.php index 3ff7f77877..836b2c7e37 100644 --- a/infolog/setup/tables_current.inc.php +++ b/infolog/setup/tables_current.inc.php @@ -19,7 +19,7 @@ $phpgw_baseline = array( 'info_from' => array('type' => 'varchar','precision' => '255','comment' => 'text of the primary link'), 'info_addr' => array('type' => 'varchar','precision' => '255','comment' => 'textfield for phone-number or email of the primary contact'), 'info_subject' => array('type' => 'varchar','precision' => '255','comment' => 'title of the infolog-entry'), - 'info_des' => array('type' => 'text','comment' => 'desciption of the infolog-entry'), + 'info_des' => array('type' => 'longtext','comment' => 'desciption of the infolog-entry'), 'info_owner' => array('type' => 'int','meta' => 'account','precision' => '4','nullable' => False,'comment' => 'owner of the entry, can be account or group'), 'info_responsible' => array('type' => 'ascii','meta' => 'account-commasep','precision' => '255','nullable' => False,'default' => '0','comment' => 'responsible users or groups (multiple)'), 'info_access' => array('type' => 'ascii','precision' => '10','default' => 'public','comment' => 'public or privat'), diff --git a/infolog/setup/tables_update.inc.php b/infolog/setup/tables_update.inc.php index 18b1133134..17e0223145 100644 --- a/infolog/setup/tables_update.inc.php +++ b/infolog/setup/tables_update.inc.php @@ -803,3 +803,19 @@ function infolog_upgrade14_3() { return $GLOBALS['setup_info']['infolog']['currentver'] = '16.1'; } + + +/** + * Change description column from text (64K) to longtext (4G) + * + * @return string + */ +function infolog_upgrade16_1() +{ + $GLOBALS['egw_setup']->oProc->AlterColumn('egw_infolog','info_des',array( + 'type' => 'longtext', + 'comment' => 'desciption of the infolog-entry' + )); + + return $GLOBALS['setup_info']['infolog']['currentver'] = '16.1.001'; +}