Typos in upgrade/upgrade_table_schema.sql

Sorry, I don't have a dev environment with git at hand. Database upgrade failed, I fixed the following errors:

  • l483 has an excess ) in the end
  • l483 should end with THEN
  • l491 should be BODY
  • l518 misses the closing ;
Edited by pharesim