Payflow org settings SQL insert-on-deploy wrapper
authorBill Erickson <berickxx@gmail.com>
Thu, 1 Sep 2016 18:40:01 +0000 (11:40 -0700)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Avoid inserting payflow settings on new dev DB builds -- the data will
come later from an export.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/payflow-hosted-org-settings.sql

index e4d2d6c..3928e9e 100644 (file)
@@ -3,6 +3,10 @@
 
 BEGIN;
 
+DO $$
+BEGIN
+    IF evergreen.insert_on_deploy() THEN
+
 INSERT INTO config.org_unit_setting_type 
     (name, label, description, datatype, view_perm, update_perm, grp)
 VALUES
@@ -33,7 +37,9 @@ VALUES
         'reported by the web server).  Otherwise, all responses are ' ||
         'delivered to the return/error/cancel URLs configured with PayPay',
         'bool', 1005, 1006, 'credit')
-
 ;
 
+    END IF; -- insert_on_deploy
+END $$;
+
 COMMIT;