* Infolog: add update script to recover any InfoLogs hidden because of missing status

This commit is contained in:
Ralf Becker 2015-03-10 11:34:19 +00:00
parent 1c1dea3d5e
commit 947bbf4f17
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';
}