summaryrefslogtreecommitdiff
path: root/src/db/rest/post/api_post_update.sql
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-12-20 00:30:08 -0500
committerFreya Murphy <freya@freyacat.org>2024-12-20 00:30:08 -0500
commit757ccac0103541a34d040ef4812b2e7afb9f1f02 (patch)
treefe8960c4fac73a11e09cc6a2ec7f2c3b8d812485 /src/db/rest/post/api_post_update.sql
parentprofile stuff (diff)
downloadxssbook2-757ccac0103541a34d040ef4812b2e7afb9f1f02.tar.gz
xssbook2-757ccac0103541a34d040ef4812b2e7afb9f1f02.tar.bz2
xssbook2-757ccac0103541a34d040ef4812b2e7afb9f1f02.zip
rename admin schema to xssbook
Diffstat (limited to '')
-rw-r--r--src/db/rest/post/api_post_update.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/rest/post/api_post_update.sql b/src/db/rest/post/api_post_update.sql
index 7b4360d..351a698 100644
--- a/src/db/rest/post/api_post_update.sql
+++ b/src/db/rest/post/api_post_update.sql
@@ -27,7 +27,7 @@ BEGIN
END IF;
IF _changed THEN
- UPDATE admin.post SET
+ UPDATE xssbook.post SET
content = NEW.content,
modified = clock_timestamp()
WHERE id = OLD.id;
@@ -41,7 +41,7 @@ GRANT EXECUTE ON FUNCTION _api.post_update()
TO rest_user;
GRANT UPDATE 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_update_trgr