diff --git a/@ExileServer/sql_custom/exile.ini b/@ExileServer/sql_custom/exile.ini index dd83619..6ec52aa 100644 --- a/@ExileServer/sql_custom/exile.ini +++ b/@ExileServer/sql_custom/exile.ini @@ -620,9 +620,9 @@ SQL1_INPUTS = 1 ; Removes containers outside territories that were not accessed within ? days [deleteOldContainers] SQL1_1 = DELETE FROM container WHERE deleted_at < DATE_SUB(NOW(), INTERVAL ? DAY) AND territory_id IS NULL -SQL2_1 = SET SQL_SAFE_UPDATES=0; -SQL3_1 = DELETE FROM container WHERE id IN (SELECT id FROM (SELECT * FROM container WHERE NOT EXISTS (SELECT NULL FROM territory WHERE territory.id = container.territory_id)) AS c) -SQL4_1 = SET SQL_SAFE_UPDATES=1; +;; SQL2_1 = SET SQL_SAFE_UPDATES=0; +;; SQL3_1 = DELETE FROM container WHERE id IN (SELECT id FROM (SELECT * FROM container WHERE NOT EXISTS (SELECT NULL FROM territory WHERE territory.id = container.territory_id)) AS c) +;; SQL4_1 = SET SQL_SAFE_UPDATES=1; SQL1_INPUTS = 1 @@ -635,9 +635,9 @@ SQL1_INPUTS = 1 ; Removes contructions outside territories after ? days [deleteOldConstructions] SQL1_1 = DELETE FROM construction WHERE deleted_at < DATE_SUB(NOW(), INTERVAL ? DAY) AND territory_id IS NULL -SQL2_1 = SET SQL_SAFE_UPDATES=0; -SQL3_1 = DELETE FROM construction WHERE id IN (SELECT id FROM (SELECT * FROM construction WHERE NOT EXISTS (SELECT NULL FROM territory WHERE territory.id = construction.territory_id)) AS c) -SQL4_1 = SET SQL_SAFE_UPDATES=1; +;; SQL2_1 = SET SQL_SAFE_UPDATES=0; +;; SQL3_1 = DELETE FROM construction WHERE id IN (SELECT id FROM (SELECT * FROM construction WHERE NOT EXISTS (SELECT NULL FROM territory WHERE territory.id = construction.territory_id)) AS c) +;; SQL4_1 = SET SQL_SAFE_UPDATES=1; SQL1_INPUTS = 1