]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fix migration of transaction_accounts (attempt #N)
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 22 Mar 2021 05:54:11 +0000 (07:54 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 24 Mar 2021 19:46:24 +0000 (19:46 +0000)
app/src/main/res/raw/db_59.sql

index 115f3ce9b4f5bb9a48feb2138b2e5964aa109b8e..27ad83b26f62c70ba52a8fee5d38400fa2e989be 100644 (file)
@@ -155,8 +155,8 @@ insert into transaction_accounts_new(transaction_id, order_no, account_name,
     currency, amount, comment, generation)
 select t.id, ta.order_no, ta.account_name, ta.currency, ta.amount, ta.comment, ta.generation
 from transaction_accounts ta
-join profiles p in ta.profile=p.deprecated_uuid
-join transactions t on ta.transaction_id = t.ledger_id and t.profile_id=p.id;
+join profiles p on ta.profile=p.deprecated_uuid
+join transactions_new t on ta.transaction_id = t.ledger_id and t.profile_id=p.id;
 
 drop table transaction_accounts;
 alter table transaction_accounts_new rename to transaction_accounts;