
Originally Posted by
dlorenzetti
Exactly, the leads, historys, etc are empty because you don't mark 0 in relationship tables, for each relationship there is a table, for Contacts in Accounts is accounts_contacts, there you can find the row with account_id = your account id and mark the deleted field in that row as 0, the same for, accounts_calls, accounts_meetings, etc.
Ok, I think I'm on the right track here. I've found that not all of the related tables are prefixed with 'accounts_' by running:
Code:
select * from relationships where lhs_table = 'accounts';
Now going through each one that is linked on account_id and repairing the damage.
Thanks for your help!
Bookmarks