Skip to content

Commit 2ad87a5

Browse files
committed
Update SQL schema
1 parent b94cdba commit 2ad87a5

File tree

5 files changed

+272
-275
lines changed

5 files changed

+272
-275
lines changed

backend/supabase/functions.sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
create
33
or replace function public.to_jsonb (jsonb) returns jsonb language sql immutable parallel SAFE strict as $function$ select $1 $function$;
44

5-
create
6-
or replace function public.ts_to_millis (ts timestamp without time zone) returns bigint language sql immutable parallel SAFE as $function$
7-
select extract(epoch from ts)::bigint * 1000
8-
$function$;
9-
10-
create
11-
or replace function public.ts_to_millis (ts timestamp with time zone) returns bigint language sql immutable parallel SAFE as $function$
12-
select (extract(epoch from ts) * 1000)::bigint
13-
$function$;
5+
-- create
6+
-- or replace function public.ts_to_millis (ts timestamp without time zone) returns bigint language sql immutable parallel SAFE as $function$
7+
-- select extract(epoch from ts)::bigint * 1000
8+
-- $function$;
9+
--
10+
-- create
11+
-- or replace function public.ts_to_millis (ts timestamp with time zone) returns bigint language sql immutable parallel SAFE as $function$
12+
-- select (extract(epoch from ts) * 1000)::bigint
13+
-- $function$;
1414

1515
create
1616
or replace function public.millis_to_ts (millis bigint) returns timestamp with time zone language sql immutable parallel SAFE as $function$

0 commit comments

Comments
 (0)