Isso deve fazer parte do seu
BEFORE UPDATE
acionar. for each row begin
if new.expirydate < curdate() then
set new.status = 1; -- still active
else set new.status = 0; -- expired
end if;
end;
BEFORE UPDATE
acionar. for each row begin
if new.expirydate < curdate() then
set new.status = 1; -- still active
else set new.status = 0; -- expired
end if;
end;