aonestar
.public
Tables
(current)
Columns
Constraints
Relationships
Orphan Tables
Anomalies
Routines
sp_tr_room_restriction_touch
Parameters
Name
Type
Mode
Definition
BEGIN IF TG_OP = 'INSERT' OR NEW.stop_sell IS DISTINCT FROM OLD.stop_sell OR NEW.max_avail IS DISTINCT FROM OLD.max_avail OR NEW.avail_offset IS DISTINCT FROM OLD.avail_offset THEN NEW.updated_at := now(); END IF; RETURN NEW; END;