mirror of
https://github.com/DoubleRepo/PersistentTreeLogging.git
synced 2024-08-30 16:52:16 +00:00
Delete Sql Instructions.txt
This commit is contained in:
parent
f1c6030cad
commit
07f82d8497
@ -1,9 +0,0 @@
|
||||
SQL instructions:
|
||||
|
||||
Import the Tree.sql and after that create a "scheduler" inside your MySQL database.
|
||||
|
||||
Import this scheduler task:
|
||||
|
||||
CREATE DEFINER=`root`@`localhost` EVENT `Re-grow tree's` ON SCHEDULE EVERY 1 HOUR STARTS '2017-12-11 11:11:11' ON COMPLETION PRESERVE ENABLE DO Delete FROM `tree` WHERE DATE(added) < DATE(NOW() - INTERVAL 10 DAY)
|
||||
|
||||
And turn the scheduler ON!
|
Loading…
Reference in New Issue
Block a user