change history_status back to varchar, as it contains custom-field names, which can be non-ascii

This commit is contained in:
Ralf Becker 2015-07-24 13:06:18 +00:00
parent ddcf5ec209
commit 2e670ae0f4
3 changed files with 21 additions and 3 deletions

View File

@ -12,7 +12,7 @@
/* Basic information about this app */
$setup_info['phpgwapi']['name'] = 'phpgwapi';
$setup_info['phpgwapi']['title'] = 'EGroupware API';
$setup_info['phpgwapi']['version'] = '14.3';
$setup_info['phpgwapi']['version'] = '14.3.001';
$setup_info['phpgwapi']['versions']['current_header'] = '1.29';
$setup_info['phpgwapi']['enable'] = 3;
$setup_info['phpgwapi']['app_order'] = 1;
@ -73,3 +73,4 @@ $setup_info['groupdav']['author'] = $setup_info['groupdav']['maintainer'] = arra
$setup_info['groupdav']['license'] = 'GPL';
$setup_info['groupdav']['hooks']['preferences'] = 'groupdav_hooks::menus';
$setup_info['groupdav']['hooks']['settings'] = 'groupdav_hooks::settings';

View File

@ -172,7 +172,7 @@ $phpgw_baseline = array(
'history_record_id' => array('type' => 'int','precision' => '4','nullable' => False),
'history_appname' => array('type' => 'ascii','precision' => '16','nullable' => False),
'history_owner' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False),
'history_status' => array('type' => 'ascii','precision' => '32','nullable' => False),
'history_status' => array('type' => 'varchar','precision' => '32','nullable' => False),
'history_new_value' => array('type' => 'text','nullable' => False),
'history_timestamp' => array('type' => 'timestamp','nullable' => False,'default' => 'current_timestamp'),
'history_old_value' => array('type' => 'text','nullable' => False),

View File

@ -371,7 +371,7 @@ function phpgwapi_upgrade14_2_013()
'nullable' => False
));
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_history_log','history_status',array(
'type' => 'ascii',
'type' => 'varchar',
'precision' => '32',
'nullable' => False
));
@ -777,3 +777,20 @@ function phpgwapi_upgrade14_2_026()
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.3';
}
/**
* Change history_status back to varchar, as it contains custom-field names, which can be non-ascii
*
* @return string
*/
function phpgwapi_upgrade14_3()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_history_log','history_status',array(
'type' => 'varchar',
'precision' => '32',
'nullable' => False
));
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.3.001';
}