Changes between Version 33 and Version 34 of DatabaseProgramming


Ignore:
Timestamp:
06/16/26 02:27:24 (26 hours ago)
Author:
231119
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseProgramming

    v33 v34  
    799799    if OLD.status = 'pending' and NEW.status = 'accepted' then
    800800      if (NOW() - OLD.created_at) > interval '5 minutes' then
    801             NEW.status := 'expired';
     801            NEW.status := 'cancelled';
    802802            raise notice 'Offer % has expired and cannot be accepted.', OLD.id;
    803803            return NEW;