forked from MarseyWorld/MarseyWorld
switch to tabs
parent
5c891c32d8
commit
974f1c7766
|
@ -18,11 +18,11 @@ alter table votes rename constraint vote_submission_key to vote_post_key;
|
||||||
drop function bump_utc;
|
drop function bump_utc;
|
||||||
|
|
||||||
CREATE FUNCTION public.bump_utc(public.posts) RETURNS integer
|
CREATE FUNCTION public.bump_utc(public.posts) RETURNS integer
|
||||||
LANGUAGE sql IMMUTABLE STRICT
|
LANGUAGE sql IMMUTABLE STRICT
|
||||||
AS $_$
|
AS $_$
|
||||||
SELECT CREATED_UTC
|
SELECT CREATED_UTC
|
||||||
FROM comments
|
FROM comments
|
||||||
WHERE parent_post = $1.id
|
WHERE parent_post = $1.id
|
||||||
ORDER BY created_utc desc
|
ORDER BY created_utc desc
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
$_$;
|
$_$;
|
||||||
|
|
Loading…
Reference in New Issue