give web_anon records access
ci / build (push) Failing after 10m8s
Details
ci / build (push) Failing after 10m8s
Details
This commit is contained in:
parent
f13ea55ba0
commit
8faa5e2195
|
@ -41,7 +41,7 @@ spec:
|
|||
containerPort: {{ .Values.postgrest.port }}
|
||||
env:
|
||||
- name: PGRST_DB_ANON_ROLE
|
||||
value: anonymous
|
||||
value: web_anon
|
||||
- name: PGRST_SERVER_PORT
|
||||
value: "{{ .Values.postgrest.port }}"
|
||||
- name: PGRST_DB_SCHEMAS
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
-- schema for @futureporn/capture and @futureporn/bot
|
||||
-- records table schema
|
||||
CREATE TABLE api.records (
|
||||
id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
|
||||
url TEXT NOT NULL,
|
||||
discordMessageId TEXT NOT NULL,
|
||||
isAborted BOOLEAN DEFAULT FALSE
|
||||
discord_message_id TEXT NOT NULL,
|
||||
is_aborted BOOLEAN DEFAULT FALSE
|
||||
);
|
||||
|
||||
-- roles & permissions for our backend automation user
|
||||
GRANT all ON api.records TO automation;
|
||||
GRANT SELECT ON api.discord_interactions TO web_anon;
|
||||
GRANT SELECT ON api.records TO web_anon;
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@futureporn/migrations",
|
||||
"type": "module",
|
||||
"version": "0.1.1",
|
||||
"version": "0.2.1",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in New Issue