Added SQL to remove obsolete remoteentityid columns to upgrade