**BREAKING** Deletion of all hasura migrations.
This commit is contained in:
15
README.MD
15
README.MD
@@ -1,26 +1,17 @@
|
||||
React App:
|
||||
|
||||
Yarn Dependency Management:
|
||||
To force upgrades for some packages:
|
||||
yarn upgrade-interactive --latest
|
||||
|
||||
To Start Hasura CLI:
|
||||
npx hasura console --admin-secret Dev-BodyShopAppBySnaptSoftware!
|
||||
npx hasura console
|
||||
|
||||
Migrating to Staging:
|
||||
npx hasura migrate apply --endpoint https://db.imex.online/ --admin-secret 'Production-ImEXOnline!@#'
|
||||
|
||||
npx hasura migrate apply --version "1620770615633" --skip-execution --endpoint https://db.test.bodyshop.app/ --admin-secret 'Test-ImEXOnlineBySnaptSoftware!'
|
||||
npx hasura migrate apply --up 50 --endpoint https://db.test.bodyshop.app/ --admin-secret 'Test-ImEXOnlineBySnaptSoftware!'
|
||||
npx hasura migrate apply --endpoint https://db.test.bodyshop.app/ --admin-secret 'Test-ImEXOnlineBySnaptSoftware!'
|
||||
|
||||
NGROK TEsting:
|
||||
|
||||
./ngrok.exe http http://localhost:5000 -host-header="localhost:5000"
|
||||
|
||||
Finding deadfiles - run from client directory
|
||||
npx deadfile ./src/index.js --exclude build templates
|
||||
|
||||
cd client && yarn build && cd build && scp -r \*\* imex@prod-tor1.imex.online:~/bodyshop/client/build && cd .. &&cd ..
|
||||
|
||||
gq https://bodyshop-dev-db.herokuapp.com/v1/graphql -H "X-Hasura-Admin-Secret: Dev-BodyShopAppBySnaptSoftware\!" --introspect > schema.graphql
|
||||
|
||||
npx hasura migrate apply --endpoint https://db.test.bodyshop.app/ --admin-secret 'Test-ImEXOnlineBySnaptSoftware!'
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: DROP TABLE "public"."users"
|
||||
type: run_sql
|
||||
@@ -1,15 +0,0 @@
|
||||
- args:
|
||||
sql: "CREATE TABLE \"public\".\"users\"(\"email\" text NOT NULL, \"authid\" text
|
||||
NOT NULL, \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\"
|
||||
timestamptz NOT NULL DEFAULT now(), PRIMARY KEY (\"email\") );\nCREATE OR REPLACE
|
||||
FUNCTION \"public\".\"set_current_timestamp_updated_at\"()\nRETURNS TRIGGER
|
||||
AS $$\nDECLARE\n _new record;\nBEGIN\n _new := NEW;\n _new.\"updated_at\"
|
||||
= NOW();\n RETURN _new;\nEND;\n$$ LANGUAGE plpgsql;\nCREATE TRIGGER \"set_public_users_updated_at\"\nBEFORE
|
||||
UPDATE ON \"public\".\"users\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT
|
||||
ON TRIGGER \"set_public_users_updated_at\" ON \"public\".\"users\" \nIS 'trigger
|
||||
to set value of column \"updated_at\" to current timestamp on row update';\n"
|
||||
type: run_sql
|
||||
- args:
|
||||
name: users
|
||||
schema: public
|
||||
type: add_existing_table_or_view
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: DROP TABLE "public"."navitems"
|
||||
type: run_sql
|
||||
@@ -1,8 +0,0 @@
|
||||
- args:
|
||||
sql: CREATE TABLE "public"."navitems"("key" text NOT NULL, "value" text NOT NULL,
|
||||
PRIMARY KEY ("key") );
|
||||
type: run_sql
|
||||
- args:
|
||||
name: navitems
|
||||
schema: public
|
||||
type: add_existing_table_or_view
|
||||
@@ -1 +0,0 @@
|
||||
[]
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: DROP TABLE "public"."navitems"
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: DROP TABLE "public"."masterdata"
|
||||
type: run_sql
|
||||
@@ -1,8 +0,0 @@
|
||||
- args:
|
||||
sql: CREATE TABLE "public"."masterdata"("key" text NOT NULL, "value" text NOT
|
||||
NULL, PRIMARY KEY ("key") );
|
||||
type: run_sql
|
||||
- args:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: add_existing_table_or_view
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
@@ -1,11 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns: []
|
||||
filter: {}
|
||||
limit: null
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: DROP TABLE "public"."bodyshops"
|
||||
type: run_sql
|
||||
@@ -1,11 +0,0 @@
|
||||
- args:
|
||||
sql: CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||
type: run_sql
|
||||
- args:
|
||||
sql: CREATE TABLE "public"."bodyshops"("id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
||||
"shopname" text NOT NULL, PRIMARY KEY ("id") );
|
||||
type: run_sql
|
||||
- args:
|
||||
name: bodyshops
|
||||
schema: public
|
||||
type: add_existing_table_or_view
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: DROP TABLE "public"."associations"
|
||||
type: run_sql
|
||||
@@ -1,14 +0,0 @@
|
||||
- args:
|
||||
sql: CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||
type: run_sql
|
||||
- args:
|
||||
sql: CREATE TABLE "public"."associations"("id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
||||
"shopid" uuid NOT NULL, "useremail" text NOT NULL, PRIMARY KEY ("id") , FOREIGN
|
||||
KEY ("shopid") REFERENCES "public"."bodyshops"("id") ON UPDATE restrict ON DELETE
|
||||
restrict, FOREIGN KEY ("useremail") REFERENCES "public"."users"("email") ON
|
||||
UPDATE restrict ON DELETE restrict);
|
||||
type: run_sql
|
||||
- args:
|
||||
name: associations
|
||||
schema: public
|
||||
type: add_existing_table_or_view
|
||||
@@ -1,24 +0,0 @@
|
||||
- args:
|
||||
relationship: user
|
||||
table:
|
||||
name: associations
|
||||
schema: public
|
||||
type: drop_relationship
|
||||
- args:
|
||||
relationship: bodyshop
|
||||
table:
|
||||
name: associations
|
||||
schema: public
|
||||
type: drop_relationship
|
||||
- args:
|
||||
relationship: associations
|
||||
table:
|
||||
name: bodyshops
|
||||
schema: public
|
||||
type: drop_relationship
|
||||
- args:
|
||||
relationship: associations
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_relationship
|
||||
@@ -1,40 +0,0 @@
|
||||
- args:
|
||||
name: user
|
||||
table:
|
||||
name: associations
|
||||
schema: public
|
||||
using:
|
||||
foreign_key_constraint_on: useremail
|
||||
type: create_object_relationship
|
||||
- args:
|
||||
name: bodyshop
|
||||
table:
|
||||
name: associations
|
||||
schema: public
|
||||
using:
|
||||
foreign_key_constraint_on: shopid
|
||||
type: create_object_relationship
|
||||
- args:
|
||||
name: associations
|
||||
table:
|
||||
name: bodyshops
|
||||
schema: public
|
||||
using:
|
||||
foreign_key_constraint_on:
|
||||
column: shopid
|
||||
table:
|
||||
name: associations
|
||||
schema: public
|
||||
type: create_array_relationship
|
||||
- args:
|
||||
name: associations
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
using:
|
||||
foreign_key_constraint_on:
|
||||
column: useremail
|
||||
table:
|
||||
name: associations
|
||||
schema: public
|
||||
type: create_array_relationship
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: DROP TABLE "public"."jobs"
|
||||
type: run_sql
|
||||
@@ -1,19 +0,0 @@
|
||||
- args:
|
||||
sql: CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||
type: run_sql
|
||||
- args:
|
||||
sql: "CREATE TABLE \"public\".\"jobs\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(),
|
||||
\"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz
|
||||
NOT NULL DEFAULT now(), \"shopid\" uuid NOT NULL, \"est_number\" text NOT NULL,
|
||||
PRIMARY KEY (\"id\") , FOREIGN KEY (\"shopid\") REFERENCES \"public\".\"bodyshops\"(\"id\")
|
||||
ON UPDATE restrict ON DELETE restrict);\nCREATE OR REPLACE FUNCTION \"public\".\"set_current_timestamp_updated_at\"()\nRETURNS
|
||||
TRIGGER AS $$\nDECLARE\n _new record;\nBEGIN\n _new := NEW;\n _new.\"updated_at\"
|
||||
= NOW();\n RETURN _new;\nEND;\n$$ LANGUAGE plpgsql;\nCREATE TRIGGER \"set_public_jobs_updated_at\"\nBEFORE
|
||||
UPDATE ON \"public\".\"jobs\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT
|
||||
ON TRIGGER \"set_public_jobs_updated_at\" ON \"public\".\"jobs\" \nIS 'trigger
|
||||
to set value of column \"updated_at\" to current timestamp on row update';\n"
|
||||
type: run_sql
|
||||
- args:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: add_existing_table_or_view
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
@@ -1,13 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- authid
|
||||
- email
|
||||
filter: {}
|
||||
limit: null
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
@@ -1,13 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
columns: []
|
||||
filter: {}
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -1,17 +0,0 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns: []
|
||||
computed_fields: []
|
||||
filter: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,19 +0,0 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- key
|
||||
- value
|
||||
computed_fields: []
|
||||
filter: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,12 +0,0 @@
|
||||
- args:
|
||||
relationship: jobs
|
||||
table:
|
||||
name: bodyshops
|
||||
schema: public
|
||||
type: drop_relationship
|
||||
- args:
|
||||
relationship: bodyshop
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_relationship
|
||||
@@ -1,20 +0,0 @@
|
||||
- args:
|
||||
name: jobs
|
||||
table:
|
||||
name: bodyshops
|
||||
schema: public
|
||||
using:
|
||||
foreign_key_constraint_on:
|
||||
column: shopid
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_array_relationship
|
||||
- args:
|
||||
name: bodyshop
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
using:
|
||||
foreign_key_constraint_on: shopid
|
||||
type: create_object_relationship
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
@@ -1,24 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_upsert: true
|
||||
check:
|
||||
bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
columns:
|
||||
- id
|
||||
- created_at
|
||||
- updated_at
|
||||
- shopid
|
||||
- est_number
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
@@ -1,21 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- est_number
|
||||
- created_at
|
||||
- updated_at
|
||||
- id
|
||||
- shopid
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
limit: null
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
@@ -1,23 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
columns:
|
||||
- est_number
|
||||
- created_at
|
||||
- updated_at
|
||||
- id
|
||||
- shopid
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_delete_permission
|
||||
@@ -1,13 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_delete_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: bodyshops
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
@@ -1,17 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- id
|
||||
- shopname
|
||||
filter:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
limit: null
|
||||
role: user
|
||||
table:
|
||||
name: bodyshops
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: bodyshops
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
@@ -1,18 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
columns:
|
||||
- shopname
|
||||
filter:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: bodyshops
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: associations
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
@@ -1,17 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- id
|
||||
- shopid
|
||||
- useremail
|
||||
filter:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
limit: null
|
||||
role: user
|
||||
table:
|
||||
name: associations
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
@@ -1,11 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns: []
|
||||
filter: {}
|
||||
limit: null
|
||||
role: user
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,17 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns: []
|
||||
computed_fields: []
|
||||
filter: {}
|
||||
role: user
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,19 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- key
|
||||
- value
|
||||
computed_fields: []
|
||||
filter: {}
|
||||
role: user
|
||||
table:
|
||||
name: masterdata
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
@@ -1,18 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_upsert: true
|
||||
check: {}
|
||||
columns:
|
||||
- authid
|
||||
- created_at
|
||||
- email
|
||||
- updated_at
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -1,19 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
- args:
|
||||
permission:
|
||||
columns: []
|
||||
filter: {}
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -1,23 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
- args:
|
||||
permission:
|
||||
columns:
|
||||
- email
|
||||
- authid
|
||||
- created_at
|
||||
- updated_at
|
||||
filter: {}
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -1,19 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- authid
|
||||
- email
|
||||
computed_fields: []
|
||||
filter: {}
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,21 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- authid
|
||||
- email
|
||||
- created_at
|
||||
- updated_at
|
||||
computed_fields: []
|
||||
filter: {}
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
@@ -1,14 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_upsert: true
|
||||
check: {}
|
||||
columns: []
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -1,19 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
- args:
|
||||
permission:
|
||||
check: {}
|
||||
columns: []
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -1,23 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
- args:
|
||||
permission:
|
||||
check: {}
|
||||
columns:
|
||||
- authid
|
||||
- email
|
||||
- created_at
|
||||
- updated_at
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
@@ -1,13 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
columns: []
|
||||
filter: {}
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
@@ -1,11 +0,0 @@
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns: []
|
||||
filter: {}
|
||||
limit: null
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,17 +0,0 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns: []
|
||||
computed_fields: []
|
||||
filter: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,21 +0,0 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- authid
|
||||
- email
|
||||
- created_at
|
||||
- updated_at
|
||||
computed_fields: []
|
||||
filter: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,19 +0,0 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
- args:
|
||||
permission:
|
||||
columns: []
|
||||
filter: {}
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -1,23 +0,0 @@
|
||||
- args:
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
- args:
|
||||
permission:
|
||||
columns:
|
||||
- authid
|
||||
- email
|
||||
- created_at
|
||||
- updated_at
|
||||
filter: {}
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: anonymous
|
||||
table:
|
||||
name: users
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."associations" DROP COLUMN "active";
|
||||
type: run_sql
|
||||
@@ -1,4 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."associations" ADD COLUMN "active" boolean NOT NULL
|
||||
DEFAULT true;
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "created_at";
|
||||
type: run_sql
|
||||
@@ -1,4 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "created_at" timestamptz NULL
|
||||
DEFAULT now();
|
||||
type: run_sql
|
||||
@@ -1,5 +0,0 @@
|
||||
- args:
|
||||
sql: |-
|
||||
DROP TRIGGER IF EXISTS "set_public_bodyshops_updated_at" ON "public"."bodyshops";
|
||||
ALTER TABLE "public"."bodyshops" DROP COLUMN "updated_at";
|
||||
type: run_sql
|
||||
@@ -1,9 +0,0 @@
|
||||
- args:
|
||||
sql: "ALTER TABLE \"public\".\"bodyshops\" ADD COLUMN \"updated_at\" timestamptz
|
||||
NULL DEFAULT now();\n\nCREATE OR REPLACE FUNCTION \"public\".\"set_current_timestamp_updated_at\"()\nRETURNS
|
||||
TRIGGER AS $$\nDECLARE\n _new record;\nBEGIN\n _new := NEW;\n _new.\"updated_at\"
|
||||
= NOW();\n RETURN _new;\nEND;\n$$ LANGUAGE plpgsql;\nCREATE TRIGGER \"set_public_bodyshops_updated_at\"\nBEFORE
|
||||
UPDATE ON \"public\".\"bodyshops\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT
|
||||
ON TRIGGER \"set_public_bodyshops_updated_at\" ON \"public\".\"bodyshops\" \nIS
|
||||
'trigger to set value of column \"updated_at\" to current timestamp on row update';\n"
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "address1";
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "address1" text NULL;
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "address2";
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "address2" text NULL;
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "city";
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "city" text NULL;
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "state";
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "state" text NULL;
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "zip_post";
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "zip_post" text NULL;
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "country";
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "country" text NULL;
|
||||
type: run_sql
|
||||
@@ -1,29 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
- args:
|
||||
permission:
|
||||
check:
|
||||
bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
columns:
|
||||
- id
|
||||
- created_at
|
||||
- updated_at
|
||||
- shopid
|
||||
- est_number
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -1,34 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_insert_permission
|
||||
- args:
|
||||
permission:
|
||||
check:
|
||||
_and:
|
||||
- bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- bodyshop:
|
||||
associations:
|
||||
active:
|
||||
_eq: true
|
||||
columns:
|
||||
- id
|
||||
- created_at
|
||||
- updated_at
|
||||
- shopid
|
||||
- est_number
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_insert_permission
|
||||
@@ -1,27 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- est_number
|
||||
- created_at
|
||||
- updated_at
|
||||
- id
|
||||
- shopid
|
||||
computed_fields: []
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,32 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_select_permission
|
||||
- args:
|
||||
permission:
|
||||
allow_aggregations: false
|
||||
columns:
|
||||
- est_number
|
||||
- created_at
|
||||
- updated_at
|
||||
- id
|
||||
- shopid
|
||||
computed_fields: []
|
||||
filter:
|
||||
_and:
|
||||
- bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- bodyshop:
|
||||
associations:
|
||||
active:
|
||||
_eq: true
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_select_permission
|
||||
@@ -1,29 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
- args:
|
||||
permission:
|
||||
columns:
|
||||
- est_number
|
||||
- created_at
|
||||
- updated_at
|
||||
- id
|
||||
- shopid
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -1,34 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_update_permission
|
||||
- args:
|
||||
permission:
|
||||
columns:
|
||||
- est_number
|
||||
- created_at
|
||||
- updated_at
|
||||
- id
|
||||
- shopid
|
||||
filter:
|
||||
_and:
|
||||
- bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- bodyshop:
|
||||
associations:
|
||||
active:
|
||||
_eq: true
|
||||
localPresets:
|
||||
- key: ""
|
||||
value: ""
|
||||
set: {}
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_update_permission
|
||||
@@ -1,19 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_delete_permission
|
||||
- args:
|
||||
permission:
|
||||
filter:
|
||||
bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_delete_permission
|
||||
@@ -1,24 +0,0 @@
|
||||
- args:
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: drop_delete_permission
|
||||
- args:
|
||||
permission:
|
||||
filter:
|
||||
_and:
|
||||
- bodyshop:
|
||||
associations:
|
||||
user:
|
||||
authid:
|
||||
_eq: X-Hasura-User-Id
|
||||
- bodyshop:
|
||||
associations:
|
||||
active:
|
||||
_eq: true
|
||||
role: user
|
||||
table:
|
||||
name: jobs
|
||||
schema: public
|
||||
type: create_delete_permission
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."jobs" DROP COLUMN "ro_number";
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."jobs" ADD COLUMN "ro_number" text NULL;
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "email";
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "email" text NULL;
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "tax_id";
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "tax_id" text NULL;
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "insurance_vendor_id";
|
||||
type: run_sql
|
||||
@@ -1,3 +0,0 @@
|
||||
- args:
|
||||
sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "insurance_vendor_id" text NULL;
|
||||
type: run_sql
|
||||
@@ -1,6 +0,0 @@
|
||||
- args:
|
||||
sql: COMMENT ON COLUMN "public"."bodyshops"."tax_id" IS E'null'
|
||||
type: run_sql
|
||||
- args:
|
||||
sql: alter table "public"."bodyshops" rename column "federal_tax_id" to "tax_id";
|
||||
type: run_sql
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user