From 757ccac0103541a34d040ef4812b2e7afb9f1f02 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 20 Dec 2024 00:30:08 -0500 Subject: rename admin schema to xssbook --- src/db/rest/comment/api_comment_insert.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/db/rest/comment/api_comment_insert.sql') diff --git a/src/db/rest/comment/api_comment_insert.sql b/src/db/rest/comment/api_comment_insert.sql index 990beef..f3c78aa 100644 --- a/src/db/rest/comment/api_comment_insert.sql +++ b/src/db/rest/comment/api_comment_insert.sql @@ -16,7 +16,7 @@ BEGIN ); PERFORM TRUE - FROM admin.post + FROM xssbook.post WHERE id = NEW.post_id; IF NOT FOUND THEN @@ -26,7 +26,7 @@ BEGIN ); END IF; - INSERT INTO admin.comment ( + INSERT INTO xssbook.comment ( user_id, post_id, content @@ -46,7 +46,7 @@ GRANT EXECUTE ON FUNCTION _api.comment_insert() TO rest_user; GRANT INSERT ON TABLE api.comment TO rest_user; -GRANT INSERT ON TABLE admin.comment +GRANT INSERT ON TABLE xssbook.comment TO rest_user; GRANT UPDATE ON TABLE sys.comment_id_seq TO rest_user; -- cgit v1.2.3-freya