From 0de0ed18b404d95ff3cd807437bd5b965e2d0e84 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Sat, 22 Jan 2022 15:19:30 +0100 Subject: [PATCH] Missing fix --- db/migrations/20220120000700_add_constraints.up.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrations/20220120000700_add_constraints.up.go b/db/migrations/20220120000700_add_constraints.up.go index f43e005..cdbd438 100644 --- a/db/migrations/20220120000700_add_constraints.up.go +++ b/db/migrations/20220120000700_add_constraints.up.go @@ -52,7 +52,7 @@ func init() { IF debit_account_type IS NULL THEN RETURN NEW; - END; + END IF; -- Calculate the account balance SELECT INTO sum SUM(amount)