Fix presence triggers
Any trigger regarding presence is likely to cause invalid states of the presence of a media is set to its current value.
The triggers usually rely on something like " SET is_present=is_present + (CASE new.is_present WHEN 0 THEN -1 ELSE 1 END)"
which works if is_present changes its value, but not if is_present is set to its current value.
This is the case for is_album_present
, other triggers need to be checked.