The appointments database somehow got corrupted when I upgraded. I replaced it from backup and now everything's fine.