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
/
profile-identifier-insert.sql
diff --git a/src/db/postgres/sql/profile-identifier-insert.sql
b/src/db/postgres/sql/profile-identifier-insert.sql
new file mode 100644
(file)
index 0000000..
2c42fac
--- /dev/null
+++ b/
src/db/postgres/sql/profile-identifier-insert.sql
@@ -0,0
+1,4
@@
+--
+INSERT INTO profile (profile, identifier_id)
+ SELECT $(profile), identifier_id FROM authentication WHERE identifier = $(identifier)
+ON CONFLICT (identifier_id, profile) DO NOTHING