delete unneeded code in upgrade.php