From fe0922f37ca0346655ef66c5c5203f04f3adcbf5 Mon Sep 17 00:00:00 2001 From: yrzam Date: Tue, 2 Jan 2024 04:19:09 +0400 Subject: [PATCH] latest_fin_transactions on delete trigger --- schema.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/schema.sql b/schema.sql index 0a8fb74..51429ab 100644 --- a/schema.sql +++ b/schema.sql @@ -758,3 +758,10 @@ where order by t.date desc /* historical_monthly_txs_balances_mismatch(start_date,end_date,storage,amount_unaccounted,asset,tx_delta,balance_delta) */; +CREATE TRIGGER latest_fin_transactions_delete instead of delete on latest_fin_transactions +begin + delete from + fin_transactions + where + id=old.pseudo_id; +end;