Added ID field to associations table.

This commit is contained in:
Patrick Fic
2020-11-10 16:07:54 -08:00
parent 6d9be1810d
commit 0aa8d2ead6
10 changed files with 86 additions and 3 deletions

View File

@@ -1,2 +1 @@
#endpoint: https://rps.bodyshop.app
endpoint: https://db.rps.imex.online
endpoint: https://rps.bodyshop.app

View File

@@ -0,0 +1,6 @@
- args:
cascade: false
read_only: false
sql: "alter table \"public\".\"associations\"\n add constraint \"associations_pkey\"
\n primary key ( \"bodyshopid\", \"email\" );"
type: run_sql

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: alter table "public"."associations" drop constraint "associations_pkey";
type: run_sql

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: ALTER TABLE "public"."associations" DROP COLUMN "id";
type: run_sql

View File

@@ -0,0 +1,11 @@
- args:
cascade: false
read_only: false
sql: CREATE EXTENSION IF NOT EXISTS pgcrypto;
type: run_sql
- args:
cascade: false
read_only: false
sql: ALTER TABLE "public"."associations" ADD COLUMN "id" uuid NULL UNIQUE DEFAULT
gen_random_uuid();
type: run_sql

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: alter table "public"."associations" drop constraint "associations_pkey";
type: run_sql

View File

@@ -0,0 +1,6 @@
- args:
cascade: false
read_only: false
sql: "alter table \"public\".\"associations\"\n add constraint \"associations_pkey\"
\n primary key ( \"id\" );"
type: run_sql

View File

@@ -0,0 +1,22 @@
- args:
role: user
table:
name: associations
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: false
columns:
- email
- bodyshopid
computed_fields: []
filter:
user:
authid:
_eq: X-Hasura-User-Id
role: user
table:
name: associations
schema: public
type: create_select_permission

View File

@@ -0,0 +1,23 @@
- args:
role: user
table:
name: associations
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: false
columns:
- bodyshopid
- email
- id
computed_fields: []
filter:
user:
authid:
_eq: X-Hasura-User-Id
role: user
table:
name: associations
schema: public
type: create_select_permission

View File

@@ -14,8 +14,9 @@ tables:
- role: user
permission:
columns:
- email
- bodyshopid
- email
- id
filter:
user:
authid: