Added ID field to associations table.
This commit is contained in:
@@ -1,2 +1 @@
|
||||
#endpoint: https://rps.bodyshop.app
|
||||
endpoint: https://db.rps.imex.online
|
||||
endpoint: https://rps.bodyshop.app
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: alter table "public"."associations" drop constraint "associations_pkey";
|
||||
type: run_sql
|
||||
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: ALTER TABLE "public"."associations" DROP COLUMN "id";
|
||||
type: run_sql
|
||||
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: alter table "public"."associations" drop constraint "associations_pkey";
|
||||
type: run_sql
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -14,8 +14,9 @@ tables:
|
||||
- role: user
|
||||
permission:
|
||||
columns:
|
||||
- email
|
||||
- bodyshopid
|
||||
- email
|
||||
- id
|
||||
filter:
|
||||
user:
|
||||
authid:
|
||||
|
||||
Reference in New Issue
Block a user