You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
416 B

DELETE FROM
`{DATABASE}`.`{PREFIX}inheritance`
WHERE
`entity` = '{USER}' AND `inheritance_type` = b'1'
AND
`parent` IN (
SELECT `climber`
FROM `{DATABASE}`.`{PREFIX}ladders`
WHERE `ladder` = '{LADDER}' AND `climber_type` = b'0'
UNION
SELECT CONCAT(`climber`, '.', '{INSTANCE}') as `climber`
FROM `{DATABASE}`.`{PREFIX}ladders`
WHERE `ladder` = '{LADDER}.?' AND `climber_type` = b'0'
);