fix to get old alarms (saved before 1.2) working again

This commit is contained in:
Ralf Becker 2006-04-30 12:52:14 +00:00
parent ade66bd533
commit e644513233
2 changed files with 11 additions and 2 deletions

View File

@ -12,7 +12,7 @@
/* $Id$ */
$setup_info['calendar']['name'] = 'calendar';
$setup_info['calendar']['version'] = '1.2';
$setup_info['calendar']['version'] = '1.2.001';
$setup_info['calendar']['app_order'] = 3;
$setup_info['calendar']['enable'] = 1;

View File

@ -1498,4 +1498,13 @@
return $GLOBALS['setup_info']['calendar']['currentver'] = '1.2';
}
?>
$test[] = '1.2';
function calendar_upgrade1_2()
{
// get old alarms (saved before 1.2) working again
$GLOBALS['egw_setup']->db->query("UPDATE egw_async SET async_method ='calendar.bocalupdate.send_alarm' WHERE async_method ='calendar.bocalendar.send_alarm'",__LINE__,__FILE__);
return $GLOBALS['setup_info']['calendar']['currentver'] = '1.2.001';
}