Skip to content

Commit 00162e5

Browse files
committed
Fix errors in Postgres code
1 parent faceeb9 commit 00162e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/db/postgres/lrsql/postgres/sql/ddl.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,4 +505,4 @@ CREATE INDEX IF NOT EXISTS blocked_jwt_evict_time_idx ON blocked_jwt(evict_time)
505505
-- :name alter-blocked-jwt-add-one-time-id!
506506
-- :command :execute
507507
-- :doc Add the column `blocked_jwt.one_time_id` for one-time JWTs; JWTs with one-time IDs are not considered blocked yet.
508-
ALTER TABLE IF EXISTS blocked_jwt ADD COLUMN IF NOT EXISTS one_time_id TYPE UUID UNIQUE;
508+
ALTER TABLE IF EXISTS blocked_jwt ADD COLUMN IF NOT EXISTS one_time_id UUID UNIQUE;

src/db/postgres/lrsql/postgres/sql/update.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ WHERE id = :account-id;
8484
UPDATE blocked_jwt
8585
SET
8686
one_time_id = NULL
87-
WHERE one_time_id = :one_time_id;
87+
WHERE one_time_id = :one-time-id;
8888

8989
-- :name update-reaction!
9090
-- :command :execute

0 commit comments

Comments
 (0)