DangerRuss
OpenDayZ Rockstar!
Im trying to delete old survivor ID's that are dead and also trying to clean up the old log_entry stuff but the query's Im using don't seem to work. I tried
but that yells at me because it won't delete survivor id's that reference instance_deployable id's... so I tried this
which just doesn't work at all.
I also tried this
and that didn't work. HELP lol
Code:
DELETE FROM survivor
WHERE is_dead = 1;
Code:
DELETE FROM survivor
WHERE is_dead = 1
AND id NOT IN (
SELECT owner_id FROM instance_deployable
);
I also tried this
Code:
DELETE FROM `log_entry` WHERE `created` <= date_sub(now(), INTERVAL 1 DAY)