feature #4: create function for article

implement generate_version_number()
This commit is contained in:
2019-07-27 01:19:25 +02:00
parent 2286568ae9
commit ce2f2b4f2a
11 changed files with 144 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ begin
from (
select
z.*,
find_user_by_id(z.user_id)
find_user_by_id(z.user_id) as "user"
from citizen as z
where z.id = _id
) as t;

View File

@@ -7,7 +7,7 @@ begin
from (
select
z.*,
find_user_by_id(z.user_id)
find_user_by_id(z.user_id) as "user"
from citizen as z
where z.user_id = _user_id
) as t;

View File

@@ -21,10 +21,7 @@ begin
follow_annonymous = excluded.follow_annonymous
returning id into new_id;
select to_json(z)
into resource
from citizen as z
where z.id = new_id;
select find_citizen_by_id(new_id) into resource;
end;
$$;