ente/server/migrations/33_change_update_at_column_trigger.down.sql
2024-03-01 13:37:01 +05:30

9 lines
188 B
PL/PgSQL

create or replace function trigger_updated_at_microseconds_column() returns trigger
language plpgsql
as
$$
BEGIN
NEW.updated_at = now_utc_micro_seconds();
RETURN NEW;
END;
$$;