ERROR: Upgrade failed: DB: MySQL server has gone away

Hi @bozana
Thank you for your help. I have commented the line you told me and upgrade finished fine then, but after upgrade finish, I execute the queries I commented on the database and I get the same timeout error with the third query:

UPDATE metrics m, submission_file_settings sfs SET m.assoc_id = sfs.file_id WHERE m.assoc_type = 515 AND sfs.setting_name = 'old-supp-id' AND sfs.setting_value = m.assoc_id

Our hosting provider confirmed us there was a timeout error, but as it is a shared hosting, it is no possible to increase this configuration.

Best,
Daniel
ICONO14