From 0920c4d4f30a3345870d385d5c6f3e0919228b56 Mon Sep 17 00:00:00 2001
From: benj <benj@rse8.com>
Date: Mon, 12 Dec 2022 17:06:57 -0800
Subject: (oauth2 + email added): a mess that may or may not really work and
 needs to be refactored...

---
 crates/secd/store/pg/sql/write_identity.sql | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'crates/secd/store/pg/sql/write_identity.sql')

diff --git a/crates/secd/store/pg/sql/write_identity.sql b/crates/secd/store/pg/sql/write_identity.sql
index 7d53ee1..94a51fe 100644
--- a/crates/secd/store/pg/sql/write_identity.sql
+++ b/crates/secd/store/pg/sql/write_identity.sql
@@ -6,4 +6,6 @@ insert into secd.identity (
        $1,
        $2,
        $3
-);
+) on conflict(identity_public_id) do update
+  set data = excluded.data
+      , deleted_at = excluded.deleted_at;
-- 
cgit v1.2.3

