relationships cache deleted after upgrade


few days ago I upgrade my Suitecrm server from version 7.2.1 to version 7.2.2, the upgrade didn’t complete well, it stopped while deleting relationships cache

I copied the relationships.cache.php from another installation I have to this location /suitecrm/cache/Relationships

the upgrade completed after this , but since then every time I go to studio or do rebuild relationships , the CRM stopps and give database error

please check the sugar.log file uploaded