"reworked calendar update 1.5.002 --> 1.6, to fix the method names in alarms

If you have alarms set and your calendar is already updated to 1.6, you have to rerun that update by setting the calendar version again to '1.5.002' and visit setup again:
UPDATE egw_applications SET app_version='1.5.002' WHERE app_name='calendar' AND app_version='1.5.002'"
This commit is contained in:
Ralf Becker 2008-06-10 04:48:19 +00:00
parent 26b9126bf6
commit 42824ef687

View File

@ -1617,5 +1617,15 @@ function calendar_upgrade1_5_001()
function calendar_upgrade1_5_002()
{
// update the alarm methods
$async = new asyncservice();
foreach((array)$async->read('cal:%') as $id => $job)
{
if ($job['method'] == 'calendar.bocalupdate.send_alarm')
{
$job['method'] = 'calendar.calendar_boupdate.send_alarm';
$async->write($job,true);
}
}
return $GLOBALS['setup_info']['calendar']['currentver'] = '1.6';
}