fix duplicate
ci / build (push) Has been cancelled Details

This commit is contained in:
CJ_Clippy 2024-08-01 11:40:19 -08:00
parent 029849544c
commit f13ea55ba0
3 changed files with 7 additions and 7 deletions

View File

@ -4,8 +4,8 @@ CREATE schema api;
-- authenticator is the role which can "impersonate" other users. -- authenticator is the role which can "impersonate" other users.
CREATE ROLE authenticator LOGIN NOINHERIT NOCREATEDB NOCREATEROLE NOSUPERUSER; CREATE ROLE authenticator LOGIN NOINHERIT NOCREATEDB NOCREATEROLE NOSUPERUSER;
-- anon is the role assigned to anon web requests -- web_anon is the role assigned to anonymous web requests
CREATE ROLE anon NOLOGIN; CREATE ROLE web_anon NOLOGIN;
-- schema for @futureporn/capture and @futureporn/bot -- schema for @futureporn/capture and @futureporn/bot
CREATE TABLE api.discord_interactions ( CREATE TABLE api.discord_interactions (
@ -21,7 +21,6 @@ GRANT automation TO authenticator;
GRANT usage ON SCHEMA api TO automation; GRANT usage ON SCHEMA api TO automation;
GRANT all ON api.discord_interactions TO automation; GRANT all ON api.discord_interactions TO automation;
-- role & permissions for anon web user -- role & permissions for web_anon web user
CREATE ROLE anon NOLOGIN; GRANT usage on schema api TO web_anon;
GRANT usage on schema api TO anon; GRANT SELECT ON api.discord_interactions TO web_anon;
GRANT SELECT ON api.discord_interactions TO anon;

View File

@ -8,3 +8,4 @@ CREATE TABLE api.records (
-- roles & permissions for our backend automation user -- roles & permissions for our backend automation user
GRANT all ON api.records TO automation; GRANT all ON api.records TO automation;
GRANT SELECT ON api.discord_interactions TO web_anon;

View File

@ -1,7 +1,7 @@
{ {
"name": "@futureporn/migrations", "name": "@futureporn/migrations",
"type": "module", "type": "module",
"version": "0.1.0", "version": "0.1.1",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {