galaeth-draft/Galaeth.DAL/Migrations/2024-11-13.01-initial.sql

10 lines
163 B
MySQL
Raw Normal View History

2024-11-17 10:31:01 +01:00
CREATE OR REPLACE FUNCTION updated_at_timestamp() RETURNS TRIGGER
LANGUAGE plpgsql
AS
$$
BEGIN
NEW.updatedAt = CURRENT_TIMESTAMP;
RETURN NEW;
END;
$$;