Delete Sql Instructions.txt

This commit is contained in:
DoubleRepo 2018-03-17 02:20:21 +01:00 committed by GitHub
parent f1c6030cad
commit 07f82d8497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!