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

(limited to 'src/db/rest/post/api_post_delete.sql')

diff --git a/src/db/rest/post/api_post_delete.sql b/src/db/rest/post/api_post_delete.sql
index 8f26b40..5c2a014 100644
--- a/src/db/rest/post/api_post_delete.sql
+++ b/src/db/rest/post/api_post_delete.sql
@@ -11,7 +11,7 @@ BEGIN
 		PERFORM _api.raise_deny();
 	END IF;
 
-	UPDATE admin.post SET
+	UPDATE xssbook.post SET
 		deleted = TRUE,
 		modified = clock_timestamp()
 		WHERE id = OLD.id;
@@ -22,7 +22,7 @@ GRANT EXECUTE ON FUNCTION _api.post_delete()
 	TO rest_user;
 GRANT DELETE ON TABLE api.post
 	TO rest_user;
-GRANT UPDATE ON TABLE admin.post
+GRANT UPDATE ON TABLE xssbook.post
 	TO rest_user;
 
 CREATE TRIGGER api_post_delete_trgr
-- 
cgit v1.2.3-freya

