Add upgrade script to recover any hiding infogs that are missing status

This commit is contained in:
Nathan Gray 2015-03-09 19:33:53 +00:00
parent 1f65eee3fc
commit cbae778539
2 changed files with 9 additions and 1 deletions

View File

@ -12,7 +12,7 @@
*/
$setup_info['infolog']['name'] = 'infolog';
$setup_info['infolog']['version'] = '14.1';
$setup_info['infolog']['version'] = '14.2';
$setup_info['infolog']['app_order'] = 5;
$setup_info['infolog']['tables'] = array('egw_infolog','egw_infolog_extra');
$setup_info['infolog']['enable'] = 1;

View File

@ -742,3 +742,11 @@ function infolog_upgrade1_9_006()
{
return $GLOBALS['setup_info']['infolog']['currentver'] = '14.1';
}
function infolog_upgrade14_1()
{
// Restore any hiding infologs
$GLOBALS['egw_setup']->db->query('UPDATE egw_infolog SET info_status = "not-started" WHERE info_status is null;', __LINE__, __FILE__);
return $GLOBALS['setup_info']['infolog']['currentver'] = '14.2';
}