]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/raw/sql_20.sql
remove all data belonging to previously deleted accounts
[mobile-ledger.git] / app / src / main / res / raw / sql_20.sql
1 delete from accounts where not exists (select 1 from profiles where uuid = profile);
2 delete from account_values where not exists (select 1 from profiles where uuid = profile);
3 delete from transactions where not exists (select 1 from profiles where uuid = profile);
4 delete from transaction_accounts where not exists (select 1 from profiles where uuid = profile);