10 lines
163 B
MySQL
10 lines
163 B
MySQL
|
CREATE OR REPLACE FUNCTION updated_at_timestamp() RETURNS TRIGGER
|
||
|
LANGUAGE plpgsql
|
||
|
AS
|
||
|
$$
|
||
|
BEGIN
|
||
|
NEW.updatedAt = CURRENT_TIMESTAMP;
|
||
|
RETURN NEW;
|
||
|
END;
|
||
|
$$;
|