Update exile.ini
fix for containers and constructions outside of territories being deleted at next server restart
This commit is contained in:
parent
2bfea58755
commit
081386bb7d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user