Added functionality to upgrade.php