code: def upgradeParentHook1to2(oldHook):
      
      newHook = oldHook.upgradeVersion(
          oldHook.typeName, 1, 2,
          loginAccount=oldHook.loginAccount,
          scheduledAt=oldHook.scheduledAt,
          scheduler=oldHook.store.findFirst(Scheduler))
      return newHook
docs: Add the scheduler attribute to the given L{_SubSchedulerParentHook}.