Skip to content

Commit

Permalink
Fix cleanup job
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Feb 8, 2017
1 parent 829ae10 commit b2dbbc3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion install/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,10 @@ INSERT IGNORE INTO `locations` (`id`, `short`, `long`)
VALUES (1, 'Localhost', 'Localhost');

DROP EVENT IF EXISTS `oauthTokenCleaner`;
CREATE EVENT `oauthTokenCleaner` ON SCHEDULE EVERY 12 HOUR ON COMPLETION NOT PRESERVE ENABLE COMMENT '' DO DELETE FROM oauthAccessTokens WHERE expireTime < NOW();
CREATE EVENT `oauthTokenCleaner`
ON SCHEDULE
EVERY 12 HOUR
ON COMPLETION NOT PRESERVE
ENABLE
COMMENT 'Cleans up the oauth access tokens'
DO DELETE FROM oauth_access_tokens WHERE expireTime < NOW()

0 comments on commit b2dbbc3

Please sign in to comment.