fix(upgrade): fixes erronous values in the list of processed upgrades

Both the upgrade file name and the class responsible for the actual upgrade logic had been set as the
value of variable called $upgrade. This mistake may have caused the class to be saved to the list of
processed upgrade instead of the filename. This upgrade replaces the class with the filename.

Fixes #7198