We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clock_timestamp
now
1 parent a0522dc commit 6499834Copy full SHA for 6499834
src/authenticated_compojure_api/tables/user/password_reset_key.sql
@@ -5,7 +5,7 @@ CREATE TABLE IF NOT EXISTS password_reset_key (
5
, reset_key TEXT NOT NULL UNIQUE
6
, already_used BOOLEAN NOT NULL DEFAULT FALSE
7
, user_id INTEGER REFERENCES registered_user (id) ON DELETE CASCADE
8
- , valid_until TIMESTAMP WITH TIME ZONE DEFAULT NOW() + INTERVAL '24 hours'
+ , valid_until TIMESTAMP WITH TIME ZONE DEFAULT CLOCK_TIMESTAMP() + INTERVAL '24 hours'
9
);
10
11
-- name: drop-password-reset-key-table!
0 commit comments