From bb3439eb4681e3aa2ccfa9b357a95703b0058738 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Wed, 27 Jan 2016 15:04:22 -0500 Subject: [PATCH] Modify db repair to harmonize w/ new condition --- sql/branch.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sql/branch.sql b/sql/branch.sql index d1a0104b1c..dc4aa22346 100644 --- a/sql/branch.sql +++ b/sql/branch.sql @@ -1,4 +1,3 @@ BEGIN; - UPDATE payment_instructions SET due = 0 WHERE amount = 0 AND due != 0; - UPDATE payment_instructions SET due = floor(9.41/(amount)) * amount WHERE due > 9.41; + UPDATE payment_instructions SET due = 0 WHERE due > 9.41; END;