I was trying to use the upgrade.php file that is in the install directory.

I am aware that I shouldn't be using the install.php file.