mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
10 lines
356 B
SQL
10 lines
356 B
SQL
-- PostgreSQL variants of the sqlite profile queries.
|
|||
|
|
-- UpdateUserProfile uses :execrows because postgres has no LastInsertId;
|
||
|
|
-- the caller checks rows-affected for existence.
|
||
|
|
|
||
|
|
-- name: UpdateUserProfile :execrows
|
||
|
|
UPDATE users SET username = $1, avatar = $2 WHERE id = $3;
|
||
|
|
|
||
|
|
-- name: UpdateUserPassword :exec
|
||
|
|
UPDATE users SET password = $1 WHERE id = $2;
|