From b5635559f3844e51d21e516044cf3b9f05c0a3e2 Mon Sep 17 00:00:00 2001 From: DSeeLP <46624152+DSeeLP@users.noreply.github.com> Date: Thu, 17 Apr 2025 19:04:43 +0200 Subject: [PATCH] fix transaction view --- migrations/000000_baseline.sql | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/migrations/000000_baseline.sql b/migrations/000000_baseline.sql index 14dca0b..3e3fd9e 100644 --- a/migrations/000000_baseline.sql +++ b/migrations/000000_baseline.sql @@ -38,7 +38,6 @@ create view transactions_with_user_info as select case when t."from" is null then t.interop_name when t."to" is null then t.interop_name - else null end as interop_name, -- From Participant uf.id AS from_user_id, @@ -51,7 +50,7 @@ create view transactions_with_user_info as select ut.name AS to_user_name, at.name AS to_account_name from transactions t -join accounts af ON t."from" = af.id -join users uf ON af."user" = uf.id -join accounts at ON t."to" = at.id -join users ut ON at."user" = ut.id; +left join accounts af ON t."from" = af.id +left join users uf ON af."user" = uf.id +left join accounts at ON t."to" = at.id +left join users ut ON at."user" = ut.id;