From a3475dfe99a81c0de85805ead6048f3b1400bd44 Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Tue, 9 Jan 2024 22:03:45 +0100 Subject: [PATCH] Update UUID v7 function --- initdb/02_3_3_signalk_public_functions_helpers.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/initdb/02_3_3_signalk_public_functions_helpers.sql b/initdb/02_3_3_signalk_public_functions_helpers.sql index e9fefab..4d2c1e3 100644 --- a/initdb/02_3_3_signalk_public_functions_helpers.sql +++ b/initdb/02_3_3_signalk_public_functions_helpers.sql @@ -167,10 +167,10 @@ $$ ; -- Description COMMENT ON FUNCTION - public.jsonb_diff_val - IS 'Generate UUID v7, Based off IETF draft, https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/ '; + public.timestamp_from_uuid_v7 + IS 'extract the timestamp from the uuid.'; -create or replace function uuid_generate_v7() +create or replace function public.uuid_generate_v7() returns uuid as $$ begin @@ -194,5 +194,5 @@ $$ language plpgsql volatile; -- Description COMMENT ON FUNCTION - public.jsonb_diff_val - IS 'extract the timestamp from the uuid.'; + public.uuid_generate_v7 + IS 'Generate UUID v7, Based off IETF draft, https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/';