astral-api/Astral.DAL/Migrations/2024-12-09.01-initial.sql

10 lines
163 B
MySQL
Raw Permalink Normal View History

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