user-lib/sql/schema/token/delete_expired_tokens.sql
2023-09-20 16:23:29 -04:00

4 lines
116 B
SQL

DELETE FROM token
where
TIMESTAMPDIFF(DAY, NOW(), last_updated) > ? AND
TIMESTAMPDIFF(DAY, NOW(), time_created) > ?