15
README.MD
15
README.MD
@@ -1,24 +1,21 @@
|
|||||||
React App:
|
|
||||||
|
|
||||||
Yarn Dependency Management:
|
Yarn Dependency Management:
|
||||||
To force upgrades for some packages:
|
To force upgrades for some packages:
|
||||||
yarn upgrade-interactive --latest
|
yarn upgrade-interactive --latest
|
||||||
|
|
||||||
To Start Hasura CLI:
|
To Start Hasura CLI:
|
||||||
npx hasura console --admin-secret Dev-BodyShopAppBySnaptSoftware!
|
npx hasura console
|
||||||
|
|
||||||
Migrating to Staging:
|
Migrating to Staging:
|
||||||
npx hasura migrate apply --endpoint https://db.imex.online/ --admin-secret 'Production-ImEXOnline!@#'
|
npx hasura migrate apply --endpoint https://db.imex.online/ --admin-secret 'Production-ImEXOnline!@#'
|
||||||
|
npx hasura migrate apply --endpoint https://db.test.bodyshop.app/ --admin-secret 'Test-ImEXOnlineBySnaptSoftware!'
|
||||||
|
|
||||||
NGROK TEsting:
|
NGROK TEsting:
|
||||||
|
|
||||||
./ngrok.exe http http://localhost:5000 -host-header="localhost:5000"
|
./ngrok.exe http http://localhost:5000 -host-header="localhost:5000"
|
||||||
|
|
||||||
Finding deadfiles - run from client directory
|
Finding deadfiles - run from client directory
|
||||||
npx deadfile ./src/index.js --exclude build templates
|
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 ..
|
#Crushing all hasura migrations by creating a new initialization from the server.
|
||||||
|
hasura migrate create "Init" --from-server --endpoint https://db.imex.online/ --admin-secret 'Production-ImEXOnline!@#'
|
||||||
gq https://bodyshop-dev-db.herokuapp.com/v1/graphql -H "X-Hasura-Admin-Secret: Dev-BodyShopAppBySnaptSoftware\!" --introspect > schema.graphql
|
hasura migrate apply --version "1620771761757" --skip-execution --endpoint https://db.imex.online/ --admin-secret 'Production-ImEXOnline!@#'
|
||||||
|
hasura migrate status --endpoint https://db.imex.online/ --admin-secret 'Production-ImEXOnline!@#'
|
||||||
npx hasura migrate apply --endpoint https://db.test.bodyshop.app/ --admin-secret 'Test-ImEXOnlineBySnaptSoftware!'
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
# install node.js
|
# install node.js
|
||||||
|
|
||||||
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
||||||
|
|
||||||
# you may need to reopen terminal
|
# you may need to reopen terminal
|
||||||
|
|
||||||
nvm install 8.11.3
|
nvm install 8.11.3
|
||||||
|
|
||||||
mkdir jsreportapp
|
mkdir jsreportapp
|
||||||
@@ -10,6 +13,7 @@ jsreport init
|
|||||||
jsreport configure
|
jsreport configure
|
||||||
|
|
||||||
# chrome dependencies
|
# chrome dependencies
|
||||||
|
|
||||||
sudo apt-get install -y libgconf-2-4
|
sudo apt-get install -y libgconf-2-4
|
||||||
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
||||||
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
|
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
|
||||||
@@ -17,24 +21,29 @@ sudo apt-get update
|
|||||||
sudo apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst --no-install-recommends
|
sudo apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst --no-install-recommends
|
||||||
|
|
||||||
# on ubuntu 20 run also
|
# on ubuntu 20 run also
|
||||||
|
|
||||||
sudo apt-get install -y libxtst6 libxss1
|
sudo apt-get install -y libxtst6 libxss1
|
||||||
|
|
||||||
# start jsreport to see it running on port 5488
|
# start jsreport to see it running on port 5488
|
||||||
|
|
||||||
jsreport start
|
jsreport start
|
||||||
|
|
||||||
# the next steps are optional to start jsreport on boot
|
# the next steps are optional to start jsreport on boot
|
||||||
|
|
||||||
npm install pm2 -g
|
npm install pm2 -g
|
||||||
pm2 start server.js
|
pm2 start server.js
|
||||||
pm2 startup
|
pm2 startup
|
||||||
|
|
||||||
# run the output of previous command
|
# run the output of previous command
|
||||||
|
|
||||||
# optionally if you want to use older phantomjs for pdf rendering
|
# optionally if you want to use older phantomjs for pdf rendering
|
||||||
|
|
||||||
sudo apt-get install -y --no-install-recommends gnupg git curl wget ca-certificates
|
sudo apt-get install -y --no-install-recommends gnupg git curl wget ca-certificates
|
||||||
sudo apt-get install -y --no-install-recommends xfonts-base xfonts-75dpi
|
sudo apt-get install -y --no-install-recommends xfonts-base xfonts-75dpi
|
||||||
npm i jsreport-phantom-pdf --save --save-exact
|
npm i jsreport-phantom-pdf --save --save-exact
|
||||||
|
|
||||||
Running on port 80 and 443 without SU
|
Running on port 80 and 443 without SU
|
||||||
$ setcap 'cap_net_bind_service=+ep' /path/to/.nvm/v0.10.17/bin/node
|
$ setcap 'cap_net_bind_service=+ep' /usr/bin/node
|
||||||
$ apt-get remove nginx
|
$ apt-get remove nginx
|
||||||
$ cd /path/to/app
|
$ cd /path/to/app
|
||||||
$ PORT=80 node app
|
$ PORT=80 node app
|
||||||
|
|||||||
@@ -22,3 +22,36 @@ CREATE EXTENSION pg_trgm
|
|||||||
|
|
||||||
Run SQL from PG Dump
|
Run SQL from PG Dump
|
||||||
Import hasura metadata.
|
Import hasura metadata.
|
||||||
|
|
||||||
|
//Done before IO BETA Release
|
||||||
|
Step 1: Nuke local migrations
|
||||||
|
Delete all the contents of your local migrations directory.
|
||||||
|
|
||||||
|
$ rm migrations/\*
|
||||||
|
Step 2: Reset the migration history on server
|
||||||
|
On the SQL tab of console, execute the following statement:
|
||||||
|
|
||||||
|
TRUNCATE hdb_catalog.schema_migrations;
|
||||||
|
Step 3: Pull the schema and metadata from server
|
||||||
|
Setup fresh migrations by taking the schema and metadata from the server:
|
||||||
|
|
||||||
|
## (available after version alpha45)
|
||||||
|
|
||||||
|
## create migration files (note that this will only export public schema from postgres)
|
||||||
|
|
||||||
|
$ hasura migrate create "init" --from-server
|
||||||
|
|
||||||
|
## note down the version
|
||||||
|
|
||||||
|
## mark the migration as applied on this server
|
||||||
|
|
||||||
|
$ hasura migrate apply --version "<version>" --skip-execution
|
||||||
|
If you are using schemas other than public, use --schema "schema_name" flag to indicate each one of them in the create command. This flag can be used multiple times. See more details about the usage in the docs.
|
||||||
|
|
||||||
|
Step 4: Verify the status
|
||||||
|
Execute the following command to verify status of migration:
|
||||||
|
|
||||||
|
$ hasura migrate status
|
||||||
|
You have brand new migrations now!
|
||||||
|
|
||||||
|
This can also be used to combine (kind of squash) all of your migration files into a single one. You're snapshotting the state of a server and adding it as a new migration.
|
||||||
|
|||||||
30
_reference/test api setup.md
Normal file
30
_reference/test api setup.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
Clone Repository for:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"name": "node-webhook-scripts",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"main": "index.js",
|
||||||
|
"dependencies": {
|
||||||
|
"express": "^4.16.4"
|
||||||
|
},
|
||||||
|
"license": "SEE LICENCE IN LICENCE.md",
|
||||||
|
"author": {
|
||||||
|
"name": "Alexandre Pénombre",
|
||||||
|
"email": "alexandre.penombre@gmail.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
hooks.js:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
module.exports = [
|
||||||
|
{
|
||||||
|
path: "/pull",
|
||||||
|
command: "git pull && npm i",
|
||||||
|
cwd: "/home/ubuntu/io/",
|
||||||
|
method: "post",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
```
|
||||||
20
_reference/test-ecoystem.config.js
Normal file
20
_reference/test-ecoystem.config.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
module.exports = {
|
||||||
|
apps: [
|
||||||
|
{
|
||||||
|
name: "IO Test API",
|
||||||
|
cwd: "./io",
|
||||||
|
script: "./server.js",
|
||||||
|
env: {
|
||||||
|
NODE_ENV: "test",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name: "Bitbucket Webhook",
|
||||||
|
script: "./webhook/index.js",
|
||||||
|
env: {
|
||||||
|
NODE_ENV: "production",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -30799,7 +30799,7 @@
|
|||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>job_costing_estimator</name>
|
<name>job_costing_ro_estimator</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
<description></description>
|
<description></description>
|
||||||
<comment></comment>
|
<comment></comment>
|
||||||
|
|||||||
@@ -444,6 +444,7 @@ export function BillEnterModalLinesComponent({
|
|||||||
dataSource={fields}
|
dataSource={fields}
|
||||||
columns={mergedColumns(remove)}
|
columns={mergedColumns(remove)}
|
||||||
scroll={{ x: true }}
|
scroll={{ x: true }}
|
||||||
|
pagination={false}
|
||||||
rowClassName="editable-row"
|
rowClassName="editable-row"
|
||||||
/>
|
/>
|
||||||
<Form.Item>
|
<Form.Item>
|
||||||
|
|||||||
@@ -51,7 +51,9 @@ const VendorSearchSelect = (
|
|||||||
<div className="imex-flex-row">
|
<div className="imex-flex-row">
|
||||||
<div style={{ flex: 1 }}>{o.name}</div>
|
<div style={{ flex: 1 }}>{o.name}</div>
|
||||||
<HeartOutlined />
|
<HeartOutlined />
|
||||||
<Tag color="green">{`${o.discount * 100}%`}</Tag>
|
{o.discount && o.discount !== 0 ? (
|
||||||
|
<Tag color="green">{`${o.discount * 100}%`}</Tag>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
</Option>
|
</Option>
|
||||||
))
|
))
|
||||||
@@ -62,9 +64,9 @@ const VendorSearchSelect = (
|
|||||||
<div className="imex-flex-row" style={{ width: "100%" }}>
|
<div className="imex-flex-row" style={{ width: "100%" }}>
|
||||||
<div style={{ flex: 1 }}>{o.name}</div>
|
<div style={{ flex: 1 }}>{o.name}</div>
|
||||||
|
|
||||||
{o.discount && (
|
{o.discount && o.discount !== 0 ? (
|
||||||
<Tag color="green">{`${o.discount * 100}%`}</Tag>
|
<Tag color="green">{`${o.discount * 100}%`}</Tag>
|
||||||
)}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
</Option>
|
</Option>
|
||||||
))
|
))
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -745,11 +745,11 @@ export const TemplateList = (type, context) => {
|
|||||||
field: i18n.t("jobs.fields.date_invoiced"),
|
field: i18n.t("jobs.fields.date_invoiced"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
job_costing_estimator: {
|
job_costing_ro_estimator: {
|
||||||
title: i18n.t("reportcenter.templates.job_costing_estimator"),
|
title: i18n.t("reportcenter.templates.job_costing_ro_estimator"),
|
||||||
description: "",
|
description: "",
|
||||||
subject: i18n.t("reportcenter.templates.job_costing_estimator"),
|
subject: i18n.t("reportcenter.templates.job_costing_ro_estimator"),
|
||||||
key: "job_costing_estimator",
|
key: "job_costing_ro_estimator",
|
||||||
//idtype: "vendor",
|
//idtype: "vendor",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
rangeFilter: {
|
rangeFilter: {
|
||||||
|
|||||||
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
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user