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/user/api_user_insert.sql | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/db/rest/user/api_user_insert.sql')

diff --git a/src/db/rest/user/api_user_insert.sql b/src/db/rest/user/api_user_insert.sql
index 1a6ef7c..cf70a8a 100644
--- a/src/db/rest/user/api_user_insert.sql
+++ b/src/db/rest/user/api_user_insert.sql
@@ -22,7 +22,7 @@ BEGIN
 		_max => 24
 	);
 
-	PERFORM TRUE FROM admin.user
+	PERFORM TRUE FROM xssbook.user
 		WHERE username = NEW.username;
 
 	IF FOUND THEN
@@ -84,7 +84,7 @@ BEGIN
 	);
 	NEW.profile_bio = COALESCE(NEW.profile_bio, ''::text);
 
-	INSERT INTO admin.user (
+	INSERT INTO xssbook.user (
 		username,
 		password,
 		first_name,
@@ -118,7 +118,7 @@ GRANT EXECUTE ON FUNCTION _api.user_insert()
 	TO rest_anon, rest_user;
 GRANT INSERT ON TABLE api.user
 	TO rest_anon, rest_user;
-GRANT INSERT ON TABLE admin.user
+GRANT INSERT ON TABLE xssbook.user
 	TO rest_anon, rest_user;
 GRANT UPDATE ON TABLE sys.user_id_seq
 	TO rest_anon, rest_user;
-- 
cgit v1.2.3-freya

