Fix context field in upgrade.php