It is written as a loan that is paid off by reducing the amount owed for every month that you work. It is not voided when you upgrade but neither is it extended nor is there a new one for upgrade. Basically they are trying to make sure that new hires stay more than a few months so normally the contract is a non-issue.