From 757ccac0103541a34d040ef4812b2e7afb9f1f02 Mon Sep 17 00:00:00 2001
From: Freya Murphy <freya@freyacat.org>
Date: Fri, 20 Dec 2024 00:30:08 -0500
Subject: rename admin schema to xssbook

---
 src/db/rest/comment/api_comment.sql | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/db/rest/comment/api_comment.sql')

diff --git a/src/db/rest/comment/api_comment.sql b/src/db/rest/comment/api_comment.sql
index c8a0e19..36db10c 100644
--- a/src/db/rest/comment/api_comment.sql
+++ b/src/db/rest/comment/api_comment.sql
@@ -7,13 +7,13 @@ CREATE VIEW api.comment AS
 		c.created,
 		c.modified
 	FROM
-		admin.comment c
+		xssbook.comment c
 	LEFT JOIN
-		admin.post p
+		xssbook.post p
 	ON
 		p.id = c.post_id
 	LEFT JOIN
-		admin.user u
+		xssbook.user u
 	ON
 		u.id = c.user_id
 	WHERE
@@ -25,5 +25,5 @@ CREATE VIEW api.comment AS
 
 GRANT SELECT ON TABLE api.comment
 	TO rest_anon, rest_user;
-GRANT SELECT ON TABLE admin.comment
+GRANT SELECT ON TABLE xssbook.comment
 	TO rest_anon, rest_user;
-- 
cgit v1.2.3-freya

