user-lib/sql/schema/token/delete_expired_tokens.sql

4 lines
116 B
MySQL
Raw Permalink Normal View History

2023-09-20 20:23:29 +00:00
DELETE FROM token
where
TIMESTAMPDIFF(DAY, NOW(), last_updated) > ? AND
TIMESTAMPDIFF(DAY, NOW(), time_created) > ?