function backup_migrate_update_6200 in Backup and Migrate 6.3
Same name and namespace in other branches
- 6.2 backup_migrate.install \backup_migrate_update_6200()
Update the schedule last run times to use variables instead of saving with the schedule.
File
- ./
backup_migrate.install, line 483 - Install hooks for Backup and Migrate.
Code
function backup_migrate_update_6200() {
$ret = array();
$result = db_query('SELECT * FROM {backup_migrate_schedules}', array());
while ($item = db_fetch_array($result)) {
if (isset($item['last_run'])) {
variable_set('backup_migrate_schedule_last_run_' . $item['schedule_id'], $item['last_run']);
}
}
return $ret;
}