X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdb%2Fpostgres%2Fsql%2Fauthentication-upsert.sql;fp=src%2Fdb%2Fpostgres%2Fsql%2Fauthentication-upsert.sql;h=e86d4fbc17674ed2ebcc8a5f2f583bd7268a4ed8;hb=b0103b0d496262c438b40bc20304081dbfe41e73;hp=0000000000000000000000000000000000000000;hpb=8ed81748bce7cea7904cac7225b20a60cafdfc16;p=squeep-indie-auther diff --git a/src/db/postgres/sql/authentication-upsert.sql b/src/db/postgres/sql/authentication-upsert.sql new file mode 100644 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)