It is as though as the script has already been ran before and some queries were executed, but others not.. You should have to look for the queries and see which have not been executed, and run them yourself.
Take into account that you ALWAYS need to go to public/upgrade AFTER having updated ALL the files in order to run the SQL script which would update the database.
Best regards,
Francisco