projects
/
squeep-indie-auther
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
initial commit
[squeep-indie-auther]
/
src
/
db
/
postgres
/
sql
/
authentication-upsert.sql
diff --git a/src/db/postgres/sql/authentication-upsert.sql
b/src/db/postgres/sql/authentication-upsert.sql
new file mode 100644
(file)
index 0000000..
e86d4fb
--- /dev/null
+++ b/
src/db/postgres/sql/authentication-upsert.sql
@@ -0,0
+1,9
@@
+--
+INSERT INTO authentication
+ (identifier, credential)
+VALUES
+ ($(identifier), $(credential))
+ON CONFLICT (identifier) DO UPDATE
+SET
+ identifier = $(identifier),
+ credential = $(credential)