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_update.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

diff --git a/src/db/rest/comment/api_comment_update.sql b/src/db/rest/comment/api_comment_update.sql
index b8fc16d..856cd26 100644
--- a/src/db/rest/comment/api_comment_update.sql
+++ b/src/db/rest/comment/api_comment_update.sql
@@ -27,7 +27,7 @@ BEGIN
 	END IF;
 
 	IF _changed THEN
-		UPDATE admin.comment SET
+		UPDATE xssbook.comment SET
 			content = NEW.content,
 			modified = clock_timestamp()
 			WHERE id = OLD.id;
@@ -41,7 +41,7 @@ GRANT EXECUTE ON FUNCTION _api.comment_update()
 	TO rest_user;
 GRANT UPDATE ON TABLE api.comment
 	TO rest_user;
-GRANT UPDATE ON TABLE admin.comment
+GRANT UPDATE ON TABLE xssbook.comment
 	TO rest_user;
 
 CREATE TRIGGER api_comment_update_trgr
-- 
cgit v1.2.3-freya

