From 8a5bfcbd4b408f0c0fe03ad495efc45599653523 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 18 Sep 2018 23:07:10 -0400 Subject: [PATCH] on conflict do nothing --- db_deploy.sql | 1 + schema/triggers/log_insert.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/db_deploy.sql b/db_deploy.sql index db2b98f..3970cb3 100644 --- a/db_deploy.sql +++ b/db_deploy.sql @@ -119,6 +119,7 @@ CREATE OR REPLACE FUNCTION evt.log_insert() RETURNS trigger ,'{}'::jsonb prop FROM ex_gl_line + ON CONFLICT DO NOTHING RETURNING * ) INSERT INTO diff --git a/schema/triggers/log_insert.sql b/schema/triggers/log_insert.sql index fd58adb..021b56e 100644 --- a/schema/triggers/log_insert.sql +++ b/schema/triggers/log_insert.sql @@ -98,6 +98,7 @@ CREATE OR REPLACE FUNCTION evt.log_insert() RETURNS trigger ,'{}'::jsonb prop FROM ex_gl_line + ON CONFLICT DO NOTHING RETURNING * ) INSERT INTO