X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=src%2Fdb%2Fsqlite%2Fsql%2Fauthentication-upsert.sql;h=b83071926d346834adf7b4749540489760c17c8a;hb=3ca7fccb306d0b23626befc3791ffa360b3db1e7;hp=8a141ee49bbc748d29af0316d7ea586e6c925fa9;hpb=1c37a7c533a5530390489ea9a49dcca492db1074;p=websub-hub diff --git a/src/db/sqlite/sql/authentication-upsert.sql b/src/db/sqlite/sql/authentication-upsert.sql index 8a141ee..b830719 100644 --- a/src/db/sqlite/sql/authentication-upsert.sql +++ b/src/db/sqlite/sql/authentication-upsert.sql @@ -1,9 +1,10 @@ -- INSERT INTO authentication - (identifier, credential) + (identifier, credential, otp_key) VALUES - (:identifier, :credential) + (:identifier, :credential, :otpKey) ON CONFLICT (identifier) DO UPDATE SET identifier = :identifier, - credential = :credential + credential = :credential, + otp_key = :otpKey