diff --git a/README.MD b/README.MD index 8e5a4f570..079f153e8 100644 --- a/README.MD +++ b/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!' diff --git a/hasura/backups/dump-db62dpegj5roh3-202009221434.sql b/hasura/backups/dump-db62dpegj5roh3-202009221434.sql deleted file mode 100644 index 6c89df762..000000000 Binary files a/hasura/backups/dump-db62dpegj5roh3-202009221434.sql and /dev/null differ diff --git a/hasura/hasura_metadata_2020_09_22_14_25_15_367.json b/hasura/hasura_metadata_2020_09_22_14_25_15_367.json deleted file mode 100644 index 11d1a73c6..000000000 --- a/hasura/hasura_metadata_2020_09_22_14_25_15_367.json +++ /dev/null @@ -1,6540 +0,0 @@ -{ - "version": 2, - "tables": [ - { - "table": { - "schema": "public", - "name": "allocations" - }, - "object_relationships": [ - { - "name": "employee", - "using": { - "foreign_key_constraint_on": "employeeid" - } - }, - { - "name": "jobline", - "using": { - "foreign_key_constraint_on": "joblineid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "jobline": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - }, - "columns": [ - "hours", - "created_at", - "updated_at", - "employeeid", - "id", - "joblineid" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "hours", - "created_at", - "updated_at", - "employeeid", - "id", - "joblineid" - ], - "filter": { - "jobline": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [], - "filter": { - "jobline": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "jobline": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "appointments" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "bodyshopid" - } - }, - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "arrived", - "block", - "bodyshopid", - "canceled", - "created_at", - "end", - "id", - "isintake", - "jobid", - "start", - "title", - "updated_at" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "arrived", - "block", - "bodyshopid", - "canceled", - "created_at", - "end", - "id", - "isintake", - "jobid", - "start", - "title", - "updated_at" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "arrived", - "block", - "bodyshopid", - "canceled", - "created_at", - "end", - "id", - "isintake", - "jobid", - "start", - "title", - "updated_at" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "associations" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "shopid" - } - }, - { - "name": "user", - "using": { - "foreign_key_constraint_on": "useremail" - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "active", - "authlevel", - "id", - "shopid", - "useremail" - ], - "filter": { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "active" - ], - "filter": { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - "check": null - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "audit_trail" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "bodyshopid" - } - }, - { - "name": "user", - "using": { - "foreign_key_constraint_on": "useremail" - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "id", - "new_val", - "old_val", - "operation", - "schemaname", - "tabname", - "useremail", - "created", - "bodyshopid", - "recordid" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "available_jobs" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "bodyshopid" - } - }, - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "id", - "created_at", - "updated_at", - "uploaded_by", - "cieca_id", - "bodyshopid", - "est_data", - "issupplement", - "jobid", - "supplement_number", - "ownr_name", - "vehicle_info", - "clm_amt", - "clm_no", - "source_system" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "issupplement", - "supplement_number", - "est_data", - "clm_amt", - "cieca_id", - "clm_no", - "ownr_name", - "source_system", - "uploaded_by", - "vehicle_info", - "created_at", - "updated_at", - "bodyshopid", - "id", - "jobid" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "cieca_id", - "clm_amt", - "est_data", - "issupplement", - "ownr_name", - "source_system", - "supplement_number", - "uploaded_by", - "vehicle_info" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "bodyshops" - }, - "array_relationships": [ - { - "name": "appointments", - "using": { - "foreign_key_constraint_on": { - "column": "bodyshopid", - "table": { - "schema": "public", - "name": "appointments" - } - } - } - }, - { - "name": "associations", - "using": { - "foreign_key_constraint_on": { - "column": "shopid", - "table": { - "schema": "public", - "name": "associations" - } - } - } - }, - { - "name": "audit_trails", - "using": { - "foreign_key_constraint_on": { - "column": "bodyshopid", - "table": { - "schema": "public", - "name": "audit_trail" - } - } - } - }, - { - "name": "available_jobs", - "using": { - "foreign_key_constraint_on": { - "column": "bodyshopid", - "table": { - "schema": "public", - "name": "available_jobs" - } - } - } - }, - { - "name": "conversations", - "using": { - "foreign_key_constraint_on": { - "column": "bodyshopid", - "table": { - "schema": "public", - "name": "conversations" - } - } - } - }, - { - "name": "counters", - "using": { - "foreign_key_constraint_on": { - "column": "shopid", - "table": { - "schema": "public", - "name": "counters" - } - } - } - }, - { - "name": "courtesycars", - "using": { - "foreign_key_constraint_on": { - "column": "bodyshopid", - "table": { - "schema": "public", - "name": "courtesycars" - } - } - } - }, - { - "name": "csiinvites", - "using": { - "foreign_key_constraint_on": { - "column": "bodyshopid", - "table": { - "schema": "public", - "name": "csi" - } - } - } - }, - { - "name": "csiquestions", - "using": { - "foreign_key_constraint_on": { - "column": "bodyshopid", - "table": { - "schema": "public", - "name": "csiquestions" - } - } - } - }, - { - "name": "employees", - "using": { - "foreign_key_constraint_on": { - "column": "shopid", - "table": { - "schema": "public", - "name": "employees" - } - } - } - }, - { - "name": "jobs", - "using": { - "foreign_key_constraint_on": { - "column": "shopid", - "table": { - "schema": "public", - "name": "jobs" - } - } - } - }, - { - "name": "owners", - "using": { - "foreign_key_constraint_on": { - "column": "shopid", - "table": { - "schema": "public", - "name": "owners" - } - } - } - }, - { - "name": "templates", - "using": { - "foreign_key_constraint_on": { - "column": "bodyshopid", - "table": { - "schema": "public", - "name": "templates" - } - } - } - }, - { - "name": "timetickets", - "using": { - "foreign_key_constraint_on": { - "column": "bodyshopid", - "table": { - "schema": "public", - "name": "timetickets" - } - } - } - }, - { - "name": "vehicles", - "using": { - "foreign_key_constraint_on": { - "column": "shopid", - "table": { - "schema": "public", - "name": "vehicles" - } - } - } - }, - { - "name": "vendors", - "using": { - "foreign_key_constraint_on": { - "column": "bodyshopid", - "table": { - "schema": "public", - "name": "vendors" - } - } - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "accountingconfig", - "address1", - "address2", - "appt_length", - "city", - "country", - "created_at", - "deliverchecklist", - "email", - "enforce_class", - "federal_tax_id", - "id", - "inhousevendorid", - "insurance_vendor_id", - "intakechecklist", - "invoice_tax_rates", - "logo_img_path", - "md_categories", - "md_classes", - "md_ins_cos", - "md_labor_rates", - "md_messaging_presets", - "md_notes_presets", - "md_order_statuses", - "md_parts_locations", - "md_rbac", - "md_referral_sources", - "md_responsibility_centers", - "md_ro_statuses", - "messagingservicesid", - "phone", - "prodtargethrs", - "production_config", - "region_config", - "scoreboard_target", - "shopname", - "shoprates", - "speedprint", - "ssbuckets", - "state", - "state_tax_id", - "stripe_acct_id", - "target_touchtime", - "template_header", - "textid", - "updated_at", - "zip_post" - ], - "filter": { - "associations": { - "bodyshop": { - "associations": { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - } - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "accountingconfig", - "address1", - "address2", - "appt_length", - "city", - "country", - "created_at", - "deliverchecklist", - "email", - "enforce_class", - "federal_tax_id", - "id", - "inhousevendorid", - "insurance_vendor_id", - "intakechecklist", - "invoice_tax_rates", - "logo_img_path", - "md_categories", - "md_classes", - "md_ins_cos", - "md_labor_rates", - "md_messaging_presets", - "md_notes_presets", - "md_order_statuses", - "md_parts_locations", - "md_rbac", - "md_referral_sources", - "md_responsibility_centers", - "md_ro_statuses", - "phone", - "prodtargethrs", - "production_config", - "scoreboard_target", - "shopname", - "shoprates", - "speedprint", - "ssbuckets", - "state", - "state_tax_id", - "target_touchtime", - "updated_at", - "zip_post" - ], - "filter": { - "associations": { - "bodyshop": { - "associations": { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - } - } - } - }, - "check": null - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "cccontracts" - }, - "object_relationships": [ - { - "name": "courtesycar", - "using": { - "foreign_key_constraint_on": "courtesycarid" - } - }, - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "courtesycar": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "columns": [ - "id", - "created_at", - "updated_at", - "agreementnumber", - "courtesycarid", - "jobid", - "status", - "start", - "scheduledreturn", - "actualreturn", - "kmstart", - "kmend", - "driver_dlnumber", - "driver_dlexpiry", - "driver_dlst", - "driver_fn", - "driver_ln", - "driver_addr1", - "driver_addr2", - "driver_city", - "driver_state", - "driver_zip", - "driver_ph1", - "driver_dob", - "cc_num", - "cc_expiry", - "cc_cardholder", - "contract_date", - "dailyrate", - "actax", - "dailyfreekm", - "refuelcharge", - "excesskmrate", - "cleanupcharge", - "damagewaiver", - "federaltax", - "statetax", - "localtax", - "coverage" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "contract_date", - "driver_dlexpiry", - "driver_dob", - "agreementnumber", - "dailyfreekm", - "actax", - "cleanupcharge", - "coverage", - "dailyrate", - "damagewaiver", - "excesskmrate", - "federaltax", - "kmend", - "kmstart", - "localtax", - "refuelcharge", - "statetax", - "cc_cardholder", - "cc_expiry", - "cc_num", - "driver_addr1", - "driver_addr2", - "driver_city", - "driver_dlnumber", - "driver_dlst", - "driver_fn", - "driver_ln", - "driver_ph1", - "driver_state", - "driver_zip", - "status", - "actualreturn", - "created_at", - "scheduledreturn", - "start", - "updated_at", - "courtesycarid", - "id", - "jobid" - ], - "filter": { - "courtesycar": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "contract_date", - "driver_dlexpiry", - "driver_dob", - "agreementnumber", - "dailyfreekm", - "actax", - "cleanupcharge", - "coverage", - "dailyrate", - "damagewaiver", - "excesskmrate", - "federaltax", - "kmend", - "kmstart", - "localtax", - "refuelcharge", - "statetax", - "cc_cardholder", - "cc_expiry", - "cc_num", - "driver_addr1", - "driver_addr2", - "driver_city", - "driver_dlnumber", - "driver_dlst", - "driver_fn", - "driver_ln", - "driver_ph1", - "driver_state", - "driver_zip", - "status", - "actualreturn", - "created_at", - "scheduledreturn", - "start", - "updated_at", - "courtesycarid", - "id", - "jobid" - ], - "filter": { - "courtesycar": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "courtesycar": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "conversations" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "bodyshopid" - } - } - ], - "array_relationships": [ - { - "name": "job_conversations", - "using": { - "foreign_key_constraint_on": { - "column": "conversationid", - "table": { - "schema": "public", - "name": "job_conversations" - } - } - } - }, - { - "name": "messages", - "using": { - "foreign_key_constraint_on": { - "column": "conversationid", - "table": { - "schema": "public", - "name": "messages" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "id", - "created_at", - "updated_at", - "bodyshopid", - "phone_num" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "phone_num", - "created_at", - "updated_at", - "bodyshopid", - "id" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "phone_num", - "created_at", - "updated_at", - "bodyshopid", - "id" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "counters" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "shopid" - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "courtesycars" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "bodyshopid" - } - } - ], - "array_relationships": [ - { - "name": "cccontracts", - "using": { - "foreign_key_constraint_on": { - "column": "courtesycarid", - "table": { - "schema": "public", - "name": "cccontracts" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "id", - "created_at", - "updated_at", - "bodyshopid", - "make", - "model", - "year", - "plate", - "color", - "vin", - "fleetnumber", - "purchasedate", - "servicestartdate", - "serviceenddate", - "leaseenddate", - "status", - "nextservicekm", - "nextservicedate", - "damage", - "notes", - "fuel", - "registrationexpires", - "insuranceexpires", - "dailycost", - "mileage" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "insuranceexpires", - "leaseenddate", - "nextservicedate", - "purchasedate", - "registrationexpires", - "serviceenddate", - "servicestartdate", - "dailycost", - "fuel", - "mileage", - "nextservicekm", - "color", - "damage", - "fleetnumber", - "make", - "model", - "notes", - "plate", - "status", - "vin", - "year", - "created_at", - "updated_at", - "bodyshopid", - "id" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "insuranceexpires", - "leaseenddate", - "nextservicedate", - "purchasedate", - "registrationexpires", - "serviceenddate", - "servicestartdate", - "dailycost", - "fuel", - "mileage", - "nextservicekm", - "color", - "damage", - "fleetnumber", - "make", - "model", - "notes", - "plate", - "status", - "vin", - "year", - "created_at", - "updated_at", - "bodyshopid", - "id" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "csi" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "bodyshopid" - } - }, - { - "name": "csiquestion", - "using": { - "foreign_key_constraint_on": "questionset" - } - }, - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "bodyshopid", - "created_at", - "id", - "jobid", - "questionset", - "relateddata", - "updated_at", - "valid", - "validuntil" - ] - } - } - ], - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "id", - "relateddata", - "valid", - "validuntil" - ], - "filter": { - "valid": { - "_eq": true - } - }, - "limit": 1 - } - }, - { - "role": "user", - "permission": { - "columns": [ - "bodyshopid", - "completedon", - "created_at", - "id", - "jobid", - "questionset", - "relateddata", - "response", - "updated_at", - "valid", - "validuntil" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "completedon", - "response", - "valid" - ], - "filter": { - "valid": { - "_eq": true - } - }, - "check": null - } - }, - { - "role": "user", - "permission": { - "columns": [ - "bodyshopid", - "completedon", - "created_at", - "id", - "jobid", - "relateddata", - "updated_at", - "valid", - "validuntil" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "csiquestions" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "bodyshopid" - } - } - ], - "array_relationships": [ - { - "name": "csis", - "using": { - "foreign_key_constraint_on": { - "column": "questionset", - "table": { - "schema": "public", - "name": "csi" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "current", - "config", - "created_at", - "updated_at", - "bodyshopid", - "id" - ] - } - } - ], - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "config", - "id" - ], - "filter": {}, - "limit": 1 - } - }, - { - "role": "user", - "permission": { - "columns": [ - "current", - "config", - "created_at", - "updated_at", - "bodyshopid", - "id" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "current" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "documents" - }, - "object_relationships": [ - { - "name": "invoice", - "using": { - "foreign_key_constraint_on": "invoiceid" - } - }, - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "columns": [ - "id", - "created_at", - "updated_at", - "uploaded_by", - "jobid", - "name", - "key", - "invoiceid", - "type" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "key", - "name", - "type", - "uploaded_by", - "created_at", - "updated_at", - "id", - "invoiceid", - "jobid" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "employees" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "shopid" - } - }, - { - "name": "user", - "using": { - "foreign_key_constraint_on": "user_email" - } - } - ], - "array_relationships": [ - { - "name": "allocations", - "using": { - "foreign_key_constraint_on": { - "column": "employeeid", - "table": { - "schema": "public", - "name": "allocations" - } - } - } - }, - { - "name": "jobs", - "using": { - "foreign_key_constraint_on": { - "column": "employee_body", - "table": { - "schema": "public", - "name": "jobs" - } - } - } - }, - { - "name": "jobsByEmployeePrep", - "using": { - "foreign_key_constraint_on": { - "column": "employee_prep", - "table": { - "schema": "public", - "name": "jobs" - } - } - } - }, - { - "name": "jobsByEmployeeRefinish", - "using": { - "foreign_key_constraint_on": { - "column": "employee_refinish", - "table": { - "schema": "public", - "name": "jobs" - } - } - } - }, - { - "name": "timetickets", - "using": { - "foreign_key_constraint_on": { - "column": "employeeid", - "table": { - "schema": "public", - "name": "timetickets" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "active", - "base_rate", - "cost_center", - "created_at", - "employee_number", - "first_name", - "flat_rate", - "hire_date", - "id", - "last_name", - "pin", - "shopid", - "termination_date", - "updated_at", - "user_email" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "active", - "base_rate", - "cost_center", - "created_at", - "employee_number", - "first_name", - "flat_rate", - "hire_date", - "id", - "last_name", - "pin", - "shopid", - "termination_date", - "updated_at", - "user_email" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "active", - "base_rate", - "cost_center", - "created_at", - "employee_number", - "first_name", - "flat_rate", - "hire_date", - "id", - "last_name", - "pin", - "shopid", - "termination_date", - "updated_at", - "user_email" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "invoicelines" - }, - "object_relationships": [ - { - "name": "invoice", - "using": { - "foreign_key_constraint_on": "invoiceid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "invoice": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - }, - "columns": [ - "actual_cost", - "actual_price", - "applicable_taxes", - "cost_center", - "created_at", - "id", - "invoiceid", - "joblineid", - "line_desc", - "quantity", - "updated_at" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "actual_cost", - "actual_price", - "applicable_taxes", - "cost_center", - "created_at", - "id", - "invoiceid", - "joblineid", - "line_desc", - "quantity", - "updated_at" - ], - "filter": { - "invoice": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "actual_cost", - "actual_price", - "applicable_taxes", - "cost_center", - "created_at", - "id", - "invoiceid", - "joblineid", - "line_desc", - "quantity", - "updated_at" - ], - "filter": { - "invoice": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "invoice": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "invoices" - }, - "object_relationships": [ - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - }, - { - "name": "vendor", - "using": { - "foreign_key_constraint_on": "vendorid" - } - } - ], - "array_relationships": [ - { - "name": "documents", - "using": { - "foreign_key_constraint_on": { - "column": "invoiceid", - "table": { - "schema": "public", - "name": "documents" - } - } - } - }, - { - "name": "invoicelines", - "using": { - "foreign_key_constraint_on": { - "column": "invoiceid", - "table": { - "schema": "public", - "name": "invoicelines" - } - } - } - }, - { - "name": "parts_orders", - "using": { - "foreign_key_constraint_on": { - "column": "returnfrominvoice", - "table": { - "schema": "public", - "name": "parts_orders" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "columns": [ - "created_at", - "date", - "due_date", - "exported", - "exported_at", - "federal_tax_rate", - "id", - "invoice_number", - "is_credit_memo", - "jobid", - "local_tax_rate", - "state_tax_rate", - "total", - "updated_at", - "vendorid" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "created_at", - "date", - "due_date", - "exported", - "exported_at", - "federal_tax_rate", - "id", - "invoice_number", - "is_credit_memo", - "jobid", - "local_tax_rate", - "state_tax_rate", - "total", - "updated_at", - "vendorid" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "created_at", - "date", - "due_date", - "exported", - "exported_at", - "federal_tax_rate", - "id", - "invoice_number", - "is_credit_memo", - "jobid", - "local_tax_rate", - "state_tax_rate", - "total", - "updated_at", - "vendorid" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "check": null - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "job_conversations" - }, - "object_relationships": [ - { - "name": "conversation", - "using": { - "foreign_key_constraint_on": "conversationid" - } - }, - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "conversation": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "columns": [ - "jobid", - "conversationid" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "conversationid", - "jobid" - ], - "filter": { - "conversation": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "conversationid", - "jobid" - ], - "filter": { - "conversation": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "conversation": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "joblines" - }, - "object_relationships": [ - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - } - ], - "array_relationships": [ - { - "name": "allocations", - "using": { - "foreign_key_constraint_on": { - "column": "joblineid", - "table": { - "schema": "public", - "name": "allocations" - } - } - } - }, - { - "name": "parts_order_lines", - "using": { - "foreign_key_constraint_on": { - "column": "job_line_id", - "table": { - "schema": "public", - "name": "parts_order_lines" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "columns": [ - "act_price", - "alt_co_id", - "alt_overrd", - "alt_part_i", - "alt_partm", - "alt_partno", - "bett_amt", - "bett_pctg", - "bett_tax", - "bett_type", - "cert_part", - "created_at", - "db_hrs", - "db_price", - "db_ref", - "est_seq", - "glass_flag", - "id", - "jobid", - "lbr_amt", - "lbr_hrs_j", - "lbr_inc", - "lbr_op", - "lbr_op_j", - "lbr_tax", - "lbr_typ_j", - "line_desc", - "line_ind", - "line_no", - "line_ref", - "location", - "misc_amt", - "misc_sublt", - "misc_tax", - "mod_lb_hrs", - "mod_lbr_ty", - "notes", - "oem_partno", - "op_code_desc", - "paint_stg", - "paint_tone", - "part_qty", - "part_type", - "price_inc", - "price_j", - "profitcenter_labor", - "profitcenter_part", - "prt_dsmk_m", - "prt_dsmk_p", - "removed", - "status", - "tax_part", - "unq_seq", - "updated_at" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "act_price", - "alt_co_id", - "alt_overrd", - "alt_part_i", - "alt_partm", - "alt_partno", - "bett_amt", - "bett_pctg", - "bett_tax", - "bett_type", - "cert_part", - "created_at", - "db_hrs", - "db_price", - "db_ref", - "est_seq", - "glass_flag", - "id", - "jobid", - "lbr_amt", - "lbr_hrs_j", - "lbr_inc", - "lbr_op", - "lbr_op_j", - "lbr_tax", - "lbr_typ_j", - "line_desc", - "line_ind", - "line_no", - "line_ref", - "location", - "misc_amt", - "misc_sublt", - "misc_tax", - "mod_lb_hrs", - "mod_lbr_ty", - "notes", - "oem_partno", - "op_code_desc", - "paint_stg", - "paint_tone", - "part_qty", - "part_type", - "price_inc", - "price_j", - "profitcenter_labor", - "profitcenter_part", - "prt_dsmk_m", - "prt_dsmk_p", - "removed", - "status", - "tax_part", - "unq_seq", - "updated_at" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "act_price", - "alt_co_id", - "alt_overrd", - "alt_part_i", - "alt_partm", - "alt_partno", - "bett_amt", - "bett_pctg", - "bett_tax", - "bett_type", - "cert_part", - "created_at", - "db_hrs", - "db_price", - "db_ref", - "est_seq", - "glass_flag", - "id", - "jobid", - "lbr_amt", - "lbr_hrs_j", - "lbr_inc", - "lbr_op", - "lbr_op_j", - "lbr_tax", - "lbr_typ_j", - "line_desc", - "line_ind", - "line_no", - "line_ref", - "location", - "misc_amt", - "misc_sublt", - "misc_tax", - "mod_lb_hrs", - "mod_lbr_ty", - "notes", - "oem_partno", - "op_code_desc", - "paint_stg", - "paint_tone", - "part_qty", - "part_type", - "price_inc", - "price_j", - "profitcenter_labor", - "profitcenter_part", - "prt_dsmk_m", - "prt_dsmk_p", - "removed", - "status", - "tax_part", - "unq_seq", - "updated_at" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "joblines_status" - }, - "object_relationships": [ - { - "name": "job", - "using": { - "manual_configuration": { - "remote_table": { - "schema": "public", - "name": "jobs" - }, - "column_mapping": { - "jobid": "id" - } - } - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "jobid", - "status", - "count", - "part_type" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "jobs" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "shopid" - } - }, - { - "name": "employee_body_rel", - "using": { - "foreign_key_constraint_on": "employee_body" - } - }, - { - "name": "employee_prep_rel", - "using": { - "foreign_key_constraint_on": "employee_prep" - } - }, - { - "name": "employee_refinish_rel", - "using": { - "foreign_key_constraint_on": "employee_refinish" - } - }, - { - "name": "invoice", - "using": { - "manual_configuration": { - "remote_table": { - "schema": "public", - "name": "invoices" - }, - "column_mapping": { - "id": "jobid" - } - } - } - }, - { - "name": "owner", - "using": { - "foreign_key_constraint_on": "ownerid" - } - }, - { - "name": "vehicle", - "using": { - "foreign_key_constraint_on": "vehicleid" - } - } - ], - "array_relationships": [ - { - "name": "appointments", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "appointments" - } - } - } - }, - { - "name": "available_jobs", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "available_jobs" - } - } - } - }, - { - "name": "cccontracts", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "cccontracts" - } - } - } - }, - { - "name": "csiinvites", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "csi" - } - } - } - }, - { - "name": "documents", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "documents" - } - } - } - }, - { - "name": "invoices", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "invoices" - } - } - } - }, - { - "name": "job_conversations", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "job_conversations" - } - } - } - }, - { - "name": "joblines", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "joblines" - } - } - } - }, - { - "name": "joblines_status", - "using": { - "manual_configuration": { - "remote_table": { - "schema": "public", - "name": "joblines_status" - }, - "column_mapping": { - "id": "jobid" - } - } - } - }, - { - "name": "notes", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "notes" - } - } - } - }, - { - "name": "parts_orders", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "parts_orders" - } - } - } - }, - { - "name": "payments", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "payments" - } - } - } - }, - { - "name": "scoreboards", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "scoreboard" - } - } - } - }, - { - "name": "timetickets", - "using": { - "foreign_key_constraint_on": { - "column": "jobid", - "table": { - "schema": "public", - "name": "timetickets" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "actual_completion", - "actual_delivery", - "actual_in", - "adj_g_disc", - "adj_strdis", - "adj_towdis", - "adjustment_bottom_line", - "agt_addr1", - "agt_addr2", - "agt_city", - "agt_co_id", - "agt_co_nm", - "agt_ct_fn", - "agt_ct_ln", - "agt_ct_ph", - "agt_ct_phx", - "agt_ctry", - "agt_ea", - "agt_fax", - "agt_faxx", - "agt_lic_no", - "agt_ph1", - "agt_ph1x", - "agt_ph2", - "agt_ph2x", - "agt_st", - "agt_zip", - "area_of_damage", - "asgn_date", - "asgn_no", - "asgn_type", - "cat_no", - "category", - "cieca_stl", - "cieca_ttl", - "ciecaid", - "class", - "clm_addr1", - "clm_addr2", - "clm_city", - "clm_ct_fn", - "clm_ct_ln", - "clm_ct_ph", - "clm_ct_phx", - "clm_ctry", - "clm_ea", - "clm_fax", - "clm_faxx", - "clm_no", - "clm_ofc_id", - "clm_ofc_nm", - "clm_ph1", - "clm_ph1x", - "clm_ph2", - "clm_ph2x", - "clm_st", - "clm_title", - "clm_total", - "clm_zip", - "converted", - "created_at", - "csr", - "cust_pr", - "date_closed", - "date_estimated", - "date_exported", - "date_invoiced", - "date_open", - "date_scheduled", - "ded_amt", - "ded_status", - "deliverchecklist", - "depreciation_taxes", - "employee_body", - "employee_prep", - "employee_refinish", - "est_addr1", - "est_addr2", - "est_city", - "est_co_nm", - "est_ct_fn", - "est_ct_ln", - "est_ctry", - "est_ea", - "est_number", - "est_ph1", - "est_st", - "est_zip", - "federal_tax_payable", - "federal_tax_rate", - "g_bett_amt", - "id", - "inproduction", - "ins_addr1", - "ins_addr2", - "ins_city", - "ins_co_id", - "ins_co_nm", - "ins_ct_fn", - "ins_ct_ln", - "ins_ct_ph", - "ins_ct_phx", - "ins_ctry", - "ins_ea", - "ins_fax", - "ins_faxx", - "ins_memo", - "ins_ph1", - "ins_ph1x", - "ins_ph2", - "ins_ph2x", - "ins_st", - "ins_title", - "ins_zip", - "insd_addr1", - "insd_addr2", - "insd_city", - "insd_co_nm", - "insd_ctry", - "insd_ea", - "insd_fax", - "insd_faxx", - "insd_fn", - "insd_ln", - "insd_ph1", - "insd_ph1x", - "insd_ph2", - "insd_ph2x", - "insd_st", - "insd_title", - "insd_zip", - "intakechecklist", - "invoice_allocation", - "invoice_date", - "job_totals", - "kanbanparent", - "kmin", - "kmout", - "labor_rate_desc", - "labor_rate_id", - "local_tax_rate", - "loss_cat", - "loss_date", - "loss_desc", - "loss_type", - "other_amount_payable", - "owner_owing", - "ownerid", - "ownr_addr1", - "ownr_addr2", - "ownr_city", - "ownr_co_nm", - "ownr_ctry", - "ownr_ea", - "ownr_fax", - "ownr_faxx", - "ownr_fn", - "ownr_ln", - "ownr_ph1", - "ownr_ph1x", - "ownr_ph2", - "ownr_ph2x", - "ownr_st", - "ownr_title", - "ownr_zip", - "parts_tax_rates", - "pay_amt", - "pay_chknm", - "pay_date", - "pay_type", - "payee_nms", - "plate_no", - "plate_st", - "po_number", - "policy_no", - "production_vars", - "rate_la1", - "rate_la2", - "rate_la3", - "rate_la4", - "rate_laa", - "rate_lab", - "rate_lad", - "rate_lae", - "rate_laf", - "rate_lag", - "rate_lam", - "rate_lar", - "rate_las", - "rate_lau", - "rate_ma2s", - "rate_ma2t", - "rate_ma3s", - "rate_mabl", - "rate_macs", - "rate_mahw", - "rate_mapa", - "rate_mash", - "rate_matd", - "referral_source", - "regie_number", - "ro_number", - "scheduled_completion", - "scheduled_delivery", - "scheduled_in", - "selling_dealer", - "selling_dealer_contact", - "servicing_dealer", - "servicing_dealer_contact", - "shopid", - "special_coverage_policy", - "state_tax_rate", - "status", - "storage_payable", - "tax_lbr_rt", - "tax_levies_rt", - "tax_paint_mat_rt", - "tax_predis", - "tax_prethr", - "tax_pstthr", - "tax_registration_number", - "tax_shop_mat_rt", - "tax_str_rt", - "tax_sub_rt", - "tax_thramt", - "tax_tow_rt", - "theft_ind", - "tlos_ind", - "towing_payable", - "unit_number", - "updated_at", - "v_color", - "v_make_desc", - "v_model_desc", - "v_model_yr", - "v_vin", - "vehicleid" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "actual_completion", - "actual_delivery", - "actual_in", - "adj_g_disc", - "adj_strdis", - "adj_towdis", - "adjustment_bottom_line", - "agt_addr1", - "agt_addr2", - "agt_city", - "agt_co_id", - "agt_co_nm", - "agt_ct_fn", - "agt_ct_ln", - "agt_ct_ph", - "agt_ct_phx", - "agt_ctry", - "agt_ea", - "agt_fax", - "agt_faxx", - "agt_lic_no", - "agt_ph1", - "agt_ph1x", - "agt_ph2", - "agt_ph2x", - "agt_st", - "agt_zip", - "area_of_damage", - "asgn_date", - "asgn_no", - "asgn_type", - "cat_no", - "category", - "cieca_stl", - "cieca_ttl", - "ciecaid", - "class", - "clm_addr1", - "clm_addr2", - "clm_city", - "clm_ct_fn", - "clm_ct_ln", - "clm_ct_ph", - "clm_ct_phx", - "clm_ctry", - "clm_ea", - "clm_fax", - "clm_faxx", - "clm_no", - "clm_ofc_id", - "clm_ofc_nm", - "clm_ph1", - "clm_ph1x", - "clm_ph2", - "clm_ph2x", - "clm_st", - "clm_title", - "clm_total", - "clm_zip", - "converted", - "created_at", - "csr", - "cust_pr", - "date_closed", - "date_estimated", - "date_exported", - "date_invoiced", - "date_open", - "date_scheduled", - "ded_amt", - "ded_status", - "deliverchecklist", - "depreciation_taxes", - "employee_body", - "employee_prep", - "employee_refinish", - "est_addr1", - "est_addr2", - "est_city", - "est_co_nm", - "est_ct_fn", - "est_ct_ln", - "est_ctry", - "est_ea", - "est_number", - "est_ph1", - "est_st", - "est_zip", - "federal_tax_payable", - "federal_tax_rate", - "g_bett_amt", - "id", - "inproduction", - "ins_addr1", - "ins_addr2", - "ins_city", - "ins_co_id", - "ins_co_nm", - "ins_ct_fn", - "ins_ct_ln", - "ins_ct_ph", - "ins_ct_phx", - "ins_ctry", - "ins_ea", - "ins_fax", - "ins_faxx", - "ins_memo", - "ins_ph1", - "ins_ph1x", - "ins_ph2", - "ins_ph2x", - "ins_st", - "ins_title", - "ins_zip", - "insd_addr1", - "insd_addr2", - "insd_city", - "insd_co_nm", - "insd_ctry", - "insd_ea", - "insd_fax", - "insd_faxx", - "insd_fn", - "insd_ln", - "insd_ph1", - "insd_ph1x", - "insd_ph2", - "insd_ph2x", - "insd_st", - "insd_title", - "insd_zip", - "intakechecklist", - "invoice_allocation", - "invoice_date", - "job_totals", - "kanbanparent", - "kmin", - "kmout", - "labor_rate_desc", - "labor_rate_id", - "local_tax_rate", - "loss_cat", - "loss_date", - "loss_desc", - "loss_type", - "other_amount_payable", - "owner_owing", - "ownerid", - "ownr_addr1", - "ownr_addr2", - "ownr_city", - "ownr_co_nm", - "ownr_ctry", - "ownr_ea", - "ownr_fax", - "ownr_faxx", - "ownr_fn", - "ownr_ln", - "ownr_ph1", - "ownr_ph1x", - "ownr_ph2", - "ownr_ph2x", - "ownr_st", - "ownr_title", - "ownr_zip", - "parts_tax_rates", - "pay_amt", - "pay_chknm", - "pay_date", - "pay_type", - "payee_nms", - "plate_no", - "plate_st", - "po_number", - "policy_no", - "production_vars", - "rate_la1", - "rate_la2", - "rate_la3", - "rate_la4", - "rate_laa", - "rate_lab", - "rate_lad", - "rate_lae", - "rate_laf", - "rate_lag", - "rate_lam", - "rate_lar", - "rate_las", - "rate_lau", - "rate_ma2s", - "rate_ma2t", - "rate_ma3s", - "rate_mabl", - "rate_macs", - "rate_mahw", - "rate_mapa", - "rate_mash", - "rate_matd", - "referral_source", - "regie_number", - "ro_number", - "scheduled_completion", - "scheduled_delivery", - "scheduled_in", - "selling_dealer", - "selling_dealer_contact", - "servicing_dealer", - "servicing_dealer_contact", - "shopid", - "special_coverage_policy", - "state_tax_rate", - "status", - "storage_payable", - "tax_lbr_rt", - "tax_levies_rt", - "tax_paint_mat_rt", - "tax_predis", - "tax_prethr", - "tax_pstthr", - "tax_registration_number", - "tax_shop_mat_rt", - "tax_str_rt", - "tax_sub_rt", - "tax_thramt", - "tax_tow_rt", - "theft_ind", - "tlos_ind", - "towing_payable", - "unit_number", - "updated_at", - "v_color", - "v_make_desc", - "v_model_desc", - "v_model_yr", - "v_vin", - "vehicleid" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "actual_completion", - "actual_delivery", - "actual_in", - "adj_g_disc", - "adj_strdis", - "adj_towdis", - "adjustment_bottom_line", - "agt_addr1", - "agt_addr2", - "agt_city", - "agt_co_id", - "agt_co_nm", - "agt_ct_fn", - "agt_ct_ln", - "agt_ct_ph", - "agt_ct_phx", - "agt_ctry", - "agt_ea", - "agt_fax", - "agt_faxx", - "agt_lic_no", - "agt_ph1", - "agt_ph1x", - "agt_ph2", - "agt_ph2x", - "agt_st", - "agt_zip", - "area_of_damage", - "asgn_date", - "asgn_no", - "asgn_type", - "cat_no", - "category", - "cieca_stl", - "cieca_ttl", - "ciecaid", - "class", - "clm_addr1", - "clm_addr2", - "clm_city", - "clm_ct_fn", - "clm_ct_ln", - "clm_ct_ph", - "clm_ct_phx", - "clm_ctry", - "clm_ea", - "clm_fax", - "clm_faxx", - "clm_no", - "clm_ofc_id", - "clm_ofc_nm", - "clm_ph1", - "clm_ph1x", - "clm_ph2", - "clm_ph2x", - "clm_st", - "clm_title", - "clm_total", - "clm_zip", - "converted", - "created_at", - "csr", - "cust_pr", - "date_closed", - "date_estimated", - "date_exported", - "date_invoiced", - "date_open", - "date_scheduled", - "ded_amt", - "ded_status", - "deliverchecklist", - "depreciation_taxes", - "employee_body", - "employee_prep", - "employee_refinish", - "est_addr1", - "est_addr2", - "est_city", - "est_co_nm", - "est_ct_fn", - "est_ct_ln", - "est_ctry", - "est_ea", - "est_number", - "est_ph1", - "est_st", - "est_zip", - "federal_tax_payable", - "federal_tax_rate", - "g_bett_amt", - "id", - "inproduction", - "ins_addr1", - "ins_addr2", - "ins_city", - "ins_co_id", - "ins_co_nm", - "ins_ct_fn", - "ins_ct_ln", - "ins_ct_ph", - "ins_ct_phx", - "ins_ctry", - "ins_ea", - "ins_fax", - "ins_faxx", - "ins_memo", - "ins_ph1", - "ins_ph1x", - "ins_ph2", - "ins_ph2x", - "ins_st", - "ins_title", - "ins_zip", - "insd_addr1", - "insd_addr2", - "insd_city", - "insd_co_nm", - "insd_ctry", - "insd_ea", - "insd_fax", - "insd_faxx", - "insd_fn", - "insd_ln", - "insd_ph1", - "insd_ph1x", - "insd_ph2", - "insd_ph2x", - "insd_st", - "insd_title", - "insd_zip", - "intakechecklist", - "invoice_allocation", - "invoice_date", - "job_totals", - "kanbanparent", - "kmin", - "kmout", - "labor_rate_desc", - "labor_rate_id", - "local_tax_rate", - "loss_cat", - "loss_date", - "loss_desc", - "loss_type", - "other_amount_payable", - "owner_owing", - "ownerid", - "ownr_addr1", - "ownr_addr2", - "ownr_city", - "ownr_co_nm", - "ownr_ctry", - "ownr_ea", - "ownr_fax", - "ownr_faxx", - "ownr_fn", - "ownr_ln", - "ownr_ph1", - "ownr_ph1x", - "ownr_ph2", - "ownr_ph2x", - "ownr_st", - "ownr_title", - "ownr_zip", - "parts_tax_rates", - "pay_amt", - "pay_chknm", - "pay_date", - "pay_type", - "payee_nms", - "plate_no", - "plate_st", - "po_number", - "policy_no", - "production_vars", - "rate_la1", - "rate_la2", - "rate_la3", - "rate_la4", - "rate_laa", - "rate_lab", - "rate_lad", - "rate_lae", - "rate_laf", - "rate_lag", - "rate_lam", - "rate_lar", - "rate_las", - "rate_lau", - "rate_ma2s", - "rate_ma2t", - "rate_ma3s", - "rate_mabl", - "rate_macs", - "rate_mahw", - "rate_mapa", - "rate_mash", - "rate_matd", - "referral_source", - "regie_number", - "ro_number", - "scheduled_completion", - "scheduled_delivery", - "scheduled_in", - "selling_dealer", - "selling_dealer_contact", - "servicing_dealer", - "servicing_dealer_contact", - "shopid", - "special_coverage_policy", - "state_tax_rate", - "status", - "storage_payable", - "tax_lbr_rt", - "tax_levies_rt", - "tax_paint_mat_rt", - "tax_predis", - "tax_prethr", - "tax_pstthr", - "tax_registration_number", - "tax_shop_mat_rt", - "tax_str_rt", - "tax_sub_rt", - "tax_thramt", - "tax_tow_rt", - "theft_ind", - "tlos_ind", - "towing_payable", - "unit_number", - "updated_at", - "v_color", - "v_make_desc", - "v_model_desc", - "v_model_yr", - "v_vin", - "vehicleid" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "masterdata" - }, - "select_permissions": [ - { - "role": "anonymous", - "permission": { - "columns": [ - "key", - "value" - ], - "filter": {} - } - }, - { - "role": "user", - "permission": { - "columns": [ - "key", - "value" - ], - "filter": {} - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "messages" - }, - "object_relationships": [ - { - "name": "conversation", - "using": { - "foreign_key_constraint_on": "conversationid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "conversation": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "columns": [ - "id", - "created_at", - "updated_at", - "msid", - "conversationid", - "text", - "image", - "image_path", - "isoutbound", - "status", - "read" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "image", - "isoutbound", - "read", - "image_path", - "msid", - "status", - "text", - "created_at", - "updated_at", - "conversationid", - "id" - ], - "filter": { - "conversation": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "image", - "isoutbound", - "read", - "image_path", - "msid", - "status", - "text", - "created_at", - "updated_at", - "conversationid", - "id" - ], - "filter": { - "conversation": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "conversation": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "notes" - }, - "object_relationships": [ - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - }, - { - "name": "user", - "using": { - "foreign_key_constraint_on": "created_by" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "columns": [ - "id", - "created_at", - "updated_at", - "jobid", - "text", - "created_by", - "critical", - "private" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "critical", - "private", - "created_by", - "text", - "created_at", - "updated_at", - "id", - "jobid" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "critical", - "private", - "created_by", - "text", - "created_at", - "updated_at", - "id", - "jobid" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "owners" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "shopid" - } - } - ], - "array_relationships": [ - { - "name": "jobs", - "using": { - "foreign_key_constraint_on": { - "column": "ownerid", - "table": { - "schema": "public", - "name": "jobs" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "id", - "created_at", - "updated_at", - "ownr_fn", - "ownr_ln", - "ownr_addr1", - "ownr_addr2", - "ownr_city", - "ownr_st", - "ownr_zip", - "ownr_ctry", - "ownr_ea", - "ownr_ph1", - "preferred_contact", - "allow_text_message", - "shopid", - "ownr_ph2", - "ownr_co_nm", - "ownr_title", - "accountingid" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "allow_text_message", - "accountingid", - "ownr_addr1", - "ownr_addr2", - "ownr_city", - "ownr_co_nm", - "ownr_ctry", - "ownr_ea", - "ownr_fn", - "ownr_ln", - "ownr_ph1", - "ownr_ph2", - "ownr_st", - "ownr_title", - "ownr_zip", - "preferred_contact", - "created_at", - "updated_at", - "id", - "shopid" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "allow_text_message", - "accountingid", - "ownr_addr1", - "ownr_addr2", - "ownr_city", - "ownr_co_nm", - "ownr_ctry", - "ownr_ea", - "ownr_fn", - "ownr_ln", - "ownr_ph1", - "ownr_ph2", - "ownr_st", - "ownr_title", - "ownr_zip", - "preferred_contact", - "created_at", - "updated_at", - "id", - "shopid" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "parts_order_lines" - }, - "object_relationships": [ - { - "name": "jobline", - "using": { - "foreign_key_constraint_on": "job_line_id" - } - }, - { - "name": "parts_order", - "using": { - "foreign_key_constraint_on": "orderid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "parts_order": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - }, - "columns": [ - "act_price", - "backordered_eta", - "backordered_on", - "created_at", - "db_price", - "id", - "job_line_id", - "line_desc", - "line_remarks", - "oem_partno", - "orderid", - "quantity", - "status", - "updated_at" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "act_price", - "backordered_eta", - "backordered_on", - "created_at", - "db_price", - "id", - "job_line_id", - "line_desc", - "line_remarks", - "oem_partno", - "orderid", - "quantity", - "status", - "updated_at" - ], - "filter": { - "parts_order": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "act_price", - "backordered_eta", - "backordered_on", - "created_at", - "db_price", - "id", - "job_line_id", - "line_desc", - "line_remarks", - "oem_partno", - "orderid", - "quantity", - "status", - "updated_at" - ], - "filter": { - "parts_order": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "parts_order": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "parts_orders" - }, - "object_relationships": [ - { - "name": "invoice", - "using": { - "foreign_key_constraint_on": "returnfrominvoice" - } - }, - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - }, - { - "name": "user", - "using": { - "foreign_key_constraint_on": "user_email" - } - }, - { - "name": "vendor", - "using": { - "foreign_key_constraint_on": "vendorid" - } - } - ], - "array_relationships": [ - { - "name": "parts_order_lines", - "using": { - "foreign_key_constraint_on": { - "column": "orderid", - "table": { - "schema": "public", - "name": "parts_order_lines" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "columns": [ - "created_at", - "deliver_by", - "id", - "jobid", - "order_date", - "order_number", - "return", - "returnfrominvoice", - "status", - "updated_at", - "user_email", - "vendorid" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "created_at", - "deliver_by", - "id", - "jobid", - "order_date", - "order_number", - "return", - "returnfrominvoice", - "status", - "updated_at", - "user_email", - "vendorid" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "created_at", - "deliver_by", - "id", - "jobid", - "order_date", - "order_number", - "returnfrominvoice", - "status", - "updated_at", - "user_email", - "vendorid" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "payments" - }, - "object_relationships": [ - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "columns": [ - "amount", - "created_at", - "exportedat", - "id", - "jobid", - "memo", - "payer", - "stripeid", - "transactionid", - "type", - "updated_at" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "amount", - "created_at", - "exportedat", - "id", - "jobid", - "memo", - "payer", - "stripeid", - "transactionid", - "type", - "updated_at" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "amount", - "created_at", - "exportedat", - "id", - "jobid", - "memo", - "payer", - "stripeid", - "transactionid", - "type", - "updated_at" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "scoreboard" - }, - "object_relationships": [ - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "columns": [ - "id", - "jobid", - "painthrs", - "bodyhrs", - "date" - ], - "backend_only": false - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "date", - "bodyhrs", - "painthrs", - "id", - "jobid" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "date", - "bodyhrs", - "painthrs", - "id", - "jobid" - ], - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "job": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "templates" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "bodyshopid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "_or": [ - { - "bodyshopid": { - "_is_null": true - } - }, - { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - ] - }, - "columns": [ - "bodyshopid", - "html", - "jsontemplate", - "name", - "query" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "bodyshopid", - "created_at", - "html", - "id", - "jsontemplate", - "name", - "query", - "updated_at" - ], - "filter": { - "_or": [ - { - "bodyshopid": { - "_is_null": true - } - }, - { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - ] - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "bodyshopid", - "created_at", - "html", - "id", - "jsontemplate", - "name", - "query", - "updated_at" - ], - "filter": { - "_or": [ - { - "bodyshopid": { - "_is_null": true - } - }, - { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - ] - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "_or": [ - { - "bodyshopid": { - "_is_null": false - } - }, - { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - ] - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "timetickets" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "bodyshopid" - } - }, - { - "name": "employee", - "using": { - "foreign_key_constraint_on": "employeeid" - } - }, - { - "name": "job", - "using": { - "foreign_key_constraint_on": "jobid" - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "actualhrs", - "bodyshopid", - "ciecacode", - "clockoff", - "clockon", - "cost_center", - "created_at", - "date", - "employeeid", - "id", - "jobid", - "memo", - "productivehrs", - "rate", - "updated_at" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "actualhrs", - "bodyshopid", - "ciecacode", - "clockoff", - "clockon", - "cost_center", - "created_at", - "date", - "employeeid", - "id", - "jobid", - "memo", - "productivehrs", - "rate", - "updated_at" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "actualhrs", - "bodyshopid", - "ciecacode", - "clockoff", - "clockon", - "cost_center", - "created_at", - "date", - "employeeid", - "id", - "jobid", - "memo", - "productivehrs", - "rate", - "updated_at" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "users" - }, - "object_relationships": [ - { - "name": "employee", - "using": { - "manual_configuration": { - "remote_table": { - "schema": "public", - "name": "employees" - }, - "column_mapping": { - "email": "user_email" - } - } - } - } - ], - "array_relationships": [ - { - "name": "associations", - "using": { - "foreign_key_constraint_on": { - "column": "useremail", - "table": { - "schema": "public", - "name": "associations" - } - } - } - }, - { - "name": "audit_trails", - "using": { - "foreign_key_constraint_on": { - "column": "useremail", - "table": { - "schema": "public", - "name": "audit_trail" - } - } - } - }, - { - "name": "notes", - "using": { - "foreign_key_constraint_on": { - "column": "created_by", - "table": { - "schema": "public", - "name": "notes" - } - } - } - }, - { - "name": "parts_orders", - "using": { - "foreign_key_constraint_on": { - "column": "user_email", - "table": { - "schema": "public", - "name": "parts_orders" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": {}, - "columns": [ - "authid", - "email", - "fcmtokens" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "authid", - "created_at", - "dashboardlayout", - "email", - "fcmtokens", - "updated_at" - ], - "filter": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "authid", - "dashboardlayout", - "email", - "fcmtokens" - ], - "filter": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - }, - "check": null - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "vehicles" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "shopid" - } - } - ], - "array_relationships": [ - { - "name": "jobs", - "using": { - "foreign_key_constraint_on": { - "column": "vehicleid", - "table": { - "schema": "public", - "name": "jobs" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "id", - "created_at", - "updated_at", - "v_vin", - "v_make_desc", - "v_model_desc", - "v_model_yr", - "v_color", - "v_paint_codes", - "v_bstyle", - "v_engine", - "shopid", - "db_v_code", - "plate_no", - "plate_st", - "v_cond", - "v_prod_dt", - "v_type", - "v_trimcode", - "trim_color", - "v_mldgcode", - "v_options", - "v_tone", - "v_stage", - "v_makecode" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "v_paint_codes", - "db_v_code", - "plate_no", - "plate_st", - "trim_color", - "v_bstyle", - "v_color", - "v_cond", - "v_engine", - "v_makecode", - "v_make_desc", - "v_mldgcode", - "v_model_desc", - "v_model_yr", - "v_options", - "v_prod_dt", - "v_stage", - "v_tone", - "v_trimcode", - "v_type", - "v_vin", - "created_at", - "updated_at", - "id", - "shopid" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "allow_aggregations": true - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "v_paint_codes", - "db_v_code", - "plate_no", - "plate_st", - "trim_color", - "v_bstyle", - "v_color", - "v_cond", - "v_engine", - "v_makecode", - "v_make_desc", - "v_mldgcode", - "v_model_desc", - "v_model_yr", - "v_options", - "v_prod_dt", - "v_stage", - "v_tone", - "v_trimcode", - "v_type", - "v_vin", - "created_at", - "updated_at", - "id", - "shopid" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ] - }, - { - "table": { - "schema": "public", - "name": "vendors" - }, - "object_relationships": [ - { - "name": "bodyshop", - "using": { - "foreign_key_constraint_on": "bodyshopid" - } - } - ], - "array_relationships": [ - { - "name": "invoices", - "using": { - "foreign_key_constraint_on": { - "column": "vendorid", - "table": { - "schema": "public", - "name": "invoices" - } - } - } - }, - { - "name": "parts_orders", - "using": { - "foreign_key_constraint_on": { - "column": "vendorid", - "table": { - "schema": "public", - "name": "parts_orders" - } - } - } - } - ], - "insert_permissions": [ - { - "role": "user", - "permission": { - "check": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "columns": [ - "due_date", - "favorite", - "discount", - "prompt_discount", - "city", - "cost_center", - "country", - "display_name", - "email", - "name", - "state", - "street1", - "street2", - "taxid", - "terms", - "zip", - "created_at", - "updated_at", - "bodyshopid", - "id" - ] - } - } - ], - "select_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "due_date", - "favorite", - "discount", - "prompt_discount", - "city", - "cost_center", - "country", - "display_name", - "email", - "name", - "state", - "street1", - "street2", - "taxid", - "terms", - "zip", - "created_at", - "updated_at", - "bodyshopid", - "id" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ], - "update_permissions": [ - { - "role": "user", - "permission": { - "columns": [ - "due_date", - "favorite", - "discount", - "prompt_discount", - "city", - "cost_center", - "country", - "display_name", - "email", - "name", - "state", - "street1", - "street2", - "taxid", - "terms", - "zip", - "created_at", - "updated_at", - "bodyshopid", - "id" - ], - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - }, - "check": null - } - } - ], - "delete_permissions": [ - { - "role": "user", - "permission": { - "filter": { - "bodyshop": { - "associations": { - "_and": [ - { - "user": { - "authid": { - "_eq": "X-Hasura-User-Id" - } - } - }, - { - "active": { - "_eq": true - } - } - ] - } - } - } - } - } - ] - } - ], - "functions": [ - { - "function": { - "schema": "public", - "name": "search_invoices" - } - }, - { - "function": { - "schema": "public", - "name": "search_jobs" - } - }, - { - "function": { - "schema": "public", - "name": "search_owners" - } - }, - { - "function": { - "schema": "public", - "name": "search_payments" - } - }, - { - "function": { - "schema": "public", - "name": "search_vehicles" - } - } - ] -} \ No newline at end of file diff --git a/hasura/migrations/1575655211742_create_table_public_users/down.yaml b/hasura/migrations/1575655211742_create_table_public_users/down.yaml deleted file mode 100644 index 6d64784f0..000000000 --- a/hasura/migrations/1575655211742_create_table_public_users/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."users" - type: run_sql diff --git a/hasura/migrations/1575655211742_create_table_public_users/up.yaml b/hasura/migrations/1575655211742_create_table_public_users/up.yaml deleted file mode 100644 index 22b1e368e..000000000 --- a/hasura/migrations/1575655211742_create_table_public_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575655225393_create_table_public_navitems/down.yaml b/hasura/migrations/1575655225393_create_table_public_navitems/down.yaml deleted file mode 100644 index 2001fde1d..000000000 --- a/hasura/migrations/1575655225393_create_table_public_navitems/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."navitems" - type: run_sql diff --git a/hasura/migrations/1575655225393_create_table_public_navitems/up.yaml b/hasura/migrations/1575655225393_create_table_public_navitems/up.yaml deleted file mode 100644 index 7c8213fd1..000000000 --- a/hasura/migrations/1575655225393_create_table_public_navitems/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575655236263_drop_table_public_navitems/down.yaml b/hasura/migrations/1575655236263_drop_table_public_navitems/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1575655236263_drop_table_public_navitems/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1575655236263_drop_table_public_navitems/up.yaml b/hasura/migrations/1575655236263_drop_table_public_navitems/up.yaml deleted file mode 100644 index 2001fde1d..000000000 --- a/hasura/migrations/1575655236263_drop_table_public_navitems/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."navitems" - type: run_sql diff --git a/hasura/migrations/1575655252208_create_table_public_masterdata/down.yaml b/hasura/migrations/1575655252208_create_table_public_masterdata/down.yaml deleted file mode 100644 index 3f7048497..000000000 --- a/hasura/migrations/1575655252208_create_table_public_masterdata/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."masterdata" - type: run_sql diff --git a/hasura/migrations/1575655252208_create_table_public_masterdata/up.yaml b/hasura/migrations/1575655252208_create_table_public_masterdata/up.yaml deleted file mode 100644 index 389dc577b..000000000 --- a/hasura/migrations/1575655252208_create_table_public_masterdata/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575655293505_update_permission_anonymous_public_table_masterdata/down.yaml b/hasura/migrations/1575655293505_update_permission_anonymous_public_table_masterdata/down.yaml deleted file mode 100644 index 1d0adab90..000000000 --- a/hasura/migrations/1575655293505_update_permission_anonymous_public_table_masterdata/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: masterdata - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1575655293505_update_permission_anonymous_public_table_masterdata/up.yaml b/hasura/migrations/1575655293505_update_permission_anonymous_public_table_masterdata/up.yaml deleted file mode 100644 index e8ceef321..000000000 --- a/hasura/migrations/1575655293505_update_permission_anonymous_public_table_masterdata/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: [] - filter: {} - limit: null - role: anonymous - table: - name: masterdata - schema: public - type: create_select_permission diff --git a/hasura/migrations/1575655363093_create_table_public_bodyshops/down.yaml b/hasura/migrations/1575655363093_create_table_public_bodyshops/down.yaml deleted file mode 100644 index f47539e12..000000000 --- a/hasura/migrations/1575655363093_create_table_public_bodyshops/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."bodyshops" - type: run_sql diff --git a/hasura/migrations/1575655363093_create_table_public_bodyshops/up.yaml b/hasura/migrations/1575655363093_create_table_public_bodyshops/up.yaml deleted file mode 100644 index 7622e2eb3..000000000 --- a/hasura/migrations/1575655363093_create_table_public_bodyshops/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575655424561_create_table_public_associations/down.yaml b/hasura/migrations/1575655424561_create_table_public_associations/down.yaml deleted file mode 100644 index 21943476f..000000000 --- a/hasura/migrations/1575655424561_create_table_public_associations/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."associations" - type: run_sql diff --git a/hasura/migrations/1575655424561_create_table_public_associations/up.yaml b/hasura/migrations/1575655424561_create_table_public_associations/up.yaml deleted file mode 100644 index 45f41c0a9..000000000 --- a/hasura/migrations/1575655424561_create_table_public_associations/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575655478543_track_all_relationships/down.yaml b/hasura/migrations/1575655478543_track_all_relationships/down.yaml deleted file mode 100644 index 74d00028c..000000000 --- a/hasura/migrations/1575655478543_track_all_relationships/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575655478543_track_all_relationships/up.yaml b/hasura/migrations/1575655478543_track_all_relationships/up.yaml deleted file mode 100644 index 372c515eb..000000000 --- a/hasura/migrations/1575655478543_track_all_relationships/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575655536805_create_table_public_jobs/down.yaml b/hasura/migrations/1575655536805_create_table_public_jobs/down.yaml deleted file mode 100644 index 236b87dbe..000000000 --- a/hasura/migrations/1575655536805_create_table_public_jobs/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."jobs" - type: run_sql diff --git a/hasura/migrations/1575655536805_create_table_public_jobs/up.yaml b/hasura/migrations/1575655536805_create_table_public_jobs/up.yaml deleted file mode 100644 index 5183f36ae..000000000 --- a/hasura/migrations/1575655536805_create_table_public_jobs/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575655627760_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1575655627760_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 9e5d0dbf1..000000000 --- a/hasura/migrations/1575655627760_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1575655627760_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1575655627760_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 8bb5db736..000000000 --- a/hasura/migrations/1575655627760_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575655638632_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1575655638632_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 63eb45960..000000000 --- a/hasura/migrations/1575655638632_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1575655638632_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1575655638632_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 84af8eb31..000000000 --- a/hasura/migrations/1575655638632_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - permission: - columns: [] - filter: {} - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: users - schema: public - type: create_update_permission diff --git a/hasura/migrations/1575655690635_update_permission_anonymous_public_table_masterdata/down.yaml b/hasura/migrations/1575655690635_update_permission_anonymous_public_table_masterdata/down.yaml deleted file mode 100644 index 6d26ff312..000000000 --- a/hasura/migrations/1575655690635_update_permission_anonymous_public_table_masterdata/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575655690635_update_permission_anonymous_public_table_masterdata/up.yaml b/hasura/migrations/1575655690635_update_permission_anonymous_public_table_masterdata/up.yaml deleted file mode 100644 index b63ec14d1..000000000 --- a/hasura/migrations/1575655690635_update_permission_anonymous_public_table_masterdata/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575658209686_track_all_relationships/down.yaml b/hasura/migrations/1575658209686_track_all_relationships/down.yaml deleted file mode 100644 index 482b92d15..000000000 --- a/hasura/migrations/1575658209686_track_all_relationships/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575658209686_track_all_relationships/up.yaml b/hasura/migrations/1575658209686_track_all_relationships/up.yaml deleted file mode 100644 index 2562de615..000000000 --- a/hasura/migrations/1575658209686_track_all_relationships/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575660238077_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1575660238077_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 30afb6bd8..000000000 --- a/hasura/migrations/1575660238077_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1575660238077_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1575660238077_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 5d204d959..000000000 --- a/hasura/migrations/1575660238077_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575660243572_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1575660243572_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 042242267..000000000 --- a/hasura/migrations/1575660243572_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1575660243572_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1575660243572_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index b88744124..000000000 --- a/hasura/migrations/1575660243572_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575660247920_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1575660247920_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 8bb0759ac..000000000 --- a/hasura/migrations/1575660247920_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1575660247920_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1575660247920_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 8631f36fd..000000000 --- a/hasura/migrations/1575660247920_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575660251141_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1575660251141_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index e1abc5cdb..000000000 --- a/hasura/migrations/1575660251141_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1575660251141_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1575660251141_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index e3907fafc..000000000 --- a/hasura/migrations/1575660251141_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575660275013_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1575660275013_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 8559c1bd2..000000000 --- a/hasura/migrations/1575660275013_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1575660275013_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1575660275013_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 5f5f605df..000000000 --- a/hasura/migrations/1575660275013_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575660296520_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1575660296520_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 0c08e2319..000000000 --- a/hasura/migrations/1575660296520_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1575660296520_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1575660296520_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 66469c9ff..000000000 --- a/hasura/migrations/1575660296520_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575660323008_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1575660323008_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index 27cf8ba1e..000000000 --- a/hasura/migrations/1575660323008_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1575660323008_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1575660323008_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index 768d34fb7..000000000 --- a/hasura/migrations/1575660323008_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575660685092_update_permission_user_public_table_masterdata/down.yaml b/hasura/migrations/1575660685092_update_permission_user_public_table_masterdata/down.yaml deleted file mode 100644 index 2bd7ff797..000000000 --- a/hasura/migrations/1575660685092_update_permission_user_public_table_masterdata/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: masterdata - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1575660685092_update_permission_user_public_table_masterdata/up.yaml b/hasura/migrations/1575660685092_update_permission_user_public_table_masterdata/up.yaml deleted file mode 100644 index 0aadc9c19..000000000 --- a/hasura/migrations/1575660685092_update_permission_user_public_table_masterdata/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: [] - filter: {} - limit: null - role: user - table: - name: masterdata - schema: public - type: create_select_permission diff --git a/hasura/migrations/1575660691578_update_permission_user_public_table_masterdata/down.yaml b/hasura/migrations/1575660691578_update_permission_user_public_table_masterdata/down.yaml deleted file mode 100644 index fb1aaf161..000000000 --- a/hasura/migrations/1575660691578_update_permission_user_public_table_masterdata/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575660691578_update_permission_user_public_table_masterdata/up.yaml b/hasura/migrations/1575660691578_update_permission_user_public_table_masterdata/up.yaml deleted file mode 100644 index 199703d6f..000000000 --- a/hasura/migrations/1575660691578_update_permission_user_public_table_masterdata/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575664673911_update_permission_anonymous_public_table_users/down.yaml b/hasura/migrations/1575664673911_update_permission_anonymous_public_table_users/down.yaml deleted file mode 100644 index 8d7fedcea..000000000 --- a/hasura/migrations/1575664673911_update_permission_anonymous_public_table_users/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: users - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1575664673911_update_permission_anonymous_public_table_users/up.yaml b/hasura/migrations/1575664673911_update_permission_anonymous_public_table_users/up.yaml deleted file mode 100644 index 6a7e783a9..000000000 --- a/hasura/migrations/1575664673911_update_permission_anonymous_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575667732220_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1575667732220_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index d5fbeec68..000000000 --- a/hasura/migrations/1575667732220_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575667732220_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1575667732220_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 8ec4d6f35..000000000 --- a/hasura/migrations/1575667732220_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575667738815_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1575667738815_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 344aff306..000000000 --- a/hasura/migrations/1575667738815_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575667738815_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1575667738815_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index c4393514e..000000000 --- a/hasura/migrations/1575667738815_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575668596604_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1575668596604_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 5022ed879..000000000 --- a/hasura/migrations/1575668596604_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1575668596604_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1575668596604_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index abd3f4a2f..000000000 --- a/hasura/migrations/1575668596604_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575668601516_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1575668601516_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index c5e1a383e..000000000 --- a/hasura/migrations/1575668601516_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575668601516_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1575668601516_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index f91554e06..000000000 --- a/hasura/migrations/1575668601516_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575668794454_update_permission_anonymous_public_table_users/down.yaml b/hasura/migrations/1575668794454_update_permission_anonymous_public_table_users/down.yaml deleted file mode 100644 index adfb8ed02..000000000 --- a/hasura/migrations/1575668794454_update_permission_anonymous_public_table_users/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: users - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1575668794454_update_permission_anonymous_public_table_users/up.yaml b/hasura/migrations/1575668794454_update_permission_anonymous_public_table_users/up.yaml deleted file mode 100644 index c7d361254..000000000 --- a/hasura/migrations/1575668794454_update_permission_anonymous_public_table_users/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - permission: - columns: [] - filter: {} - localPresets: - - key: "" - value: "" - set: {} - role: anonymous - table: - name: users - schema: public - type: create_update_permission diff --git a/hasura/migrations/1575668798166_update_permission_anonymous_public_table_users/down.yaml b/hasura/migrations/1575668798166_update_permission_anonymous_public_table_users/down.yaml deleted file mode 100644 index 56426a31b..000000000 --- a/hasura/migrations/1575668798166_update_permission_anonymous_public_table_users/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: users - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1575668798166_update_permission_anonymous_public_table_users/up.yaml b/hasura/migrations/1575668798166_update_permission_anonymous_public_table_users/up.yaml deleted file mode 100644 index 244b9e444..000000000 --- a/hasura/migrations/1575668798166_update_permission_anonymous_public_table_users/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: [] - filter: {} - limit: null - role: anonymous - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1575668801857_update_permission_anonymous_public_table_users/down.yaml b/hasura/migrations/1575668801857_update_permission_anonymous_public_table_users/down.yaml deleted file mode 100644 index 44cc20727..000000000 --- a/hasura/migrations/1575668801857_update_permission_anonymous_public_table_users/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575668801857_update_permission_anonymous_public_table_users/up.yaml b/hasura/migrations/1575668801857_update_permission_anonymous_public_table_users/up.yaml deleted file mode 100644 index 1fa476545..000000000 --- a/hasura/migrations/1575668801857_update_permission_anonymous_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575668805312_update_permission_anonymous_public_table_users/down.yaml b/hasura/migrations/1575668805312_update_permission_anonymous_public_table_users/down.yaml deleted file mode 100644 index 3aa2385ed..000000000 --- a/hasura/migrations/1575668805312_update_permission_anonymous_public_table_users/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1575668805312_update_permission_anonymous_public_table_users/up.yaml b/hasura/migrations/1575668805312_update_permission_anonymous_public_table_users/up.yaml deleted file mode 100644 index c932a3cd4..000000000 --- a/hasura/migrations/1575668805312_update_permission_anonymous_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576008107367_alter_table_public_associations_add_column_active/down.yaml b/hasura/migrations/1576008107367_alter_table_public_associations_add_column_active/down.yaml deleted file mode 100644 index ba868fb1f..000000000 --- a/hasura/migrations/1576008107367_alter_table_public_associations_add_column_active/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."associations" DROP COLUMN "active"; - type: run_sql diff --git a/hasura/migrations/1576008107367_alter_table_public_associations_add_column_active/up.yaml b/hasura/migrations/1576008107367_alter_table_public_associations_add_column_active/up.yaml deleted file mode 100644 index 7283f840f..000000000 --- a/hasura/migrations/1576008107367_alter_table_public_associations_add_column_active/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."associations" ADD COLUMN "active" boolean NOT NULL - DEFAULT true; - type: run_sql diff --git a/hasura/migrations/1576008186244_alter_table_public_bodyshops_add_column_created_at/down.yaml b/hasura/migrations/1576008186244_alter_table_public_bodyshops_add_column_created_at/down.yaml deleted file mode 100644 index 14a3a8e10..000000000 --- a/hasura/migrations/1576008186244_alter_table_public_bodyshops_add_column_created_at/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "created_at"; - type: run_sql diff --git a/hasura/migrations/1576008186244_alter_table_public_bodyshops_add_column_created_at/up.yaml b/hasura/migrations/1576008186244_alter_table_public_bodyshops_add_column_created_at/up.yaml deleted file mode 100644 index f6cea954f..000000000 --- a/hasura/migrations/1576008186244_alter_table_public_bodyshops_add_column_created_at/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "created_at" timestamptz NULL - DEFAULT now(); - type: run_sql diff --git a/hasura/migrations/1576008191005_alter_table_public_bodyshops_add_column_updated_at/down.yaml b/hasura/migrations/1576008191005_alter_table_public_bodyshops_add_column_updated_at/down.yaml deleted file mode 100644 index 2d86263f3..000000000 --- a/hasura/migrations/1576008191005_alter_table_public_bodyshops_add_column_updated_at/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576008191005_alter_table_public_bodyshops_add_column_updated_at/up.yaml b/hasura/migrations/1576008191005_alter_table_public_bodyshops_add_column_updated_at/up.yaml deleted file mode 100644 index 6e92161c2..000000000 --- a/hasura/migrations/1576008191005_alter_table_public_bodyshops_add_column_updated_at/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576008213974_alter_table_public_bodyshops_add_column_address1/down.yaml b/hasura/migrations/1576008213974_alter_table_public_bodyshops_add_column_address1/down.yaml deleted file mode 100644 index 4471b5836..000000000 --- a/hasura/migrations/1576008213974_alter_table_public_bodyshops_add_column_address1/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "address1"; - type: run_sql diff --git a/hasura/migrations/1576008213974_alter_table_public_bodyshops_add_column_address1/up.yaml b/hasura/migrations/1576008213974_alter_table_public_bodyshops_add_column_address1/up.yaml deleted file mode 100644 index 1983cefa1..000000000 --- a/hasura/migrations/1576008213974_alter_table_public_bodyshops_add_column_address1/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "address1" text NULL; - type: run_sql diff --git a/hasura/migrations/1576008221992_alter_table_public_bodyshops_add_column_address2/down.yaml b/hasura/migrations/1576008221992_alter_table_public_bodyshops_add_column_address2/down.yaml deleted file mode 100644 index 30157702e..000000000 --- a/hasura/migrations/1576008221992_alter_table_public_bodyshops_add_column_address2/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "address2"; - type: run_sql diff --git a/hasura/migrations/1576008221992_alter_table_public_bodyshops_add_column_address2/up.yaml b/hasura/migrations/1576008221992_alter_table_public_bodyshops_add_column_address2/up.yaml deleted file mode 100644 index 2835e387d..000000000 --- a/hasura/migrations/1576008221992_alter_table_public_bodyshops_add_column_address2/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "address2" text NULL; - type: run_sql diff --git a/hasura/migrations/1576008231814_alter_table_public_bodyshops_add_column_city/down.yaml b/hasura/migrations/1576008231814_alter_table_public_bodyshops_add_column_city/down.yaml deleted file mode 100644 index 9c7a6df69..000000000 --- a/hasura/migrations/1576008231814_alter_table_public_bodyshops_add_column_city/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "city"; - type: run_sql diff --git a/hasura/migrations/1576008231814_alter_table_public_bodyshops_add_column_city/up.yaml b/hasura/migrations/1576008231814_alter_table_public_bodyshops_add_column_city/up.yaml deleted file mode 100644 index 231a0459f..000000000 --- a/hasura/migrations/1576008231814_alter_table_public_bodyshops_add_column_city/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "city" text NULL; - type: run_sql diff --git a/hasura/migrations/1576008238769_alter_table_public_bodyshops_add_column_state/down.yaml b/hasura/migrations/1576008238769_alter_table_public_bodyshops_add_column_state/down.yaml deleted file mode 100644 index 4ebf7e884..000000000 --- a/hasura/migrations/1576008238769_alter_table_public_bodyshops_add_column_state/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "state"; - type: run_sql diff --git a/hasura/migrations/1576008238769_alter_table_public_bodyshops_add_column_state/up.yaml b/hasura/migrations/1576008238769_alter_table_public_bodyshops_add_column_state/up.yaml deleted file mode 100644 index 442b63aa3..000000000 --- a/hasura/migrations/1576008238769_alter_table_public_bodyshops_add_column_state/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "state" text NULL; - type: run_sql diff --git a/hasura/migrations/1576008248755_alter_table_public_bodyshops_add_column_zip_post/down.yaml b/hasura/migrations/1576008248755_alter_table_public_bodyshops_add_column_zip_post/down.yaml deleted file mode 100644 index d741d5e9e..000000000 --- a/hasura/migrations/1576008248755_alter_table_public_bodyshops_add_column_zip_post/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "zip_post"; - type: run_sql diff --git a/hasura/migrations/1576008248755_alter_table_public_bodyshops_add_column_zip_post/up.yaml b/hasura/migrations/1576008248755_alter_table_public_bodyshops_add_column_zip_post/up.yaml deleted file mode 100644 index e124f67e3..000000000 --- a/hasura/migrations/1576008248755_alter_table_public_bodyshops_add_column_zip_post/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "zip_post" text NULL; - type: run_sql diff --git a/hasura/migrations/1576008259990_alter_table_public_bodyshops_add_column_country/down.yaml b/hasura/migrations/1576008259990_alter_table_public_bodyshops_add_column_country/down.yaml deleted file mode 100644 index cdd0b45ae..000000000 --- a/hasura/migrations/1576008259990_alter_table_public_bodyshops_add_column_country/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "country"; - type: run_sql diff --git a/hasura/migrations/1576008259990_alter_table_public_bodyshops_add_column_country/up.yaml b/hasura/migrations/1576008259990_alter_table_public_bodyshops_add_column_country/up.yaml deleted file mode 100644 index 58fcfafce..000000000 --- a/hasura/migrations/1576008259990_alter_table_public_bodyshops_add_column_country/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "country" text NULL; - type: run_sql diff --git a/hasura/migrations/1576008393377_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576008393377_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 1920bef42..000000000 --- a/hasura/migrations/1576008393377_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576008393377_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576008393377_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 20414421f..000000000 --- a/hasura/migrations/1576008393377_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576008404806_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576008404806_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index d0132ea47..000000000 --- a/hasura/migrations/1576008404806_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576008404806_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576008404806_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index bb3b099a1..000000000 --- a/hasura/migrations/1576008404806_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576008411287_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576008411287_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index ecb76193d..000000000 --- a/hasura/migrations/1576008411287_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576008411287_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576008411287_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index c64e6e99c..000000000 --- a/hasura/migrations/1576008411287_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576008417375_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576008417375_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 16583a05c..000000000 --- a/hasura/migrations/1576008417375_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576008417375_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576008417375_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 43ac58a38..000000000 --- a/hasura/migrations/1576008417375_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576008451464_alter_table_public_jobs_add_column_ro_number/down.yaml b/hasura/migrations/1576008451464_alter_table_public_jobs_add_column_ro_number/down.yaml deleted file mode 100644 index f5fccbb9d..000000000 --- a/hasura/migrations/1576008451464_alter_table_public_jobs_add_column_ro_number/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "ro_number"; - type: run_sql diff --git a/hasura/migrations/1576008451464_alter_table_public_jobs_add_column_ro_number/up.yaml b/hasura/migrations/1576008451464_alter_table_public_jobs_add_column_ro_number/up.yaml deleted file mode 100644 index 275d0d9d1..000000000 --- a/hasura/migrations/1576008451464_alter_table_public_jobs_add_column_ro_number/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "ro_number" text NULL; - type: run_sql diff --git a/hasura/migrations/1576009421091_alter_table_public_bodyshops_add_column_email/down.yaml b/hasura/migrations/1576009421091_alter_table_public_bodyshops_add_column_email/down.yaml deleted file mode 100644 index f62215e3b..000000000 --- a/hasura/migrations/1576009421091_alter_table_public_bodyshops_add_column_email/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "email"; - type: run_sql diff --git a/hasura/migrations/1576009421091_alter_table_public_bodyshops_add_column_email/up.yaml b/hasura/migrations/1576009421091_alter_table_public_bodyshops_add_column_email/up.yaml deleted file mode 100644 index 35c79b8a6..000000000 --- a/hasura/migrations/1576009421091_alter_table_public_bodyshops_add_column_email/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "email" text NULL; - type: run_sql diff --git a/hasura/migrations/1576009436047_alter_table_public_bodyshops_add_column_tax_id/down.yaml b/hasura/migrations/1576009436047_alter_table_public_bodyshops_add_column_tax_id/down.yaml deleted file mode 100644 index 31b0e9ac7..000000000 --- a/hasura/migrations/1576009436047_alter_table_public_bodyshops_add_column_tax_id/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "tax_id"; - type: run_sql diff --git a/hasura/migrations/1576009436047_alter_table_public_bodyshops_add_column_tax_id/up.yaml b/hasura/migrations/1576009436047_alter_table_public_bodyshops_add_column_tax_id/up.yaml deleted file mode 100644 index 58cc79456..000000000 --- a/hasura/migrations/1576009436047_alter_table_public_bodyshops_add_column_tax_id/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "tax_id" text NULL; - type: run_sql diff --git a/hasura/migrations/1576009452288_alter_table_public_bodyshops_add_column_insurance_vendor_id/down.yaml b/hasura/migrations/1576009452288_alter_table_public_bodyshops_add_column_insurance_vendor_id/down.yaml deleted file mode 100644 index 9771ceb0d..000000000 --- a/hasura/migrations/1576009452288_alter_table_public_bodyshops_add_column_insurance_vendor_id/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "insurance_vendor_id"; - type: run_sql diff --git a/hasura/migrations/1576009452288_alter_table_public_bodyshops_add_column_insurance_vendor_id/up.yaml b/hasura/migrations/1576009452288_alter_table_public_bodyshops_add_column_insurance_vendor_id/up.yaml deleted file mode 100644 index 3d1b7db23..000000000 --- a/hasura/migrations/1576009452288_alter_table_public_bodyshops_add_column_insurance_vendor_id/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "insurance_vendor_id" text NULL; - type: run_sql diff --git a/hasura/migrations/1576009472439_alter_table_public_bodyshops_alter_column_tax_id/down.yaml b/hasura/migrations/1576009472439_alter_table_public_bodyshops_alter_column_tax_id/down.yaml deleted file mode 100644 index dae69cfeb..000000000 --- a/hasura/migrations/1576009472439_alter_table_public_bodyshops_alter_column_tax_id/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576009472439_alter_table_public_bodyshops_alter_column_tax_id/up.yaml b/hasura/migrations/1576009472439_alter_table_public_bodyshops_alter_column_tax_id/up.yaml deleted file mode 100644 index fc3a26d34..000000000 --- a/hasura/migrations/1576009472439_alter_table_public_bodyshops_alter_column_tax_id/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."bodyshops"."tax_id" IS E'' - type: run_sql -- args: - sql: alter table "public"."bodyshops" rename column "tax_id" to "federal_tax_id"; - type: run_sql diff --git a/hasura/migrations/1576009483197_alter_table_public_bodyshops_add_column_state_tax_id/down.yaml b/hasura/migrations/1576009483197_alter_table_public_bodyshops_add_column_state_tax_id/down.yaml deleted file mode 100644 index 6b4f763c3..000000000 --- a/hasura/migrations/1576009483197_alter_table_public_bodyshops_add_column_state_tax_id/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "state_tax_id"; - type: run_sql diff --git a/hasura/migrations/1576009483197_alter_table_public_bodyshops_add_column_state_tax_id/up.yaml b/hasura/migrations/1576009483197_alter_table_public_bodyshops_add_column_state_tax_id/up.yaml deleted file mode 100644 index d4104876f..000000000 --- a/hasura/migrations/1576009483197_alter_table_public_bodyshops_add_column_state_tax_id/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "state_tax_id" text NULL; - type: run_sql diff --git a/hasura/migrations/1576009562016_alter_table_public_bodyshops_add_column_logo_img_path/down.yaml b/hasura/migrations/1576009562016_alter_table_public_bodyshops_add_column_logo_img_path/down.yaml deleted file mode 100644 index c1fe5c716..000000000 --- a/hasura/migrations/1576009562016_alter_table_public_bodyshops_add_column_logo_img_path/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "logo_img_path"; - type: run_sql diff --git a/hasura/migrations/1576009562016_alter_table_public_bodyshops_add_column_logo_img_path/up.yaml b/hasura/migrations/1576009562016_alter_table_public_bodyshops_add_column_logo_img_path/up.yaml deleted file mode 100644 index 0596866cd..000000000 --- a/hasura/migrations/1576009562016_alter_table_public_bodyshops_add_column_logo_img_path/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "logo_img_path" text NULL; - type: run_sql diff --git a/hasura/migrations/1576014144093_create_table_public_vehicles/down.yaml b/hasura/migrations/1576014144093_create_table_public_vehicles/down.yaml deleted file mode 100644 index 4c070b9f6..000000000 --- a/hasura/migrations/1576014144093_create_table_public_vehicles/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."vehicles" - type: run_sql diff --git a/hasura/migrations/1576014144093_create_table_public_vehicles/up.yaml b/hasura/migrations/1576014144093_create_table_public_vehicles/up.yaml deleted file mode 100644 index 2880853aa..000000000 --- a/hasura/migrations/1576014144093_create_table_public_vehicles/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"vehicles\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"v_vin\" text NOT NULL, \"v_make_desc\" text, \"v_model_desc\" - text, \"v_model_yr\" text, \"v_color\" text, \"v_paint_codes\" jsonb, \"v_bstyle\" - text, \"v_engine\" text, \"plate_no\" text, \"shopid\" uuid NOT NULL, PRIMARY - KEY (\"id\") , FOREIGN KEY (\"shopid\") REFERENCES \"public\".\"bodyshops\"(\"id\") - ON UPDATE restrict ON DELETE cascade, UNIQUE (\"v_vin\", \"shopid\"));\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_vehicles_updated_at\"\nBEFORE - UPDATE ON \"public\".\"vehicles\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_vehicles_updated_at\" ON \"public\".\"vehicles\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';\n" - type: run_sql -- args: - name: vehicles - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1576014152478_add_relationship__table_public_vehicles/down.yaml b/hasura/migrations/1576014152478_add_relationship__table_public_vehicles/down.yaml deleted file mode 100644 index e7117546a..000000000 --- a/hasura/migrations/1576014152478_add_relationship__table_public_vehicles/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: bodyshop - table: - name: vehicles - schema: public - type: drop_relationship diff --git a/hasura/migrations/1576014152478_add_relationship__table_public_vehicles/up.yaml b/hasura/migrations/1576014152478_add_relationship__table_public_vehicles/up.yaml deleted file mode 100644 index b7ab5578b..000000000 --- a/hasura/migrations/1576014152478_add_relationship__table_public_vehicles/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - name: bodyshop - table: - name: vehicles - schema: public - using: - foreign_key_constraint_on: shopid - type: create_object_relationship diff --git a/hasura/migrations/1576014219996_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1576014219996_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 145e5dcdf..000000000 --- a/hasura/migrations/1576014219996_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1576014219996_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1576014219996_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index f54487992..000000000 --- a/hasura/migrations/1576014219996_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - columns: - - created_at - - plate_no - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576014226489_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1576014226489_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 0d775176a..000000000 --- a/hasura/migrations/1576014226489_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576014226489_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1576014226489_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index 498b856f8..000000000 --- a/hasura/migrations/1576014226489_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - v_paint_codes - - plate_no - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - created_at - - updated_at - - id - - shopid - filter: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - limit: null - role: user - table: - name: vehicles - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576014234136_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1576014234136_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 394f3940d..000000000 --- a/hasura/migrations/1576014234136_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1576014234136_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1576014234136_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index 901c337b7..000000000 --- a/hasura/migrations/1576014234136_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - permission: - columns: - - v_paint_codes - - plate_no - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - 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: vehicles - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576014238978_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1576014238978_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 8033cffd5..000000000 --- a/hasura/migrations/1576014238978_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1576014238978_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1576014238978_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index b7e62fdbc..000000000 --- a/hasura/migrations/1576014238978_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - permission: - filter: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - role: user - table: - name: vehicles - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1576014578461_create_table_public_owners/down.yaml b/hasura/migrations/1576014578461_create_table_public_owners/down.yaml deleted file mode 100644 index d772ddcce..000000000 --- a/hasura/migrations/1576014578461_create_table_public_owners/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."owners" - type: run_sql diff --git a/hasura/migrations/1576014578461_create_table_public_owners/up.yaml b/hasura/migrations/1576014578461_create_table_public_owners/up.yaml deleted file mode 100644 index a1a227d6e..000000000 --- a/hasura/migrations/1576014578461_create_table_public_owners/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"owners\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"first_name\" text, \"last_name\" text, \"address1\" - text, \"address2\" text, \"city\" text, \"state\" text, \"zip\" text, \"country\" - text, \"email\" text, \"phone\" text, \"preferred_contact\" text, \"allow_text_message\" - boolean NOT NULL DEFAULT false, \"shopid\" uuid NOT NULL, PRIMARY KEY (\"id\") - , FOREIGN KEY (\"shopid\") REFERENCES \"public\".\"bodyshops\"(\"id\") ON UPDATE - restrict ON DELETE cascade);\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_owners_updated_at\"\nBEFORE - UPDATE ON \"public\".\"owners\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_owners_updated_at\" ON \"public\".\"owners\" \nIS 'trigger - to set value of column \"updated_at\" to current timestamp on row update';\n" - type: run_sql -- args: - name: owners - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1576014584770_add_relationship__table_public_owners/down.yaml b/hasura/migrations/1576014584770_add_relationship__table_public_owners/down.yaml deleted file mode 100644 index 3d7b7e29c..000000000 --- a/hasura/migrations/1576014584770_add_relationship__table_public_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: bodyshop - table: - name: owners - schema: public - type: drop_relationship diff --git a/hasura/migrations/1576014584770_add_relationship__table_public_owners/up.yaml b/hasura/migrations/1576014584770_add_relationship__table_public_owners/up.yaml deleted file mode 100644 index 8fd3c368f..000000000 --- a/hasura/migrations/1576014584770_add_relationship__table_public_owners/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - name: bodyshop - table: - name: owners - schema: public - using: - foreign_key_constraint_on: shopid - type: create_object_relationship diff --git a/hasura/migrations/1576014629571_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1576014629571_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 915b657e4..000000000 --- a/hasura/migrations/1576014629571_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1576014629571_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1576014629571_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 595184554..000000000 --- a/hasura/migrations/1576014629571_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - columns: - - address1 - - address2 - - allow_text_message - - city - - country - - created_at - - email - - first_name - - last_name - - phone - - preferred_contact - - shopid - - state - - updated_at - - zip - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576014635512_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1576014635512_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 9f10ffd44..000000000 --- a/hasura/migrations/1576014635512_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576014635512_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1576014635512_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 98a5b8f08..000000000 --- a/hasura/migrations/1576014635512_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - allow_text_message - - address1 - - address2 - - city - - country - - email - - first_name - - last_name - - phone - - preferred_contact - - state - - zip - - created_at - - updated_at - - id - - shopid - filter: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - limit: null - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576014641407_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1576014641407_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index b94959d43..000000000 --- a/hasura/migrations/1576014641407_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1576014641407_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1576014641407_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 5a4e78743..000000000 --- a/hasura/migrations/1576014641407_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - permission: - columns: - - allow_text_message - - address1 - - address2 - - city - - country - - email - - first_name - - last_name - - phone - - preferred_contact - - state - - zip - - 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: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576014648112_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1576014648112_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index cbdd69319..000000000 --- a/hasura/migrations/1576014648112_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission -- args: - permission: - columns: - - allow_text_message - - address1 - - address2 - - city - - country - - email - - first_name - - last_name - - phone - - preferred_contact - - state - - zip - - 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: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576014648112_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1576014648112_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index cda1a6938..000000000 --- a/hasura/migrations/1576014648112_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - allow_text_message - - city - - country - - created_at - - email - - first_name - - last_name - - phone - - preferred_contact - - shopid - - state - - updated_at - - zip - filter: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576014651784_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1576014651784_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index d53d96596..000000000 --- a/hasura/migrations/1576014651784_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1576014651784_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1576014651784_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 7dc619799..000000000 --- a/hasura/migrations/1576014651784_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - permission: - filter: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1576014661584_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1576014661584_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index b3e750f91..000000000 --- a/hasura/migrations/1576014661584_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_update_permission -- args: - permission: - columns: - - v_paint_codes - - plate_no - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - 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: vehicles - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576014661584_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1576014661584_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index a7a205abc..000000000 --- a/hasura/migrations/1576014661584_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - plate_no - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - filter: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576014668520_add_relationship_vehicles_table_public_undefined/down.yaml b/hasura/migrations/1576014668520_add_relationship_vehicles_table_public_undefined/down.yaml deleted file mode 100644 index 483a9242a..000000000 --- a/hasura/migrations/1576014668520_add_relationship_vehicles_table_public_undefined/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: vehicles - table: - name: bodyshops - schema: public - type: drop_relationship diff --git a/hasura/migrations/1576014668520_add_relationship_vehicles_table_public_undefined/up.yaml b/hasura/migrations/1576014668520_add_relationship_vehicles_table_public_undefined/up.yaml deleted file mode 100644 index afedea7ca..000000000 --- a/hasura/migrations/1576014668520_add_relationship_vehicles_table_public_undefined/up.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - name: vehicles - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: shopid - table: - name: vehicles - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1576014670301_add_relationship_owners_table_public_undefined/down.yaml b/hasura/migrations/1576014670301_add_relationship_owners_table_public_undefined/down.yaml deleted file mode 100644 index ff2838d31..000000000 --- a/hasura/migrations/1576014670301_add_relationship_owners_table_public_undefined/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: owners - table: - name: bodyshops - schema: public - type: drop_relationship diff --git a/hasura/migrations/1576014670301_add_relationship_owners_table_public_undefined/up.yaml b/hasura/migrations/1576014670301_add_relationship_owners_table_public_undefined/up.yaml deleted file mode 100644 index ba42734e1..000000000 --- a/hasura/migrations/1576014670301_add_relationship_owners_table_public_undefined/up.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - name: owners - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: shopid - table: - name: owners - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1576014713339_alter_table_public_jobs_add_column_ownerid/down.yaml b/hasura/migrations/1576014713339_alter_table_public_jobs_add_column_ownerid/down.yaml deleted file mode 100644 index 0c41da42f..000000000 --- a/hasura/migrations/1576014713339_alter_table_public_jobs_add_column_ownerid/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "ownerid"; - type: run_sql diff --git a/hasura/migrations/1576014713339_alter_table_public_jobs_add_column_ownerid/up.yaml b/hasura/migrations/1576014713339_alter_table_public_jobs_add_column_ownerid/up.yaml deleted file mode 100644 index fce1126b5..000000000 --- a/hasura/migrations/1576014713339_alter_table_public_jobs_add_column_ownerid/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "ownerid" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1576014719854_alter_table_public_jobs_add_column_vehicleid/down.yaml b/hasura/migrations/1576014719854_alter_table_public_jobs_add_column_vehicleid/down.yaml deleted file mode 100644 index 268cf9ada..000000000 --- a/hasura/migrations/1576014719854_alter_table_public_jobs_add_column_vehicleid/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "vehicleid"; - type: run_sql diff --git a/hasura/migrations/1576014719854_alter_table_public_jobs_add_column_vehicleid/up.yaml b/hasura/migrations/1576014719854_alter_table_public_jobs_add_column_vehicleid/up.yaml deleted file mode 100644 index fbe57d467..000000000 --- a/hasura/migrations/1576014719854_alter_table_public_jobs_add_column_vehicleid/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "vehicleid" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1576015434120_jobs_rates_1/down.yaml b/hasura/migrations/1576015434120_jobs_rates_1/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1576015434120_jobs_rates_1/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1576015434120_jobs_rates_1/up.yaml b/hasura/migrations/1576015434120_jobs_rates_1/up.yaml deleted file mode 100644 index 94cdf6c46..000000000 --- a/hasura/migrations/1576015434120_jobs_rates_1/up.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- args: - cascade: true - sql: "alter table public.jobs\r\nadd column labor_rate_id text,\r\nadd column - labor_rate_desc text,\r\nadd column rate_lab numeric,\r\nadd column rate_lad - numeric,\r\nadd column rate_lae numeric,\r\nadd column rate_lar numeric,\r\nadd - column rate_las numeric,\r\nadd column rate_laf numeric,\r\nadd column rate_lam - numeric,\r\nadd column rate_lag numeric,\r\nadd column rate_atp numeric,\r\nadd - column rate_lau numeric,\r\nadd column rate_la1 numeric,\r\nadd column rate_la2 - numeric,\r\nadd column rate_la3 numeric,\r\nadd column rate_la4 numeric,\r\nadd - column rate_mapa numeric,\r\nadd column rate_mash numeric,\r\nadd column rate_mahw - numeric,\r\nadd column rate_ma2s numeric,\r\nadd column rate_ma3s numeric,\r\nadd - column rate_ma2t numeric,\r\nadd column rate_mabl numeric,\r\nadd column rate_macs - numeric,\r\nadd column rate_matd numeric,\r\nadd column federal_tax_rate numeric,\r\nadd - column state_tax_rate numeric,\r\nadd column local_tax_rate numeric\r\n" - type: run_sql diff --git a/hasura/migrations/1576016564351_jobs_data2/down.yaml b/hasura/migrations/1576016564351_jobs_data2/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1576016564351_jobs_data2/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1576016564351_jobs_data2/up.yaml b/hasura/migrations/1576016564351_jobs_data2/up.yaml deleted file mode 100644 index 90d9a8300..000000000 --- a/hasura/migrations/1576016564351_jobs_data2/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: true - sql: "alter table jobs\r\nadd column est_co_nm text,\r\nadd column est_addr1 text,\r\nadd - column est_addr2 text,\r\nadd column est_city text,\r\nadd column est_st text,\r\nadd - column est_zip text,\r\nadd column est_ctry text,\r\nadd column est_ph1 text,\r\nadd - column est_ea text,\r\nadd column est_ct_ln text,\r\nadd column est_ct_fn text,\r\nadd - column status text,\r\nadd column scheduled_in timestamp,\r\nadd column actual_in - timestamp,\r\nadd column scheduled_completion timestamp,\r\nadd column actual_completion - timestamp,\r\nadd column scheduled_delivery timestamp,\r\nadd column actual_delivery - timestamp,\r\nadd column regie_number text,\r\nadd column invoice_date date" - type: run_sql diff --git a/hasura/migrations/1576016661775_set_fk_public_jobs_vehicleid/down.yaml b/hasura/migrations/1576016661775_set_fk_public_jobs_vehicleid/down.yaml deleted file mode 100644 index 3429446a4..000000000 --- a/hasura/migrations/1576016661775_set_fk_public_jobs_vehicleid/down.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: "\n alter table \"public\".\"jobs\" drop constraint \"jobs_vehicleid_fkey\"\n - \ " - type: run_sql diff --git a/hasura/migrations/1576016661775_set_fk_public_jobs_vehicleid/up.yaml b/hasura/migrations/1576016661775_set_fk_public_jobs_vehicleid/up.yaml deleted file mode 100644 index 6602cf572..000000000 --- a/hasura/migrations/1576016661775_set_fk_public_jobs_vehicleid/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: "\n alter table \"public\".\"jobs\"\n add constraint - \"jobs_vehicleid_fkey\"\n foreign key (\"vehicleid\")\n references - \"public\".\"vehicles\"\n (\"id\") on update restrict on delete cascade;\n - \ " - type: run_sql diff --git a/hasura/migrations/1576016672583_set_fk_public_jobs_ownerid/down.yaml b/hasura/migrations/1576016672583_set_fk_public_jobs_ownerid/down.yaml deleted file mode 100644 index 1bb33177d..000000000 --- a/hasura/migrations/1576016672583_set_fk_public_jobs_ownerid/down.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: "\n alter table \"public\".\"jobs\" drop constraint \"jobs_ownerid_fkey\"\n - \ " - type: run_sql diff --git a/hasura/migrations/1576016672583_set_fk_public_jobs_ownerid/up.yaml b/hasura/migrations/1576016672583_set_fk_public_jobs_ownerid/up.yaml deleted file mode 100644 index bc532904a..000000000 --- a/hasura/migrations/1576016672583_set_fk_public_jobs_ownerid/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: "\n alter table \"public\".\"jobs\"\n add constraint - \"jobs_ownerid_fkey\"\n foreign key (\"ownerid\")\n references - \"public\".\"owners\"\n (\"id\") on update restrict on delete cascade;\n - \ " - type: run_sql diff --git a/hasura/migrations/1576018142298_track_all_relationships/down.yaml b/hasura/migrations/1576018142298_track_all_relationships/down.yaml deleted file mode 100644 index c2d1dfefa..000000000 --- a/hasura/migrations/1576018142298_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: vehicle - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: owner - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: jobs - table: - name: owners - schema: public - type: drop_relationship -- args: - relationship: jobs - table: - name: vehicles - schema: public - type: drop_relationship diff --git a/hasura/migrations/1576018142298_track_all_relationships/up.yaml b/hasura/migrations/1576018142298_track_all_relationships/up.yaml deleted file mode 100644 index 0d6247e2f..000000000 --- a/hasura/migrations/1576018142298_track_all_relationships/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - name: vehicle - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: vehicleid - type: create_object_relationship -- args: - name: owner - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: ownerid - type: create_object_relationship -- args: - name: jobs - table: - name: owners - schema: public - using: - foreign_key_constraint_on: - column: ownerid - table: - name: jobs - schema: public - type: create_array_relationship -- args: - name: jobs - table: - name: vehicles - schema: public - using: - foreign_key_constraint_on: - column: vehicleid - table: - name: jobs - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1576019378331_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576019378331_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index bb3b099a1..000000000 --- a/hasura/migrations/1576019378331_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576019378331_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576019378331_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 0209e3fd8..000000000 --- a/hasura/migrations/1576019378331_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,31 +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: - _and: - - authid: - _eq: X-Hasura-User-Id - - associations: - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576019497696_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1576019497696_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index f2c9abad1..000000000 --- a/hasura/migrations/1576019497696_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - computed_fields: [] - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576019497696_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1576019497696_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index e3d64f41a..000000000 --- a/hasura/migrations/1576019497696_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,19 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - computed_fields: [] - filter: {} - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576019542947_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1576019542947_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index 4ceaff51c..000000000 --- a/hasura/migrations/1576019542947_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopid - - useremail - computed_fields: [] - filter: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576019542947_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1576019542947_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index 1c9a62c76..000000000 --- a/hasura/migrations/1576019542947_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - id - - shopid - - useremail - computed_fields: [] - filter: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576019690098_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1576019690098_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index f91554e06..000000000 --- a/hasura/migrations/1576019690098_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576019690098_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1576019690098_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index c5e1a383e..000000000 --- a/hasura/migrations/1576019690098_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576019700601_delete_permission_user_public_table_users/down.yaml b/hasura/migrations/1576019700601_delete_permission_user_public_table_users/down.yaml deleted file mode 100644 index 09c93b79c..000000000 --- a/hasura/migrations/1576019700601_delete_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - permission: - check: {} - columns: [] - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: users - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576019700601_delete_permission_user_public_table_users/up.yaml b/hasura/migrations/1576019700601_delete_permission_user_public_table_users/up.yaml deleted file mode 100644 index 5022ed879..000000000 --- a/hasura/migrations/1576019700601_delete_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1576019716667_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1576019716667_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index c4393514e..000000000 --- a/hasura/migrations/1576019716667_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576019716667_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1576019716667_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 6613a7889..000000000 --- a/hasura/migrations/1576019716667_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,23 +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: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576019726586_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1576019726586_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 8ec4d6f35..000000000 --- a/hasura/migrations/1576019726586_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576019726586_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1576019726586_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 938874099..000000000 --- a/hasura/migrations/1576019726586_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_update_permission -- args: - permission: - columns: - - email - - authid - - created_at - - updated_at - filter: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: users - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576019895065_delete_permission_anonymous_public_table_users/down.yaml b/hasura/migrations/1576019895065_delete_permission_anonymous_public_table_users/down.yaml deleted file mode 100644 index 8ea476fcd..000000000 --- a/hasura/migrations/1576019895065_delete_permission_anonymous_public_table_users/down.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- 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 diff --git a/hasura/migrations/1576019895065_delete_permission_anonymous_public_table_users/up.yaml b/hasura/migrations/1576019895065_delete_permission_anonymous_public_table_users/up.yaml deleted file mode 100644 index 56426a31b..000000000 --- a/hasura/migrations/1576019895065_delete_permission_anonymous_public_table_users/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: users - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576020312696_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1576020312696_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 6613a7889..000000000 --- a/hasura/migrations/1576020312696_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,23 +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: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576020312696_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1576020312696_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index c4393514e..000000000 --- a/hasura/migrations/1576020312696_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576021306809_remove_roles_public_table_users/down.yaml b/hasura/migrations/1576021306809_remove_roles_public_table_users/down.yaml deleted file mode 100644 index f55c32110..000000000 --- a/hasura/migrations/1576021306809_remove_roles_public_table_users/down.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - permission: - columns: - - email - - authid - - created_at - - updated_at - filter: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: users - schema: public - type: create_update_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 diff --git a/hasura/migrations/1576021306809_remove_roles_public_table_users/up.yaml b/hasura/migrations/1576021306809_remove_roles_public_table_users/up.yaml deleted file mode 100644 index ab784a897..000000000 --- a/hasura/migrations/1576021306809_remove_roles_public_table_users/up.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_update_permission -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576021327368_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1576021327368_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 9e5d0dbf1..000000000 --- a/hasura/migrations/1576021327368_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576021327368_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1576021327368_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 08fc57258..000000000 --- a/hasura/migrations/1576021327368_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: [] - filter: {} - limit: null - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576021331871_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1576021331871_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index a3fa7864c..000000000 --- a/hasura/migrations/1576021331871_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: [] - computed_fields: [] - filter: {} - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576021331871_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1576021331871_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index c4393514e..000000000 --- a/hasura/migrations/1576021331871_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576021618689_remove_roles_public_table_users/down.yaml b/hasura/migrations/1576021618689_remove_roles_public_table_users/down.yaml deleted file mode 100644 index 15c2c2629..000000000 --- a/hasura/migrations/1576021618689_remove_roles_public_table_users/down.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- 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 diff --git a/hasura/migrations/1576021618689_remove_roles_public_table_users/up.yaml b/hasura/migrations/1576021618689_remove_roles_public_table_users/up.yaml deleted file mode 100644 index 9e5d0dbf1..000000000 --- a/hasura/migrations/1576021618689_remove_roles_public_table_users/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576021625374_remove_roles_public_table_associations/down.yaml b/hasura/migrations/1576021625374_remove_roles_public_table_associations/down.yaml deleted file mode 100644 index b4753db35..000000000 --- a/hasura/migrations/1576021625374_remove_roles_public_table_associations/down.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - active - - id - - shopid - - useremail - computed_fields: [] - filter: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576021625374_remove_roles_public_table_associations/up.yaml b/hasura/migrations/1576021625374_remove_roles_public_table_associations/up.yaml deleted file mode 100644 index 27cf8ba1e..000000000 --- a/hasura/migrations/1576021625374_remove_roles_public_table_associations/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576021632302_remove_roles_public_table_bodyshops/down.yaml b/hasura/migrations/1576021632302_remove_roles_public_table_bodyshops/down.yaml deleted file mode 100644 index 90a4769ac..000000000 --- a/hasura/migrations/1576021632302_remove_roles_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - computed_fields: [] - filter: {} - role: user - table: - name: bodyshops - schema: public - type: create_select_permission -- args: - permission: - columns: - - shopname - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576021632302_remove_roles_public_table_bodyshops/up.yaml b/hasura/migrations/1576021632302_remove_roles_public_table_bodyshops/up.yaml deleted file mode 100644 index cb036e22d..000000000 --- a/hasura/migrations/1576021632302_remove_roles_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1576021639806_remove_roles_public_table_jobs/down.yaml b/hasura/migrations/1576021639806_remove_roles_public_table_jobs/down.yaml deleted file mode 100644 index 36cc11dad..000000000 --- a/hasura/migrations/1576021639806_remove_roles_public_table_jobs/down.yaml +++ /dev/null @@ -1,93 +0,0 @@ -- 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 - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_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 - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_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 -- args: - permission: - allow_aggregations: false - columns: - - est_number - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - user: - _and: - - authid: - _eq: X-Hasura-User-Id - - associations: - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576021639806_remove_roles_public_table_jobs/up.yaml b/hasura/migrations/1576021639806_remove_roles_public_table_jobs/up.yaml deleted file mode 100644 index 25d7bd2d6..000000000 --- a/hasura/migrations/1576021639806_remove_roles_public_table_jobs/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - role: user - table: - name: jobs - schema: public - type: drop_delete_permission -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576021647414_remove_roles_public_table_masterdata/down.yaml b/hasura/migrations/1576021647414_remove_roles_public_table_masterdata/down.yaml deleted file mode 100644 index f7b4707b8..000000000 --- a/hasura/migrations/1576021647414_remove_roles_public_table_masterdata/down.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - key - - value - computed_fields: [] - filter: {} - role: user - table: - name: masterdata - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576021647414_remove_roles_public_table_masterdata/up.yaml b/hasura/migrations/1576021647414_remove_roles_public_table_masterdata/up.yaml deleted file mode 100644 index 2bd7ff797..000000000 --- a/hasura/migrations/1576021647414_remove_roles_public_table_masterdata/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: masterdata - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576021655502_remove_roles_public_table_owners/down.yaml b/hasura/migrations/1576021655502_remove_roles_public_table_owners/down.yaml deleted file mode 100644 index 02681885d..000000000 --- a/hasura/migrations/1576021655502_remove_roles_public_table_owners/down.yaml +++ /dev/null @@ -1,125 +0,0 @@ -- args: - permission: - check: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - columns: - - address1 - - address2 - - allow_text_message - - city - - country - - created_at - - email - - first_name - - last_name - - phone - - preferred_contact - - shopid - - state - - updated_at - - zip - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission -- args: - permission: - allow_aggregations: false - columns: - - allow_text_message - - address1 - - address2 - - city - - country - - email - - first_name - - last_name - - phone - - preferred_contact - - state - - zip - - 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: owners - schema: public - type: create_select_permission -- args: - permission: - columns: - - address1 - - address2 - - allow_text_message - - city - - country - - created_at - - email - - first_name - - last_name - - phone - - preferred_contact - - shopid - - state - - updated_at - - zip - filter: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission -- args: - permission: - filter: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1576021655502_remove_roles_public_table_owners/up.yaml b/hasura/migrations/1576021655502_remove_roles_public_table_owners/up.yaml deleted file mode 100644 index 618bfa53b..000000000 --- a/hasura/migrations/1576021655502_remove_roles_public_table_owners/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission -- args: - role: user - table: - name: owners - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1576021673775_remove_roles_public_table_vehicles/down.yaml b/hasura/migrations/1576021673775_remove_roles_public_table_vehicles/down.yaml deleted file mode 100644 index 13f73aefc..000000000 --- a/hasura/migrations/1576021673775_remove_roles_public_table_vehicles/down.yaml +++ /dev/null @@ -1,116 +0,0 @@ -- args: - permission: - check: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - columns: - - created_at - - plate_no - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - set: {} - role: user - table: - name: vehicles - schema: public - type: create_insert_permission -- args: - permission: - allow_aggregations: false - columns: - - v_paint_codes - - plate_no - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - 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: vehicles - schema: public - type: create_select_permission -- args: - permission: - filter: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - role: user - table: - name: vehicles - schema: public - type: create_delete_permission -- args: - permission: - columns: - - created_at - - plate_no - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - filter: - _and: - - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - - bodyshop: - associations: - active: - _eq: true - set: {} - role: user - table: - name: vehicles - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576021673775_remove_roles_public_table_vehicles/up.yaml b/hasura/migrations/1576021673775_remove_roles_public_table_vehicles/up.yaml deleted file mode 100644 index 860b7b224..000000000 --- a/hasura/migrations/1576021673775_remove_roles_public_table_vehicles/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_insert_permission -- args: - role: user - table: - name: vehicles - schema: public - type: drop_select_permission -- args: - role: user - table: - name: vehicles - schema: public - type: drop_delete_permission -- args: - role: user - table: - name: vehicles - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1576021723657_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1576021723657_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 9e5d0dbf1..000000000 --- a/hasura/migrations/1576021723657_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576021723657_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1576021723657_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index b01b3fab9..000000000 --- a/hasura/migrations/1576021723657_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - email - - authid - - created_at - - updated_at - filter: {} - limit: null - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576022310317_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1576022310317_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 90e77dce3..000000000 --- a/hasura/migrations/1576022310317_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - email - - authid - - created_at - - updated_at - computed_fields: [] - filter: {} - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576022310317_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1576022310317_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index bf559d77f..000000000 --- a/hasura/migrations/1576022310317_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - email - - authid - - created_at - - updated_at - computed_fields: [] - filter: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576022435103_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1576022435103_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 63eb45960..000000000 --- a/hasura/migrations/1576022435103_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1576022435103_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1576022435103_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 92d1a5734..000000000 --- a/hasura/migrations/1576022435103_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,19 +0,0 @@ -- args: - permission: - columns: - - authid - - email - - created_at - - updated_at - filter: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: users - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576022455887_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1576022455887_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index 27cf8ba1e..000000000 --- a/hasura/migrations/1576022455887_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576022455887_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1576022455887_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index 234ba2a51..000000000 --- a/hasura/migrations/1576022455887_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - id - - shopid - - useremail - - active - filter: - user: - authid: - _eq: X-Hasura-User-Id - limit: null - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576022465318_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1576022465318_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index f2a2b2d6e..000000000 --- a/hasura/migrations/1576022465318_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1576022465318_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1576022465318_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index 0dcecbd40..000000000 --- a/hasura/migrations/1576022465318_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - columns: - - active - filter: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: associations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576026461536_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1576026461536_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 8559c1bd2..000000000 --- a/hasura/migrations/1576026461536_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576026461536_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1576026461536_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index f880085fd..000000000 --- a/hasura/migrations/1576026461536_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - filter: - _and: - - associations: - user: - authid: - _eq: X-Hasura-User-Id - - associations: - active: - _eq: true - limit: null - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576026582675_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1576026582675_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index e590073ac..000000000 --- a/hasura/migrations/1576026582675_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - computed_fields: [] - filter: - _and: - - associations: - user: - authid: - _eq: X-Hasura-User-Id - - associations: - active: - _eq: true - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576026582675_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1576026582675_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 49abf772b..000000000 --- a/hasura/migrations/1576026582675_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - computed_fields: [] - filter: - associations: - user: - _and: - - authid: - _eq: X-Hasura-User-Id - - associations: - active: - _eq: true - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576026751366_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1576026751366_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 49abf772b..000000000 --- a/hasura/migrations/1576026751366_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - computed_fields: [] - filter: - associations: - user: - _and: - - authid: - _eq: X-Hasura-User-Id - - associations: - active: - _eq: true - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576026751366_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1576026751366_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 3cbdf35a3..000000000 --- a/hasura/migrations/1576026751366_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - computed_fields: [] - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576026882282_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1576026882282_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 0c08e2319..000000000 --- a/hasura/migrations/1576026882282_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1576026882282_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1576026882282_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 849d36b02..000000000 --- a/hasura/migrations/1576026882282_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - insurance_vendor_id - - logo_img_path - - shopname - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576026931133_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576026931133_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 30afb6bd8..000000000 --- a/hasura/migrations/1576026931133_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1576026931133_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576026931133_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index fb514ccf0..000000000 --- a/hasura/migrations/1576026931133_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - created_at - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576026955649_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576026955649_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 042242267..000000000 --- a/hasura/migrations/1576026955649_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576026955649_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576026955649_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 8e3cb9305..000000000 --- a/hasura/migrations/1576026955649_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - invoice_date - - federal_tax_rate - - local_tax_rate - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - labor_rate_desc - - labor_rate_id - - regie_number - - ro_number - - status - - actual_completion - - actual_delivery - - actual_in - - scheduled_completion - - scheduled_delivery - - scheduled_in - - created_at - - updated_at - - id - - ownerid - - shopid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576026973657_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576026973657_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 8bb0759ac..000000000 --- a/hasura/migrations/1576026973657_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1576026973657_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576026973657_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 655fa9994..000000000 --- a/hasura/migrations/1576026973657_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - created_at - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576026979367_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576026979367_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index e1abc5cdb..000000000 --- a/hasura/migrations/1576026979367_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1576026979367_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576026979367_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index b9b46a6ca..000000000 --- a/hasura/migrations/1576026979367_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1576026999608_update_permission_user_public_table_masterdata/down.yaml b/hasura/migrations/1576026999608_update_permission_user_public_table_masterdata/down.yaml deleted file mode 100644 index 2bd7ff797..000000000 --- a/hasura/migrations/1576026999608_update_permission_user_public_table_masterdata/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: masterdata - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576026999608_update_permission_user_public_table_masterdata/up.yaml b/hasura/migrations/1576026999608_update_permission_user_public_table_masterdata/up.yaml deleted file mode 100644 index 8ac525b23..000000000 --- a/hasura/migrations/1576026999608_update_permission_user_public_table_masterdata/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - key - - value - filter: {} - limit: null - role: user - table: - name: masterdata - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576027033657_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1576027033657_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 9f10ffd44..000000000 --- a/hasura/migrations/1576027033657_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576027033657_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1576027033657_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 8eb088bde..000000000 --- a/hasura/migrations/1576027033657_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - id - - created_at - - updated_at - - first_name - - last_name - - address1 - - address2 - - city - - state - - zip - - country - - email - - phone - - preferred_contact - - allow_text_message - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576027044808_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1576027044808_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 915b657e4..000000000 --- a/hasura/migrations/1576027044808_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1576027044808_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1576027044808_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index fbaa51189..000000000 --- a/hasura/migrations/1576027044808_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - allow_text_message - - address1 - - address2 - - city - - country - - email - - first_name - - last_name - - phone - - preferred_contact - - state - - zip - - created_at - - updated_at - - id - - shopid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576027050551_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1576027050551_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index d53d96596..000000000 --- a/hasura/migrations/1576027050551_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1576027050551_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1576027050551_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 2983aad0e..000000000 --- a/hasura/migrations/1576027050551_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1576027068096_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1576027068096_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index b94959d43..000000000 --- a/hasura/migrations/1576027068096_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1576027068096_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1576027068096_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index abfb7676a..000000000 --- a/hasura/migrations/1576027068096_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - permission: - columns: - - address1 - - address2 - - allow_text_message - - city - - country - - created_at - - email - - first_name - - last_name - - phone - - preferred_contact - - shopid - - state - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576027104076_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1576027104076_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 145e5dcdf..000000000 --- a/hasura/migrations/1576027104076_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1576027104076_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1576027104076_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index 75a6bedb4..000000000 --- a/hasura/migrations/1576027104076_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: [] - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576027112480_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1576027112480_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 0d775176a..000000000 --- a/hasura/migrations/1576027112480_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576027112480_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1576027112480_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index 97269d3fd..000000000 --- a/hasura/migrations/1576027112480_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - created_at - - id - - plate_no - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: vehicles - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576027119200_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1576027119200_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 394f3940d..000000000 --- a/hasura/migrations/1576027119200_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1576027119200_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1576027119200_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index 43129fe54..000000000 --- a/hasura/migrations/1576027119200_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - permission: - columns: - - created_at - - plate_no - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576027123711_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1576027123711_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 8033cffd5..000000000 --- a/hasura/migrations/1576027123711_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1576027123711_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1576027123711_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index 9a333f12e..000000000 --- a/hasura/migrations/1576027123711_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vehicles - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1576029072284_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1576029072284_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 5022ed879..000000000 --- a/hasura/migrations/1576029072284_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1576029072284_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1576029072284_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index abd3f4a2f..000000000 --- a/hasura/migrations/1576029072284_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576029179533_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1576029179533_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index c5e1a383e..000000000 --- a/hasura/migrations/1576029179533_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -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 diff --git a/hasura/migrations/1576029179533_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1576029179533_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 4e6739f81..000000000 --- a/hasura/migrations/1576029179533_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_insert_permission -- args: - permission: - check: {} - columns: - - authid - - email - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: users - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576535281752_alter_table_public_jobs_add_column_claim_total/down.yaml b/hasura/migrations/1576535281752_alter_table_public_jobs_add_column_claim_total/down.yaml deleted file mode 100644 index 9962c7227..000000000 --- a/hasura/migrations/1576535281752_alter_table_public_jobs_add_column_claim_total/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "claim_total"; - type: run_sql diff --git a/hasura/migrations/1576535281752_alter_table_public_jobs_add_column_claim_total/up.yaml b/hasura/migrations/1576535281752_alter_table_public_jobs_add_column_claim_total/up.yaml deleted file mode 100644 index da2211212..000000000 --- a/hasura/migrations/1576535281752_alter_table_public_jobs_add_column_claim_total/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "claim_total" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1576535291979_alter_table_public_jobs_add_column_deducitble/down.yaml b/hasura/migrations/1576535291979_alter_table_public_jobs_add_column_deducitble/down.yaml deleted file mode 100644 index 4843e177d..000000000 --- a/hasura/migrations/1576535291979_alter_table_public_jobs_add_column_deducitble/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "deducitble"; - type: run_sql diff --git a/hasura/migrations/1576535291979_alter_table_public_jobs_add_column_deducitble/up.yaml b/hasura/migrations/1576535291979_alter_table_public_jobs_add_column_deducitble/up.yaml deleted file mode 100644 index 3ca55acc7..000000000 --- a/hasura/migrations/1576535291979_alter_table_public_jobs_add_column_deducitble/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "deducitble" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1576535325194_alter_table_public_jobs_alter_column_deducitble/down.yaml b/hasura/migrations/1576535325194_alter_table_public_jobs_alter_column_deducitble/down.yaml deleted file mode 100644 index aeca06626..000000000 --- a/hasura/migrations/1576535325194_alter_table_public_jobs_alter_column_deducitble/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE ONLY "public"."jobs" ALTER COLUMN "deducitble" SET DEFAULT 0; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."deducitble" IS E'null' - type: run_sql diff --git a/hasura/migrations/1576535325194_alter_table_public_jobs_alter_column_deducitble/up.yaml b/hasura/migrations/1576535325194_alter_table_public_jobs_alter_column_deducitble/up.yaml deleted file mode 100644 index 9d5ce5e31..000000000 --- a/hasura/migrations/1576535325194_alter_table_public_jobs_alter_column_deducitble/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE ONLY "public"."jobs" ALTER COLUMN "deducitble" SET DEFAULT 0; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."deducitble" IS E'' - type: run_sql diff --git a/hasura/migrations/1576535331249_alter_table_public_jobs_alter_column_claim_total/down.yaml b/hasura/migrations/1576535331249_alter_table_public_jobs_alter_column_claim_total/down.yaml deleted file mode 100644 index 9422e952a..000000000 --- a/hasura/migrations/1576535331249_alter_table_public_jobs_alter_column_claim_total/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE ONLY "public"."jobs" ALTER COLUMN "claim_total" SET DEFAULT 0; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."claim_total" IS E'null' - type: run_sql diff --git a/hasura/migrations/1576535331249_alter_table_public_jobs_alter_column_claim_total/up.yaml b/hasura/migrations/1576535331249_alter_table_public_jobs_alter_column_claim_total/up.yaml deleted file mode 100644 index a55ee0000..000000000 --- a/hasura/migrations/1576535331249_alter_table_public_jobs_alter_column_claim_total/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE ONLY "public"."jobs" ALTER COLUMN "claim_total" SET DEFAULT 0; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."claim_total" IS E'' - type: run_sql diff --git a/hasura/migrations/1576535389457_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576535389457_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 8b3bf4f17..000000000 --- a/hasura/migrations/1576535389457_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,82 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - created_at - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576535389457_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576535389457_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 15a874168..000000000 --- a/hasura/migrations/1576535389457_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,84 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deducitble - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576535397848_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576535397848_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 2cab84166..000000000 --- a/hasura/migrations/1576535397848_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,81 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - invoice_date - - federal_tax_rate - - local_tax_rate - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - labor_rate_desc - - labor_rate_id - - regie_number - - ro_number - - status - - actual_completion - - actual_delivery - - actual_in - - scheduled_completion - - scheduled_delivery - - scheduled_in - - created_at - - updated_at - - id - - ownerid - - shopid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576535397848_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576535397848_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 9a3c6d01b..000000000 --- a/hasura/migrations/1576535397848_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,83 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deducitble - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576535406904_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576535406904_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 10ed07cd3..000000000 --- a/hasura/migrations/1576535406904_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,82 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - created_at - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576535406904_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576535406904_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 559577e7b..000000000 --- a/hasura/migrations/1576535406904_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,84 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deducitble - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576535450019_alter_table_public_jobs_alter_column_deducitble/down.yaml b/hasura/migrations/1576535450019_alter_table_public_jobs_alter_column_deducitble/down.yaml deleted file mode 100644 index a5c10f54e..000000000 --- a/hasura/migrations/1576535450019_alter_table_public_jobs_alter_column_deducitble/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."deducitble" IS E'null' - type: run_sql -- args: - sql: alter table "public"."jobs" rename column "deductible" to "deducitble"; - type: run_sql diff --git a/hasura/migrations/1576535450019_alter_table_public_jobs_alter_column_deducitble/up.yaml b/hasura/migrations/1576535450019_alter_table_public_jobs_alter_column_deducitble/up.yaml deleted file mode 100644 index 43f679e73..000000000 --- a/hasura/migrations/1576535450019_alter_table_public_jobs_alter_column_deducitble/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."deducitble" IS E'' - type: run_sql -- args: - sql: alter table "public"."jobs" rename column "deducitble" to "deductible"; - type: run_sql diff --git a/hasura/migrations/1576545362627_create_table_public_joblines/down.yaml b/hasura/migrations/1576545362627_create_table_public_joblines/down.yaml deleted file mode 100644 index cf8ad114d..000000000 --- a/hasura/migrations/1576545362627_create_table_public_joblines/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."joblines" - type: run_sql diff --git a/hasura/migrations/1576545362627_create_table_public_joblines/up.yaml b/hasura/migrations/1576545362627_create_table_public_joblines/up.yaml deleted file mode 100644 index da0b6b197..000000000 --- a/hasura/migrations/1576545362627_create_table_public_joblines/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"joblines\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"jobid\" uuid NOT NULL, \"unq_seq\" integer, \"line_ind\" - text, \"line_desc\" text, \"part_type\" text, \"oem_partno\" text, \"est_seq\" - integer, \"db_ref\" text, \"line_ref\" text, \"tax_part\" boolean NOT NULL DEFAULT - true, \"db_price\" numeric, \"act_price\" numeric, \"part_qty\" integer, \"alt_partno\" - text, \"mod_lbr_ty\" text, \"db_hrs\" numeric, \"mod_lb_hrs\" numeric, \"lbr_op\" - text, \"lbr_amt\" numeric, PRIMARY KEY (\"id\") , FOREIGN KEY (\"jobid\") REFERENCES - \"public\".\"jobs\"(\"id\") ON UPDATE cascade ON DELETE cascade);\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_joblines_updated_at\"\nBEFORE - UPDATE ON \"public\".\"joblines\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_joblines_updated_at\" ON \"public\".\"joblines\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';\n" - type: run_sql -- args: - name: joblines - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1576545371943_track_all_relationships/down.yaml b/hasura/migrations/1576545371943_track_all_relationships/down.yaml deleted file mode 100644 index 9a850b159..000000000 --- a/hasura/migrations/1576545371943_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: job - table: - name: joblines - schema: public - type: drop_relationship -- args: - relationship: joblines - table: - name: jobs - schema: public - type: drop_relationship diff --git a/hasura/migrations/1576545371943_track_all_relationships/up.yaml b/hasura/migrations/1576545371943_track_all_relationships/up.yaml deleted file mode 100644 index 34e894140..000000000 --- a/hasura/migrations/1576545371943_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: job - table: - name: joblines - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship -- args: - name: joblines - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: joblines - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1576545448467_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1576545448467_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index d290bbba0..000000000 --- a/hasura/migrations/1576545448467_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1576545448467_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1576545448467_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index c3c78f1c5..000000000 --- a/hasura/migrations/1576545448467_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - unq_seq - - line_ind - - line_desc - - part_type - - oem_partno - - est_seq - - db_ref - - line_ref - - tax_part - - db_price - - act_price - - part_qty - - alt_partno - - mod_lbr_ty - - db_hrs - - mod_lb_hrs - - lbr_op - - lbr_amt - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576545454196_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1576545454196_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 89e5a61ad..000000000 --- a/hasura/migrations/1576545454196_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1576545454196_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1576545454196_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 2fd92b690..000000000 --- a/hasura/migrations/1576545454196_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - tax_part - - est_seq - - part_qty - - unq_seq - - act_price - - db_hrs - - db_price - - lbr_amt - - mod_lb_hrs - - alt_partno - - db_ref - - lbr_op - - line_desc - - line_ind - - line_ref - - mod_lbr_ty - - oem_partno - - part_type - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576545472510_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1576545472510_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index e97fa62bd..000000000 --- a/hasura/migrations/1576545472510_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1576545472510_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1576545472510_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 006378c0b..000000000 --- a/hasura/migrations/1576545472510_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - permission: - columns: - - tax_part - - est_seq - - part_qty - - unq_seq - - act_price - - db_hrs - - db_price - - lbr_amt - - mod_lb_hrs - - alt_partno - - db_ref - - lbr_op - - line_desc - - line_ind - - line_ref - - mod_lbr_ty - - oem_partno - - part_type - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576545476731_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1576545476731_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 0578ffde5..000000000 --- a/hasura/migrations/1576545476731_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1576545476731_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1576545476731_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index ffc97a4a3..000000000 --- a/hasura/migrations/1576545476731_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1576606149211_alter_table_public_jobs_add_column_inproduction/down.yaml b/hasura/migrations/1576606149211_alter_table_public_jobs_add_column_inproduction/down.yaml deleted file mode 100644 index 3a9f7c568..000000000 --- a/hasura/migrations/1576606149211_alter_table_public_jobs_add_column_inproduction/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "inproduction"; - type: run_sql diff --git a/hasura/migrations/1576606149211_alter_table_public_jobs_add_column_inproduction/up.yaml b/hasura/migrations/1576606149211_alter_table_public_jobs_add_column_inproduction/up.yaml deleted file mode 100644 index 3ee249f52..000000000 --- a/hasura/migrations/1576606149211_alter_table_public_jobs_add_column_inproduction/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "inproduction" boolean NOT NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1576606158614_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576606158614_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 25d60dd04..000000000 --- a/hasura/migrations/1576606158614_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,84 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576606158614_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576606158614_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 441e6cb60..000000000 --- a/hasura/migrations/1576606158614_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,85 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1576606166716_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576606166716_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 8639821a4..000000000 --- a/hasura/migrations/1576606166716_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,83 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576606166716_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576606166716_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 43909ecda..000000000 --- a/hasura/migrations/1576606166716_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,84 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576606172105_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1576606172105_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 48603a111..000000000 --- a/hasura/migrations/1576606172105_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,84 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576606172105_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1576606172105_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4c7f7ed40..000000000 --- a/hasura/migrations/1576606172105_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,85 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576610555668_alter_table_public_bodyshops_add_column_md_ro_statuses/down.yaml b/hasura/migrations/1576610555668_alter_table_public_bodyshops_add_column_md_ro_statuses/down.yaml deleted file mode 100644 index d76b836ba..000000000 --- a/hasura/migrations/1576610555668_alter_table_public_bodyshops_add_column_md_ro_statuses/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_ro_statuses"; - type: run_sql diff --git a/hasura/migrations/1576610555668_alter_table_public_bodyshops_add_column_md_ro_statuses/up.yaml b/hasura/migrations/1576610555668_alter_table_public_bodyshops_add_column_md_ro_statuses/up.yaml deleted file mode 100644 index c2da527b4..000000000 --- a/hasura/migrations/1576610555668_alter_table_public_bodyshops_add_column_md_ro_statuses/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_ro_statuses" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1576610596670_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1576610596670_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 3cbdf35a3..000000000 --- a/hasura/migrations/1576610596670_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - computed_fields: [] - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576610596670_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1576610596670_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 1b6c6d9db..000000000 --- a/hasura/migrations/1576610596670_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_ro_statuses - - shopname - - state - - state_tax_id - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1576610605007_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1576610605007_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 45ac1635b..000000000 --- a/hasura/migrations/1576610605007_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - insurance_vendor_id - - logo_img_path - - shopname - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1576610605007_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1576610605007_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index b5b542a8b..000000000 --- a/hasura/migrations/1576610605007_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - insurance_vendor_id - - logo_img_path - - md_ro_statuses - - shopname - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1577753580584_create_table_public_job_status/down.yaml b/hasura/migrations/1577753580584_create_table_public_job_status/down.yaml deleted file mode 100644 index d10304097..000000000 --- a/hasura/migrations/1577753580584_create_table_public_job_status/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."job_status" - type: run_sql diff --git a/hasura/migrations/1577753580584_create_table_public_job_status/up.yaml b/hasura/migrations/1577753580584_create_table_public_job_status/up.yaml deleted file mode 100644 index 9c74abada..000000000 --- a/hasura/migrations/1577753580584_create_table_public_job_status/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"job_status\"(\"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, \"name\" text NOT NULL, \"isproductionstatus\" - boolean DEFAULT true, PRIMARY KEY (\"id\") , FOREIGN KEY (\"shopid\") REFERENCES - \"public\".\"bodyshops\"(\"id\") ON UPDATE cascade ON DELETE cascade);\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_job_status_updated_at\"\nBEFORE - UPDATE ON \"public\".\"job_status\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_job_status_updated_at\" ON \"public\".\"job_status\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';\n" - type: run_sql -- args: - name: job_status - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1577753590084_track_all_relationships/down.yaml b/hasura/migrations/1577753590084_track_all_relationships/down.yaml deleted file mode 100644 index 43edc2a92..000000000 --- a/hasura/migrations/1577753590084_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: job_statuses - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: job_status - schema: public - type: drop_relationship diff --git a/hasura/migrations/1577753590084_track_all_relationships/up.yaml b/hasura/migrations/1577753590084_track_all_relationships/up.yaml deleted file mode 100644 index 0aec67e6f..000000000 --- a/hasura/migrations/1577753590084_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: job_statuses - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: shopid - table: - name: job_status - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: job_status - schema: public - using: - foreign_key_constraint_on: shopid - type: create_object_relationship diff --git a/hasura/migrations/1577753654005_update_permission_user_public_table_job_status/down.yaml b/hasura/migrations/1577753654005_update_permission_user_public_table_job_status/down.yaml deleted file mode 100644 index 3c01a272c..000000000 --- a/hasura/migrations/1577753654005_update_permission_user_public_table_job_status/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1577753654005_update_permission_user_public_table_job_status/up.yaml b/hasura/migrations/1577753654005_update_permission_user_public_table_job_status/up.yaml deleted file mode 100644 index 1d4a83fee..000000000 --- a/hasura/migrations/1577753654005_update_permission_user_public_table_job_status/up.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - name - - isproductionstatus - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: job_status - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1577753660685_update_permission_user_public_table_job_status/down.yaml b/hasura/migrations/1577753660685_update_permission_user_public_table_job_status/down.yaml deleted file mode 100644 index 85d7d08dd..000000000 --- a/hasura/migrations/1577753660685_update_permission_user_public_table_job_status/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1577753660685_update_permission_user_public_table_job_status/up.yaml b/hasura/migrations/1577753660685_update_permission_user_public_table_job_status/up.yaml deleted file mode 100644 index 019f4d0d5..000000000 --- a/hasura/migrations/1577753660685_update_permission_user_public_table_job_status/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - isproductionstatus - - name - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: job_status - schema: public - type: create_select_permission diff --git a/hasura/migrations/1577753667543_update_permission_user_public_table_job_status/down.yaml b/hasura/migrations/1577753667543_update_permission_user_public_table_job_status/down.yaml deleted file mode 100644 index 42b51ea3e..000000000 --- a/hasura/migrations/1577753667543_update_permission_user_public_table_job_status/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1577753667543_update_permission_user_public_table_job_status/up.yaml b/hasura/migrations/1577753667543_update_permission_user_public_table_job_status/up.yaml deleted file mode 100644 index 01f9af7c7..000000000 --- a/hasura/migrations/1577753667543_update_permission_user_public_table_job_status/up.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- args: - permission: - columns: - - isproductionstatus - - name - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: job_status - schema: public - type: create_update_permission diff --git a/hasura/migrations/1577753671228_update_permission_user_public_table_job_status/down.yaml b/hasura/migrations/1577753671228_update_permission_user_public_table_job_status/down.yaml deleted file mode 100644 index 05f10e122..000000000 --- a/hasura/migrations/1577753671228_update_permission_user_public_table_job_status/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1577753671228_update_permission_user_public_table_job_status/up.yaml b/hasura/migrations/1577753671228_update_permission_user_public_table_job_status/up.yaml deleted file mode 100644 index e26a5a3ac..000000000 --- a/hasura/migrations/1577753671228_update_permission_user_public_table_job_status/up.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: job_status - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1577753836472_alter_table_public_job_status_add_column_order/down.yaml b/hasura/migrations/1577753836472_alter_table_public_job_status_add_column_order/down.yaml deleted file mode 100644 index 8cb88c3ba..000000000 --- a/hasura/migrations/1577753836472_alter_table_public_job_status_add_column_order/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."job_status" DROP COLUMN "order"; - type: run_sql diff --git a/hasura/migrations/1577753836472_alter_table_public_job_status_add_column_order/up.yaml b/hasura/migrations/1577753836472_alter_table_public_job_status_add_column_order/up.yaml deleted file mode 100644 index 62e285270..000000000 --- a/hasura/migrations/1577753836472_alter_table_public_job_status_add_column_order/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."job_status" ADD COLUMN "order" integer NOT NULL DEFAULT - 0; - type: run_sql diff --git a/hasura/migrations/1577753849417_update_permission_user_public_table_job_status/down.yaml b/hasura/migrations/1577753849417_update_permission_user_public_table_job_status/down.yaml deleted file mode 100644 index a1ce5f46f..000000000 --- a/hasura/migrations/1577753849417_update_permission_user_public_table_job_status/down.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - name - - isproductionstatus - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: job_status - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1577753849417_update_permission_user_public_table_job_status/up.yaml b/hasura/migrations/1577753849417_update_permission_user_public_table_job_status/up.yaml deleted file mode 100644 index 39603fed7..000000000 --- a/hasura/migrations/1577753849417_update_permission_user_public_table_job_status/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - name - - isproductionstatus - - order - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: job_status - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1577753852887_update_permission_user_public_table_job_status/down.yaml b/hasura/migrations/1577753852887_update_permission_user_public_table_job_status/down.yaml deleted file mode 100644 index cf360a710..000000000 --- a/hasura/migrations/1577753852887_update_permission_user_public_table_job_status/down.yaml +++ /dev/null @@ -1,31 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - isproductionstatus - - name - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: job_status - schema: public - type: create_select_permission diff --git a/hasura/migrations/1577753852887_update_permission_user_public_table_job_status/up.yaml b/hasura/migrations/1577753852887_update_permission_user_public_table_job_status/up.yaml deleted file mode 100644 index 4a20fcfef..000000000 --- a/hasura/migrations/1577753852887_update_permission_user_public_table_job_status/up.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - isproductionstatus - - order - - name - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: job_status - schema: public - type: create_select_permission diff --git a/hasura/migrations/1577753857951_update_permission_user_public_table_job_status/down.yaml b/hasura/migrations/1577753857951_update_permission_user_public_table_job_status/down.yaml deleted file mode 100644 index dd381ba43..000000000 --- a/hasura/migrations/1577753857951_update_permission_user_public_table_job_status/down.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_update_permission -- args: - permission: - columns: - - isproductionstatus - - name - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: job_status - schema: public - type: create_update_permission diff --git a/hasura/migrations/1577753857951_update_permission_user_public_table_job_status/up.yaml b/hasura/migrations/1577753857951_update_permission_user_public_table_job_status/up.yaml deleted file mode 100644 index 94de06f5e..000000000 --- a/hasura/migrations/1577753857951_update_permission_user_public_table_job_status/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_update_permission -- args: - permission: - columns: - - isproductionstatus - - order - - name - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: job_status - schema: public - type: create_update_permission diff --git a/hasura/migrations/1577754170384_alter_table_public_jobs_add_column_statusid/down.yaml b/hasura/migrations/1577754170384_alter_table_public_jobs_add_column_statusid/down.yaml deleted file mode 100644 index 22557a8e2..000000000 --- a/hasura/migrations/1577754170384_alter_table_public_jobs_add_column_statusid/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "statusid"; - type: run_sql diff --git a/hasura/migrations/1577754170384_alter_table_public_jobs_add_column_statusid/up.yaml b/hasura/migrations/1577754170384_alter_table_public_jobs_add_column_statusid/up.yaml deleted file mode 100644 index 5c87ea229..000000000 --- a/hasura/migrations/1577754170384_alter_table_public_jobs_add_column_statusid/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "statusid" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1577754190642_set_fk_public_jobs_statusid/down.yaml b/hasura/migrations/1577754190642_set_fk_public_jobs_statusid/down.yaml deleted file mode 100644 index 4e038cf9d..000000000 --- a/hasura/migrations/1577754190642_set_fk_public_jobs_statusid/down.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: "\n alter table \"public\".\"jobs\" drop constraint \"jobs_statusid_fkey\"\n - \ " - type: run_sql diff --git a/hasura/migrations/1577754190642_set_fk_public_jobs_statusid/up.yaml b/hasura/migrations/1577754190642_set_fk_public_jobs_statusid/up.yaml deleted file mode 100644 index e76b6d805..000000000 --- a/hasura/migrations/1577754190642_set_fk_public_jobs_statusid/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: "\n alter table \"public\".\"jobs\"\n add constraint - \"jobs_statusid_fkey\"\n foreign key (\"statusid\")\n references - \"public\".\"job_status\"\n (\"id\") on update restrict on delete - restrict;\n " - type: run_sql diff --git a/hasura/migrations/1577754205804_track_all_relationships/down.yaml b/hasura/migrations/1577754205804_track_all_relationships/down.yaml deleted file mode 100644 index c70a8cf6d..000000000 --- a/hasura/migrations/1577754205804_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: job_status - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: jobs - table: - name: job_status - schema: public - type: drop_relationship diff --git a/hasura/migrations/1577754205804_track_all_relationships/up.yaml b/hasura/migrations/1577754205804_track_all_relationships/up.yaml deleted file mode 100644 index 22e532ba6..000000000 --- a/hasura/migrations/1577754205804_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: job_status - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: statusid - type: create_object_relationship -- args: - name: jobs - table: - name: job_status - schema: public - using: - foreign_key_constraint_on: - column: statusid - table: - name: jobs - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1577754219714_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1577754219714_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 441e6cb60..000000000 --- a/hasura/migrations/1577754219714_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,85 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1577754219714_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1577754219714_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 2b0b72063..000000000 --- a/hasura/migrations/1577754219714_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,86 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1577754229569_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1577754229569_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 43909ecda..000000000 --- a/hasura/migrations/1577754229569_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,84 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1577754229569_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1577754229569_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index a79eaa1f1..000000000 --- a/hasura/migrations/1577754229569_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,84 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1577754242567_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1577754242567_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4c7f7ed40..000000000 --- a/hasura/migrations/1577754242567_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,85 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - status - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1577754242567_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1577754242567_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index c664ccb26..000000000 --- a/hasura/migrations/1577754242567_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,86 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1577754258614_alter_table_public_jobs_drop_column_status/down.yaml b/hasura/migrations/1577754258614_alter_table_public_jobs_drop_column_status/down.yaml deleted file mode 100644 index e2f62f616..000000000 --- a/hasura/migrations/1577754258614_alter_table_public_jobs_drop_column_status/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "status" text - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "status" DROP NOT NULL - type: run_sql diff --git a/hasura/migrations/1577754258614_alter_table_public_jobs_drop_column_status/up.yaml b/hasura/migrations/1577754258614_alter_table_public_jobs_drop_column_status/up.yaml deleted file mode 100644 index fdbf4b74e..000000000 --- a/hasura/migrations/1577754258614_alter_table_public_jobs_drop_column_status/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "status" CASCADE - type: run_sql diff --git a/hasura/migrations/1578415206280_create_table_public_vendors/down.yaml b/hasura/migrations/1578415206280_create_table_public_vendors/down.yaml deleted file mode 100644 index 063f625bc..000000000 --- a/hasura/migrations/1578415206280_create_table_public_vendors/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."vendors" - type: run_sql diff --git a/hasura/migrations/1578415206280_create_table_public_vendors/up.yaml b/hasura/migrations/1578415206280_create_table_public_vendors/up.yaml deleted file mode 100644 index facdabbbb..000000000 --- a/hasura/migrations/1578415206280_create_table_public_vendors/up.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"vendors\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"bodyshopid\" uuid NOT NULL, \"name\" text NOT NULL, - \"street1\" text, \"street2\" text, \"city\" text, \"state\" text, \"zip\" text, - \"country\" text, \"email\" text, \"taxid\" text, \"discount\" numeric NOT NULL - DEFAULT 0, \"prompt_discount\" numeric NOT NULL DEFAULT 0, \"due_date\" integer, - \"terms\" text, \"display_name\" text, PRIMARY KEY (\"id\") , FOREIGN KEY (\"bodyshopid\") - REFERENCES \"public\".\"bodyshops\"(\"id\") ON UPDATE cascade ON DELETE cascade);\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_vendors_updated_at\"\nBEFORE - UPDATE ON \"public\".\"vendors\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_vendors_updated_at\" ON \"public\".\"vendors\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';\n" - type: run_sql -- args: - name: vendors - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1578415220953_track_all_relationships/down.yaml b/hasura/migrations/1578415220953_track_all_relationships/down.yaml deleted file mode 100644 index 5ddf931d2..000000000 --- a/hasura/migrations/1578415220953_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: vendors - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: vendors - schema: public - type: drop_relationship diff --git a/hasura/migrations/1578415220953_track_all_relationships/up.yaml b/hasura/migrations/1578415220953_track_all_relationships/up.yaml deleted file mode 100644 index da19a71f3..000000000 --- a/hasura/migrations/1578415220953_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: vendors - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: vendors - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: vendors - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship diff --git a/hasura/migrations/1578415310253_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1578415310253_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 341c33e8b..000000000 --- a/hasura/migrations/1578415310253_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1578415310253_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1578415310253_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 826d51398..000000000 --- a/hasura/migrations/1578415310253_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - due_date - - discount - - prompt_discount - - city - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1578415315745_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1578415315745_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index c49f12455..000000000 --- a/hasura/migrations/1578415315745_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1578415315745_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1578415315745_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 1b4248be1..000000000 --- a/hasura/migrations/1578415315745_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - due_date - - discount - - prompt_discount - - city - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1578415321110_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1578415321110_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 2e7f9528d..000000000 --- a/hasura/migrations/1578415321110_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1578415321110_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1578415321110_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 4c70a3b50..000000000 --- a/hasura/migrations/1578415321110_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - permission: - columns: - - due_date - - discount - - prompt_discount - - city - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1578415327701_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1578415327701_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 289d7e000..000000000 --- a/hasura/migrations/1578415327701_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1578415327701_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1578415327701_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 0e9e9463c..000000000 --- a/hasura/migrations/1578415327701_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1578416086468_create_table_public_parts_order/down.yaml b/hasura/migrations/1578416086468_create_table_public_parts_order/down.yaml deleted file mode 100644 index bdf939ee1..000000000 --- a/hasura/migrations/1578416086468_create_table_public_parts_order/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."parts_order" - type: run_sql diff --git a/hasura/migrations/1578416086468_create_table_public_parts_order/up.yaml b/hasura/migrations/1578416086468_create_table_public_parts_order/up.yaml deleted file mode 100644 index f76e22cef..000000000 --- a/hasura/migrations/1578416086468_create_table_public_parts_order/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"parts_order\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"jobid\" uuid NOT NULL, \"vendorid\" uuid NOT NULL, - \"order_number\" text NOT NULL, \"order_date\" date NOT NULL DEFAULT now(), - \"ordered_by_user_id\" text NOT NULL, \"status\" text NOT NULL, \"deliver_by\" - date, PRIMARY KEY (\"id\") , FOREIGN KEY (\"jobid\") REFERENCES \"public\".\"jobs\"(\"id\") - ON UPDATE cascade ON DELETE cascade, FOREIGN KEY (\"vendorid\") REFERENCES \"public\".\"vendors\"(\"id\") - ON UPDATE restrict ON DELETE restrict, FOREIGN KEY (\"ordered_by_user_id\") - REFERENCES \"public\".\"users\"(\"email\") 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_parts_order_updated_at\"\nBEFORE - UPDATE ON \"public\".\"parts_order\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_parts_order_updated_at\" ON \"public\".\"parts_order\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';\n" - type: run_sql -- args: - name: parts_order - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1578416103317_track_all_relationships/down.yaml b/hasura/migrations/1578416103317_track_all_relationships/down.yaml deleted file mode 100644 index 93ad953a5..000000000 --- a/hasura/migrations/1578416103317_track_all_relationships/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - relationship: parts_orders - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: user - table: - name: parts_order - schema: public - type: drop_relationship -- args: - relationship: job - table: - name: parts_order - schema: public - type: drop_relationship -- args: - relationship: vendor - table: - name: parts_order - schema: public - type: drop_relationship -- args: - relationship: parts_orders - table: - name: users - schema: public - type: drop_relationship -- args: - relationship: parts_orders - table: - name: vendors - schema: public - type: drop_relationship diff --git a/hasura/migrations/1578416103317_track_all_relationships/up.yaml b/hasura/migrations/1578416103317_track_all_relationships/up.yaml deleted file mode 100644 index cce26c1e3..000000000 --- a/hasura/migrations/1578416103317_track_all_relationships/up.yaml +++ /dev/null @@ -1,60 +0,0 @@ -- args: - name: parts_orders - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: parts_order - schema: public - type: create_array_relationship -- args: - name: user - table: - name: parts_order - schema: public - using: - foreign_key_constraint_on: ordered_by_user_id - type: create_object_relationship -- args: - name: job - table: - name: parts_order - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship -- args: - name: vendor - table: - name: parts_order - schema: public - using: - foreign_key_constraint_on: vendorid - type: create_object_relationship -- args: - name: parts_orders - table: - name: users - schema: public - using: - foreign_key_constraint_on: - column: ordered_by_user_id - table: - name: parts_order - schema: public - type: create_array_relationship -- args: - name: parts_orders - table: - name: vendors - schema: public - using: - foreign_key_constraint_on: - column: vendorid - table: - name: parts_order - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1578416157323_update_permission_user_public_table_parts_order/down.yaml b/hasura/migrations/1578416157323_update_permission_user_public_table_parts_order/down.yaml deleted file mode 100644 index 97ed8317f..000000000 --- a/hasura/migrations/1578416157323_update_permission_user_public_table_parts_order/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1578416157323_update_permission_user_public_table_parts_order/up.yaml b/hasura/migrations/1578416157323_update_permission_user_public_table_parts_order/up.yaml deleted file mode 100644 index b3734b79e..000000000 --- a/hasura/migrations/1578416157323_update_permission_user_public_table_parts_order/up.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - deliver_by - - order_date - - ordered_by_user_id - - order_number - - status - - created_at - - updated_at - - id - - jobid - - vendorid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1578416163694_update_permission_user_public_table_parts_order/down.yaml b/hasura/migrations/1578416163694_update_permission_user_public_table_parts_order/down.yaml deleted file mode 100644 index 935d34ae9..000000000 --- a/hasura/migrations/1578416163694_update_permission_user_public_table_parts_order/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1578416163694_update_permission_user_public_table_parts_order/up.yaml b/hasura/migrations/1578416163694_update_permission_user_public_table_parts_order/up.yaml deleted file mode 100644 index 0d029d635..000000000 --- a/hasura/migrations/1578416163694_update_permission_user_public_table_parts_order/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - deliver_by - - order_date - - ordered_by_user_id - - order_number - - status - - created_at - - updated_at - - id - - jobid - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: parts_order - schema: public - type: create_select_permission diff --git a/hasura/migrations/1578416169493_update_permission_user_public_table_parts_order/down.yaml b/hasura/migrations/1578416169493_update_permission_user_public_table_parts_order/down.yaml deleted file mode 100644 index 13e5e444b..000000000 --- a/hasura/migrations/1578416169493_update_permission_user_public_table_parts_order/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1578416169493_update_permission_user_public_table_parts_order/up.yaml b/hasura/migrations/1578416169493_update_permission_user_public_table_parts_order/up.yaml deleted file mode 100644 index 434f9eb38..000000000 --- a/hasura/migrations/1578416169493_update_permission_user_public_table_parts_order/up.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- args: - permission: - columns: - - deliver_by - - order_date - - ordered_by_user_id - - order_number - - status - - created_at - - updated_at - - id - - jobid - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order - schema: public - type: create_update_permission diff --git a/hasura/migrations/1578416175507_update_permission_user_public_table_parts_order/down.yaml b/hasura/migrations/1578416175507_update_permission_user_public_table_parts_order/down.yaml deleted file mode 100644 index ea03cd56b..000000000 --- a/hasura/migrations/1578416175507_update_permission_user_public_table_parts_order/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1578416175507_update_permission_user_public_table_parts_order/up.yaml b/hasura/migrations/1578416175507_update_permission_user_public_table_parts_order/up.yaml deleted file mode 100644 index c4181050c..000000000 --- a/hasura/migrations/1578416175507_update_permission_user_public_table_parts_order/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1578416710710_create_table_public_parts_order_lines/down.yaml b/hasura/migrations/1578416710710_create_table_public_parts_order_lines/down.yaml deleted file mode 100644 index c5a967f68..000000000 --- a/hasura/migrations/1578416710710_create_table_public_parts_order_lines/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."parts_order_lines" - type: run_sql diff --git a/hasura/migrations/1578416710710_create_table_public_parts_order_lines/up.yaml b/hasura/migrations/1578416710710_create_table_public_parts_order_lines/up.yaml deleted file mode 100644 index 0b04c75d4..000000000 --- a/hasura/migrations/1578416710710_create_table_public_parts_order_lines/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"parts_order_lines\"(\"id\" uuid NOT NULL DEFAULT - gen_random_uuid(), \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" - timestamptz NOT NULL DEFAULT now(), \"orderid\" uuid NOT NULL, \"job_line_id\" - uuid, \"line_desc\" text NOT NULL, \"oem_partno\" text, \"db_price\" numeric, - \"act_price\" numeric, \"status\" text NOT NULL DEFAULT 'Ordered', \"line_remarks\" - text, PRIMARY KEY (\"id\") , FOREIGN KEY (\"orderid\") REFERENCES \"public\".\"parts_order\"(\"id\") - ON UPDATE cascade ON DELETE cascade, FOREIGN KEY (\"job_line_id\") REFERENCES - \"public\".\"joblines\"(\"id\") ON UPDATE restrict ON DELETE set null);\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_parts_order_lines_updated_at\"\nBEFORE - UPDATE ON \"public\".\"parts_order_lines\"\nFOR EACH ROW\nEXECUTE PROCEDURE - \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT ON TRIGGER \"set_public_parts_order_lines_updated_at\" - ON \"public\".\"parts_order_lines\" \nIS 'trigger to set value of column \"updated_at\" - to current timestamp on row update';\n" - type: run_sql -- args: - name: parts_order_lines - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1578416775337_track_all_relationships/down.yaml b/hasura/migrations/1578416775337_track_all_relationships/down.yaml deleted file mode 100644 index 9adaa8446..000000000 --- a/hasura/migrations/1578416775337_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: parts_order_lines - table: - name: joblines - schema: public - type: drop_relationship -- args: - relationship: parts_order_lines - table: - name: parts_order - schema: public - type: drop_relationship -- args: - relationship: jobline - table: - name: parts_order_lines - schema: public - type: drop_relationship -- args: - relationship: parts_order - table: - name: parts_order_lines - schema: public - type: drop_relationship diff --git a/hasura/migrations/1578416775337_track_all_relationships/up.yaml b/hasura/migrations/1578416775337_track_all_relationships/up.yaml deleted file mode 100644 index 47bf443e8..000000000 --- a/hasura/migrations/1578416775337_track_all_relationships/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - name: parts_order_lines - table: - name: joblines - schema: public - using: - foreign_key_constraint_on: - column: job_line_id - table: - name: parts_order_lines - schema: public - type: create_array_relationship -- args: - name: parts_order_lines - table: - name: parts_order - schema: public - using: - foreign_key_constraint_on: - column: orderid - table: - name: parts_order_lines - schema: public - type: create_array_relationship -- args: - name: jobline - table: - name: parts_order_lines - schema: public - using: - foreign_key_constraint_on: job_line_id - type: create_object_relationship -- args: - name: parts_order - table: - name: parts_order_lines - schema: public - using: - foreign_key_constraint_on: orderid - type: create_object_relationship diff --git a/hasura/migrations/1578416885067_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1578416885067_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index 3077aa952..000000000 --- a/hasura/migrations/1578416885067_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1578416885067_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1578416885067_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 516e3fc35..000000000 --- a/hasura/migrations/1578416885067_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - orderid - - job_line_id - - line_desc - - oem_partno - - db_price - - act_price - - status - - line_remarks - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1578416923961_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1578416923961_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index ff4dc0091..000000000 --- a/hasura/migrations/1578416923961_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1578416923961_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1578416923961_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 9b33ac709..000000000 --- a/hasura/migrations/1578416923961_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - act_price - - db_price - - line_desc - - line_remarks - - oem_partno - - status - - created_at - - updated_at - - id - - job_line_id - - orderid - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: parts_order_lines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1578416929216_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1578416929216_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index 80bc2e713..000000000 --- a/hasura/migrations/1578416929216_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1578416929216_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1578416929216_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 03b406e75..000000000 --- a/hasura/migrations/1578416929216_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - permission: - columns: - - act_price - - db_price - - line_desc - - line_remarks - - oem_partno - - status - - created_at - - updated_at - - id - - job_line_id - - orderid - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1578416933624_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1578416933624_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index d45bd66b3..000000000 --- a/hasura/migrations/1578416933624_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1578416933624_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1578416933624_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index a1cde1393..000000000 --- a/hasura/migrations/1578416933624_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - permission: - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order_lines - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1578593458608_alter_table_public_jobs_add_column_pit_owner_first_name/down.yaml b/hasura/migrations/1578593458608_alter_table_public_jobs_add_column_pit_owner_first_name/down.yaml deleted file mode 100644 index 5d1fd5850..000000000 --- a/hasura/migrations/1578593458608_alter_table_public_jobs_add_column_pit_owner_first_name/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "pit_owner_first_name"; - type: run_sql diff --git a/hasura/migrations/1578593458608_alter_table_public_jobs_add_column_pit_owner_first_name/up.yaml b/hasura/migrations/1578593458608_alter_table_public_jobs_add_column_pit_owner_first_name/up.yaml deleted file mode 100644 index 85fecb1d7..000000000 --- a/hasura/migrations/1578593458608_alter_table_public_jobs_add_column_pit_owner_first_name/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "pit_owner_first_name" text NULL; - type: run_sql diff --git a/hasura/migrations/1578593470242_alter_table_public_jobs_add_column_pit_owner_last_name/down.yaml b/hasura/migrations/1578593470242_alter_table_public_jobs_add_column_pit_owner_last_name/down.yaml deleted file mode 100644 index 92261da74..000000000 --- a/hasura/migrations/1578593470242_alter_table_public_jobs_add_column_pit_owner_last_name/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "pit_owner_last_name"; - type: run_sql diff --git a/hasura/migrations/1578593470242_alter_table_public_jobs_add_column_pit_owner_last_name/up.yaml b/hasura/migrations/1578593470242_alter_table_public_jobs_add_column_pit_owner_last_name/up.yaml deleted file mode 100644 index 42100a879..000000000 --- a/hasura/migrations/1578593470242_alter_table_public_jobs_add_column_pit_owner_last_name/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "pit_owner_last_name" text NULL; - type: run_sql diff --git a/hasura/migrations/1578593496723_alter_table_public_jobs_add_column_pit_owner_phone/down.yaml b/hasura/migrations/1578593496723_alter_table_public_jobs_add_column_pit_owner_phone/down.yaml deleted file mode 100644 index 68d452ba3..000000000 --- a/hasura/migrations/1578593496723_alter_table_public_jobs_add_column_pit_owner_phone/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "pit_owner_phone"; - type: run_sql diff --git a/hasura/migrations/1578593496723_alter_table_public_jobs_add_column_pit_owner_phone/up.yaml b/hasura/migrations/1578593496723_alter_table_public_jobs_add_column_pit_owner_phone/up.yaml deleted file mode 100644 index bbfd7f753..000000000 --- a/hasura/migrations/1578593496723_alter_table_public_jobs_add_column_pit_owner_phone/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "pit_owner_phone" text NULL; - type: run_sql diff --git a/hasura/migrations/1578593515552_alter_table_public_jobs_add_column_pit_owner_email/down.yaml b/hasura/migrations/1578593515552_alter_table_public_jobs_add_column_pit_owner_email/down.yaml deleted file mode 100644 index 6344206e2..000000000 --- a/hasura/migrations/1578593515552_alter_table_public_jobs_add_column_pit_owner_email/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "pit_owner_email"; - type: run_sql diff --git a/hasura/migrations/1578593515552_alter_table_public_jobs_add_column_pit_owner_email/up.yaml b/hasura/migrations/1578593515552_alter_table_public_jobs_add_column_pit_owner_email/up.yaml deleted file mode 100644 index 183b64ec9..000000000 --- a/hasura/migrations/1578593515552_alter_table_public_jobs_add_column_pit_owner_email/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "pit_owner_email" text NULL; - type: run_sql diff --git a/hasura/migrations/1578593666642_alter_table_public_jobs_add_column_pit_vehicle_plate_no/down.yaml b/hasura/migrations/1578593666642_alter_table_public_jobs_add_column_pit_vehicle_plate_no/down.yaml deleted file mode 100644 index f033f4c0f..000000000 --- a/hasura/migrations/1578593666642_alter_table_public_jobs_add_column_pit_vehicle_plate_no/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "pit_vehicle_plate_no"; - type: run_sql diff --git a/hasura/migrations/1578593666642_alter_table_public_jobs_add_column_pit_vehicle_plate_no/up.yaml b/hasura/migrations/1578593666642_alter_table_public_jobs_add_column_pit_vehicle_plate_no/up.yaml deleted file mode 100644 index 9a1e56500..000000000 --- a/hasura/migrations/1578593666642_alter_table_public_jobs_add_column_pit_vehicle_plate_no/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "pit_vehicle_plate_no" text NULL; - type: run_sql diff --git a/hasura/migrations/1578593710942_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1578593710942_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 2b0b72063..000000000 --- a/hasura/migrations/1578593710942_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,86 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1578593710942_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1578593710942_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 297bc3fe8..000000000 --- a/hasura/migrations/1578593710942_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,91 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - est_number - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_owner_email - - pit_vehicle_plate_no - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1578593719835_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1578593719835_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index a79eaa1f1..000000000 --- a/hasura/migrations/1578593719835_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,84 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1578593719835_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1578593719835_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 3e20b9803..000000000 --- a/hasura/migrations/1578593719835_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,89 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - created_at - - updated_at - - shopid - - est_number - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_owner_email - - pit_vehicle_plate_no - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1578593729177_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1578593729177_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index c664ccb26..000000000 --- a/hasura/migrations/1578593729177_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,86 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - claim_total - - created_at - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - ownerid - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1578593729177_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1578593729177_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 5c79c00a3..000000000 --- a/hasura/migrations/1578593729177_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,91 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - inproduction - - invoice_date - - claim_total - - deductible - - federal_tax_rate - - local_tax_rate - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - scheduled_completion - - scheduled_delivery - - scheduled_in - - created_at - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1578604401770_bulk_jobs_update/down.yaml b/hasura/migrations/1578604401770_bulk_jobs_update/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1578604401770_bulk_jobs_update/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1578604401770_bulk_jobs_update/up.yaml b/hasura/migrations/1578604401770_bulk_jobs_update/up.yaml deleted file mode 100644 index f919c30c0..000000000 --- a/hasura/migrations/1578604401770_bulk_jobs_update/up.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- args: - cascade: true - sql: "alter table jobs\r\nadd column ins_co_id text ,\r\nadd column ins_co_nm - text ,\r\nadd column ins_addr1 text ,\r\nadd column ins_addr2 text ,\r\nadd - column ins_city text ,\r\nadd column ins_st text ,\r\nadd column ins_zip text - ,\r\nadd column ins_ctry text ,\r\nadd column ins_ph1 text ,\r\nadd column ins_ph1x - text ,\r\nadd column ins_ph2 text ,\r\nadd column ins_ph2x text ,\r\nadd column - ins_fax text ,\r\nadd column ins_faxx text ,\r\nadd column ins_ct_ln text ,\r\nadd - column ins_ct_fn text ,\r\nadd column ins_title text ,\r\nadd column ins_ct_ph - text ,\r\nadd column ins_ct_phx text ,\r\nadd column ins_ea text , \r\nadd - column ins_memo text ,\r\nadd column policy_no text ,\r\nadd column ded_amt - numeric ,\r\nadd column ded_status boolean ,\r\nadd column asgn_no text ,\r\nadd - column asgn_date date ,\r\nadd column asgn_type text ,\r\nadd column clm_no - text ,\r\nadd column clm_ofc_id text \r\n" - type: run_sql diff --git a/hasura/migrations/1578604420364_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1578604420364_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 297bc3fe8..000000000 --- a/hasura/migrations/1578604420364_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,91 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - est_number - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_owner_email - - pit_vehicle_plate_no - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1578604420364_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1578604420364_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 60be69909..000000000 --- a/hasura/migrations/1578604420364_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,120 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - scheduled_completion - - scheduled_delivery - - scheduled_in - - created_at - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1578604426830_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1578604426830_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 3e20b9803..000000000 --- a/hasura/migrations/1578604426830_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,89 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - created_at - - updated_at - - shopid - - est_number - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_owner_email - - pit_vehicle_plate_no - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1578604426830_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1578604426830_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index b5c4d3fdd..000000000 --- a/hasura/migrations/1578604426830_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,118 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - scheduled_completion - - scheduled_delivery - - scheduled_in - - created_at - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1578604433860_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1578604433860_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 5c79c00a3..000000000 --- a/hasura/migrations/1578604433860_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,91 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - inproduction - - invoice_date - - claim_total - - deductible - - federal_tax_rate - - local_tax_rate - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - scheduled_completion - - scheduled_delivery - - scheduled_in - - created_at - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1578604433860_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1578604433860_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index ddcb7f9e7..000000000 --- a/hasura/migrations/1578604433860_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,120 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - scheduled_completion - - scheduled_delivery - - scheduled_in - - created_at - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1578609531268_alter_table_public_jobs_alter_column_scheduled_in/down.yaml b/hasura/migrations/1578609531268_alter_table_public_jobs_alter_column_scheduled_in/down.yaml deleted file mode 100644 index 07c90f98b..000000000 --- a/hasura/migrations/1578609531268_alter_table_public_jobs_alter_column_scheduled_in/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "scheduled_in" TYPE timestamp without - time zone; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."scheduled_in" IS E'null' - type: run_sql diff --git a/hasura/migrations/1578609531268_alter_table_public_jobs_alter_column_scheduled_in/up.yaml b/hasura/migrations/1578609531268_alter_table_public_jobs_alter_column_scheduled_in/up.yaml deleted file mode 100644 index 6a8bda178..000000000 --- a/hasura/migrations/1578609531268_alter_table_public_jobs_alter_column_scheduled_in/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "scheduled_in" TYPE timestamptz; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."scheduled_in" IS E'' - type: run_sql diff --git a/hasura/migrations/1578609541216_alter_table_public_jobs_alter_column_actual_in/down.yaml b/hasura/migrations/1578609541216_alter_table_public_jobs_alter_column_actual_in/down.yaml deleted file mode 100644 index 53b816032..000000000 --- a/hasura/migrations/1578609541216_alter_table_public_jobs_alter_column_actual_in/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "actual_in" TYPE timestamp without - time zone; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."actual_in" IS E'null' - type: run_sql diff --git a/hasura/migrations/1578609541216_alter_table_public_jobs_alter_column_actual_in/up.yaml b/hasura/migrations/1578609541216_alter_table_public_jobs_alter_column_actual_in/up.yaml deleted file mode 100644 index e6557dbdf..000000000 --- a/hasura/migrations/1578609541216_alter_table_public_jobs_alter_column_actual_in/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "actual_in" TYPE timestamptz; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."actual_in" IS E'' - type: run_sql diff --git a/hasura/migrations/1578609549147_alter_table_public_jobs_alter_column_scheduled_completion/down.yaml b/hasura/migrations/1578609549147_alter_table_public_jobs_alter_column_scheduled_completion/down.yaml deleted file mode 100644 index 98d8a7025..000000000 --- a/hasura/migrations/1578609549147_alter_table_public_jobs_alter_column_scheduled_completion/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "scheduled_completion" TYPE timestamp - without time zone; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."scheduled_completion" IS E'null' - type: run_sql diff --git a/hasura/migrations/1578609549147_alter_table_public_jobs_alter_column_scheduled_completion/up.yaml b/hasura/migrations/1578609549147_alter_table_public_jobs_alter_column_scheduled_completion/up.yaml deleted file mode 100644 index 91a041a01..000000000 --- a/hasura/migrations/1578609549147_alter_table_public_jobs_alter_column_scheduled_completion/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "scheduled_completion" TYPE timestamptz; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."scheduled_completion" IS E'' - type: run_sql diff --git a/hasura/migrations/1578609555707_alter_table_public_jobs_alter_column_actual_completion/down.yaml b/hasura/migrations/1578609555707_alter_table_public_jobs_alter_column_actual_completion/down.yaml deleted file mode 100644 index 698c3f326..000000000 --- a/hasura/migrations/1578609555707_alter_table_public_jobs_alter_column_actual_completion/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "actual_completion" TYPE timestamp - without time zone; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."actual_completion" IS E'null' - type: run_sql diff --git a/hasura/migrations/1578609555707_alter_table_public_jobs_alter_column_actual_completion/up.yaml b/hasura/migrations/1578609555707_alter_table_public_jobs_alter_column_actual_completion/up.yaml deleted file mode 100644 index 69db0c022..000000000 --- a/hasura/migrations/1578609555707_alter_table_public_jobs_alter_column_actual_completion/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "actual_completion" TYPE timestamptz; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."actual_completion" IS E'' - type: run_sql diff --git a/hasura/migrations/1578609570214_alter_table_public_jobs_alter_column_scheduled_delivery/down.yaml b/hasura/migrations/1578609570214_alter_table_public_jobs_alter_column_scheduled_delivery/down.yaml deleted file mode 100644 index 3178248c9..000000000 --- a/hasura/migrations/1578609570214_alter_table_public_jobs_alter_column_scheduled_delivery/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "scheduled_delivery" TYPE timestamp - without time zone; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."scheduled_delivery" IS E'null' - type: run_sql diff --git a/hasura/migrations/1578609570214_alter_table_public_jobs_alter_column_scheduled_delivery/up.yaml b/hasura/migrations/1578609570214_alter_table_public_jobs_alter_column_scheduled_delivery/up.yaml deleted file mode 100644 index 5fae4da37..000000000 --- a/hasura/migrations/1578609570214_alter_table_public_jobs_alter_column_scheduled_delivery/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "scheduled_delivery" TYPE timestamptz; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."scheduled_delivery" IS E'' - type: run_sql diff --git a/hasura/migrations/1578609588489_alter_table_public_jobs_alter_column_actual_delivery/down.yaml b/hasura/migrations/1578609588489_alter_table_public_jobs_alter_column_actual_delivery/down.yaml deleted file mode 100644 index 220adadd2..000000000 --- a/hasura/migrations/1578609588489_alter_table_public_jobs_alter_column_actual_delivery/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "actual_delivery" TYPE timestamp - without time zone; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."actual_delivery" IS E'null' - type: run_sql diff --git a/hasura/migrations/1578609588489_alter_table_public_jobs_alter_column_actual_delivery/up.yaml b/hasura/migrations/1578609588489_alter_table_public_jobs_alter_column_actual_delivery/up.yaml deleted file mode 100644 index 01d50a336..000000000 --- a/hasura/migrations/1578609588489_alter_table_public_jobs_alter_column_actual_delivery/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "actual_delivery" TYPE timestamptz; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."actual_delivery" IS E'' - type: run_sql diff --git a/hasura/migrations/1578610005386_alter_table_public_jobs_add_column_date_estimated/down.yaml b/hasura/migrations/1578610005386_alter_table_public_jobs_add_column_date_estimated/down.yaml deleted file mode 100644 index 859af2c22..000000000 --- a/hasura/migrations/1578610005386_alter_table_public_jobs_add_column_date_estimated/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "date_estimated"; - type: run_sql diff --git a/hasura/migrations/1578610005386_alter_table_public_jobs_add_column_date_estimated/up.yaml b/hasura/migrations/1578610005386_alter_table_public_jobs_add_column_date_estimated/up.yaml deleted file mode 100644 index a4b7a69cb..000000000 --- a/hasura/migrations/1578610005386_alter_table_public_jobs_add_column_date_estimated/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "date_estimated" timestamptz NULL; - type: run_sql diff --git a/hasura/migrations/1578610020957_alter_table_public_jobs_add_column_date_open/down.yaml b/hasura/migrations/1578610020957_alter_table_public_jobs_add_column_date_open/down.yaml deleted file mode 100644 index 0a6aecf1f..000000000 --- a/hasura/migrations/1578610020957_alter_table_public_jobs_add_column_date_open/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "date_open"; - type: run_sql diff --git a/hasura/migrations/1578610020957_alter_table_public_jobs_add_column_date_open/up.yaml b/hasura/migrations/1578610020957_alter_table_public_jobs_add_column_date_open/up.yaml deleted file mode 100644 index ec60a1b3b..000000000 --- a/hasura/migrations/1578610020957_alter_table_public_jobs_add_column_date_open/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "date_open" timestamptz NULL; - type: run_sql diff --git a/hasura/migrations/1578610060891_alter_table_public_jobs_add_column_date_scheduled/down.yaml b/hasura/migrations/1578610060891_alter_table_public_jobs_add_column_date_scheduled/down.yaml deleted file mode 100644 index 199f7cac1..000000000 --- a/hasura/migrations/1578610060891_alter_table_public_jobs_add_column_date_scheduled/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "date_scheduled"; - type: run_sql diff --git a/hasura/migrations/1578610060891_alter_table_public_jobs_add_column_date_scheduled/up.yaml b/hasura/migrations/1578610060891_alter_table_public_jobs_add_column_date_scheduled/up.yaml deleted file mode 100644 index c88334c1a..000000000 --- a/hasura/migrations/1578610060891_alter_table_public_jobs_add_column_date_scheduled/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "date_scheduled" timestamptz NULL; - type: run_sql diff --git a/hasura/migrations/1578610077013_alter_table_public_jobs_add_column_date_invoiced/down.yaml b/hasura/migrations/1578610077013_alter_table_public_jobs_add_column_date_invoiced/down.yaml deleted file mode 100644 index 81c15b018..000000000 --- a/hasura/migrations/1578610077013_alter_table_public_jobs_add_column_date_invoiced/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "date_invoiced"; - type: run_sql diff --git a/hasura/migrations/1578610077013_alter_table_public_jobs_add_column_date_invoiced/up.yaml b/hasura/migrations/1578610077013_alter_table_public_jobs_add_column_date_invoiced/up.yaml deleted file mode 100644 index 1fdc6ae59..000000000 --- a/hasura/migrations/1578610077013_alter_table_public_jobs_add_column_date_invoiced/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "date_invoiced" timestamptz NULL; - type: run_sql diff --git a/hasura/migrations/1578610087087_alter_table_public_jobs_add_column_date_closed/down.yaml b/hasura/migrations/1578610087087_alter_table_public_jobs_add_column_date_closed/down.yaml deleted file mode 100644 index 494ee11c4..000000000 --- a/hasura/migrations/1578610087087_alter_table_public_jobs_add_column_date_closed/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "date_closed"; - type: run_sql diff --git a/hasura/migrations/1578610087087_alter_table_public_jobs_add_column_date_closed/up.yaml b/hasura/migrations/1578610087087_alter_table_public_jobs_add_column_date_closed/up.yaml deleted file mode 100644 index bce2a020e..000000000 --- a/hasura/migrations/1578610087087_alter_table_public_jobs_add_column_date_closed/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "date_closed" timestamptz NULL; - type: run_sql diff --git a/hasura/migrations/1578610098441_alter_table_public_jobs_add_column_date_exported/down.yaml b/hasura/migrations/1578610098441_alter_table_public_jobs_add_column_date_exported/down.yaml deleted file mode 100644 index e32bede37..000000000 --- a/hasura/migrations/1578610098441_alter_table_public_jobs_add_column_date_exported/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "date_exported"; - type: run_sql diff --git a/hasura/migrations/1578610098441_alter_table_public_jobs_add_column_date_exported/up.yaml b/hasura/migrations/1578610098441_alter_table_public_jobs_add_column_date_exported/up.yaml deleted file mode 100644 index 28b8ace45..000000000 --- a/hasura/migrations/1578610098441_alter_table_public_jobs_add_column_date_exported/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "date_exported" timestamptz NULL; - type: run_sql diff --git a/hasura/migrations/1578954223847_alter_table_public_jobs_add_column_clm_total/down.yaml b/hasura/migrations/1578954223847_alter_table_public_jobs_add_column_clm_total/down.yaml deleted file mode 100644 index 2eaedb102..000000000 --- a/hasura/migrations/1578954223847_alter_table_public_jobs_add_column_clm_total/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "clm_total"; - type: run_sql diff --git a/hasura/migrations/1578954223847_alter_table_public_jobs_add_column_clm_total/up.yaml b/hasura/migrations/1578954223847_alter_table_public_jobs_add_column_clm_total/up.yaml deleted file mode 100644 index cdfffd96b..000000000 --- a/hasura/migrations/1578954223847_alter_table_public_jobs_add_column_clm_total/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "clm_total" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1578954425812_alter_table_public_jobs_add_column_owner_owing/down.yaml b/hasura/migrations/1578954425812_alter_table_public_jobs_add_column_owner_owing/down.yaml deleted file mode 100644 index b32ee730c..000000000 --- a/hasura/migrations/1578954425812_alter_table_public_jobs_add_column_owner_owing/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "owner_owing"; - type: run_sql diff --git a/hasura/migrations/1578954425812_alter_table_public_jobs_add_column_owner_owing/up.yaml b/hasura/migrations/1578954425812_alter_table_public_jobs_add_column_owner_owing/up.yaml deleted file mode 100644 index fdda24801..000000000 --- a/hasura/migrations/1578954425812_alter_table_public_jobs_add_column_owner_owing/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "owner_owing" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1578954579180_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1578954579180_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 60be69909..000000000 --- a/hasura/migrations/1578954579180_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,120 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - scheduled_completion - - scheduled_delivery - - scheduled_in - - created_at - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1578954579180_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1578954579180_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 716de8355..000000000 --- a/hasura/migrations/1578954579180_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,128 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - est_number - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_owner_email - - pit_vehicle_plate_no - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1578954585318_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1578954585318_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index b5c4d3fdd..000000000 --- a/hasura/migrations/1578954585318_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,118 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - scheduled_completion - - scheduled_delivery - - scheduled_in - - created_at - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1578954585318_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1578954585318_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index ae63fa93d..000000000 --- a/hasura/migrations/1578954585318_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,126 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1578954590633_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1578954590633_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index ddcb7f9e7..000000000 --- a/hasura/migrations/1578954590633_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,120 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - scheduled_completion - - scheduled_delivery - - scheduled_in - - created_at - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1578954590633_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1578954590633_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 578c534e8..000000000 --- a/hasura/migrations/1578954590633_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,128 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1578961956675_create_table_public_notes/down.yaml b/hasura/migrations/1578961956675_create_table_public_notes/down.yaml deleted file mode 100644 index 11e57b2b4..000000000 --- a/hasura/migrations/1578961956675_create_table_public_notes/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."notes" - type: run_sql diff --git a/hasura/migrations/1578961956675_create_table_public_notes/up.yaml b/hasura/migrations/1578961956675_create_table_public_notes/up.yaml deleted file mode 100644 index fa7addea5..000000000 --- a/hasura/migrations/1578961956675_create_table_public_notes/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"notes\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"jobid\" uuid NOT NULL, \"text\" text, \"created_by\" - text NOT NULL, \"critical\" boolean NOT NULL DEFAULT false, \"private\" boolean - NOT NULL DEFAULT false, PRIMARY KEY (\"id\") , FOREIGN KEY (\"jobid\") REFERENCES - \"public\".\"jobs\"(\"id\") ON UPDATE cascade ON DELETE cascade);\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_notes_updated_at\"\nBEFORE - UPDATE ON \"public\".\"notes\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_notes_updated_at\" ON \"public\".\"notes\" \nIS 'trigger - to set value of column \"updated_at\" to current timestamp on row update';\n" - type: run_sql -- args: - name: notes - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1578961968258_track_all_relationships/down.yaml b/hasura/migrations/1578961968258_track_all_relationships/down.yaml deleted file mode 100644 index af2767edb..000000000 --- a/hasura/migrations/1578961968258_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: notes - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: job - table: - name: notes - schema: public - type: drop_relationship diff --git a/hasura/migrations/1578961968258_track_all_relationships/up.yaml b/hasura/migrations/1578961968258_track_all_relationships/up.yaml deleted file mode 100644 index dd3840b30..000000000 --- a/hasura/migrations/1578961968258_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: notes - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: notes - schema: public - type: create_array_relationship -- args: - name: job - table: - name: notes - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship diff --git a/hasura/migrations/1578962007220_update_permission_user_public_table_notes/down.yaml b/hasura/migrations/1578962007220_update_permission_user_public_table_notes/down.yaml deleted file mode 100644 index 835a98c86..000000000 --- a/hasura/migrations/1578962007220_update_permission_user_public_table_notes/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: notes - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1578962007220_update_permission_user_public_table_notes/up.yaml b/hasura/migrations/1578962007220_update_permission_user_public_table_notes/up.yaml deleted file mode 100644 index e4124cf23..000000000 --- a/hasura/migrations/1578962007220_update_permission_user_public_table_notes/up.yaml +++ /dev/null @@ -1,31 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - text - - created_by - - critical - - private - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: notes - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1578962015322_update_permission_user_public_table_notes/down.yaml b/hasura/migrations/1578962015322_update_permission_user_public_table_notes/down.yaml deleted file mode 100644 index 5c9678555..000000000 --- a/hasura/migrations/1578962015322_update_permission_user_public_table_notes/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: notes - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1578962015322_update_permission_user_public_table_notes/up.yaml b/hasura/migrations/1578962015322_update_permission_user_public_table_notes/up.yaml deleted file mode 100644 index 9d5a0ed17..000000000 --- a/hasura/migrations/1578962015322_update_permission_user_public_table_notes/up.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - critical - - private - - created_by - - text - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: notes - schema: public - type: create_select_permission diff --git a/hasura/migrations/1578962026938_update_permission_user_public_table_notes/down.yaml b/hasura/migrations/1578962026938_update_permission_user_public_table_notes/down.yaml deleted file mode 100644 index 45098e246..000000000 --- a/hasura/migrations/1578962026938_update_permission_user_public_table_notes/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: notes - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1578962026938_update_permission_user_public_table_notes/up.yaml b/hasura/migrations/1578962026938_update_permission_user_public_table_notes/up.yaml deleted file mode 100644 index 48d0645bd..000000000 --- a/hasura/migrations/1578962026938_update_permission_user_public_table_notes/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - permission: - columns: - - critical - - private - - created_by - - text - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: notes - schema: public - type: create_update_permission diff --git a/hasura/migrations/1578962038955_update_permission_user_public_table_notes/down.yaml b/hasura/migrations/1578962038955_update_permission_user_public_table_notes/down.yaml deleted file mode 100644 index e8fcd2d32..000000000 --- a/hasura/migrations/1578962038955_update_permission_user_public_table_notes/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: notes - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1578962038955_update_permission_user_public_table_notes/up.yaml b/hasura/migrations/1578962038955_update_permission_user_public_table_notes/up.yaml deleted file mode 100644 index 1120b3058..000000000 --- a/hasura/migrations/1578962038955_update_permission_user_public_table_notes/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: notes - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1578962633097_set_fk_public_notes_created_by/down.yaml b/hasura/migrations/1578962633097_set_fk_public_notes_created_by/down.yaml deleted file mode 100644 index f7806cfa9..000000000 --- a/hasura/migrations/1578962633097_set_fk_public_notes_created_by/down.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: "\n alter table \"public\".\"notes\" drop constraint \"notes_created_by_fkey\"\n - \ " - type: run_sql diff --git a/hasura/migrations/1578962633097_set_fk_public_notes_created_by/up.yaml b/hasura/migrations/1578962633097_set_fk_public_notes_created_by/up.yaml deleted file mode 100644 index a2fcd0193..000000000 --- a/hasura/migrations/1578962633097_set_fk_public_notes_created_by/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: "\n alter table \"public\".\"notes\"\n add constraint - \"notes_created_by_fkey\"\n foreign key (\"created_by\")\n references - \"public\".\"users\"\n (\"email\") on update cascade on delete cascade;\n - \ " - type: run_sql diff --git a/hasura/migrations/1579026961016_create_table_public_counters/down.yaml b/hasura/migrations/1579026961016_create_table_public_counters/down.yaml deleted file mode 100644 index a1dd6677c..000000000 --- a/hasura/migrations/1579026961016_create_table_public_counters/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."counters" - type: run_sql diff --git a/hasura/migrations/1579026961016_create_table_public_counters/up.yaml b/hasura/migrations/1579026961016_create_table_public_counters/up.yaml deleted file mode 100644 index b5290d84c..000000000 --- a/hasura/migrations/1579026961016_create_table_public_counters/up.yaml +++ /dev/null @@ -1,19 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"counters\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"updated_at\" timestamptz NOT NULL DEFAULT now(), \"shopid\" uuid NOT NULL, - \"countertype\" text NOT NULL, \"prefix\" text, \"count\" integer NOT NULL DEFAULT - 1, PRIMARY KEY (\"id\") , FOREIGN KEY (\"shopid\") REFERENCES \"public\".\"bodyshops\"(\"id\") - ON UPDATE cascade ON DELETE cascade);\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_counters_updated_at\"\nBEFORE - UPDATE ON \"public\".\"counters\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_counters_updated_at\" ON \"public\".\"counters\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';\n" - type: run_sql -- args: - name: counters - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1579026971671_track_all_relationships/down.yaml b/hasura/migrations/1579026971671_track_all_relationships/down.yaml deleted file mode 100644 index 2dd45125d..000000000 --- a/hasura/migrations/1579026971671_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: counters - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: counters - schema: public - type: drop_relationship -- args: - relationship: user - table: - name: notes - schema: public - type: drop_relationship -- args: - relationship: notes - table: - name: users - schema: public - type: drop_relationship diff --git a/hasura/migrations/1579026971671_track_all_relationships/up.yaml b/hasura/migrations/1579026971671_track_all_relationships/up.yaml deleted file mode 100644 index 700be44d3..000000000 --- a/hasura/migrations/1579026971671_track_all_relationships/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - name: counters - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: shopid - table: - name: counters - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: counters - schema: public - using: - foreign_key_constraint_on: shopid - type: create_object_relationship -- args: - name: user - table: - name: notes - schema: public - using: - foreign_key_constraint_on: created_by - type: create_object_relationship -- args: - name: notes - table: - name: users - schema: public - using: - foreign_key_constraint_on: - column: created_by - table: - name: notes - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1579027296343_create_ronum_function/down.yaml b/hasura/migrations/1579027296343_create_ronum_function/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579027296343_create_ronum_function/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579027296343_create_ronum_function/up.yaml b/hasura/migrations/1579027296343_create_ronum_function/up.yaml deleted file mode 100644 index c48f71c55..000000000 --- a/hasura/migrations/1579027296343_create_ronum_function/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: true - sql: "CREATE OR REPLACE FUNCTION assign_ro_number()\r\n RETURNS trigger\r\n LANGUAGE - plpgsql\r\nAS $function$\r\n begin\r\n IF NEW.converted = true and - new.ro_number is null THEN\r\n UPDATE counters\r\n\tSET count = count - + 1 where shopid=new.shopid\r\n\tRETURNING CONCAT(prefix,count) into new.ro_number;\r\n\r\n - \ END IF;\r\n RETURN NEW;\r\n END;\r\n $function$\r\n;\r\n" - type: run_sql diff --git a/hasura/migrations/1579027345149_assign_ro_trigger/down.yaml b/hasura/migrations/1579027345149_assign_ro_trigger/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579027345149_assign_ro_trigger/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579027345149_assign_ro_trigger/up.yaml b/hasura/migrations/1579027345149_assign_ro_trigger/up.yaml deleted file mode 100644 index 704f4a655..000000000 --- a/hasura/migrations/1579027345149_assign_ro_trigger/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - sql: "create trigger jobs_assign_RO before\r\nupdate\r\n on\r\n jobs for - each row execute function assign_ro_number();\r\n" - type: run_sql diff --git a/hasura/migrations/1579028145978_alter_table_public_jobs_add_column_converted/down.yaml b/hasura/migrations/1579028145978_alter_table_public_jobs_add_column_converted/down.yaml deleted file mode 100644 index a22482f86..000000000 --- a/hasura/migrations/1579028145978_alter_table_public_jobs_add_column_converted/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "converted"; - type: run_sql diff --git a/hasura/migrations/1579028145978_alter_table_public_jobs_add_column_converted/up.yaml b/hasura/migrations/1579028145978_alter_table_public_jobs_add_column_converted/up.yaml deleted file mode 100644 index e74c74992..000000000 --- a/hasura/migrations/1579028145978_alter_table_public_jobs_add_column_converted/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "converted" boolean NOT NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1579028156646_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579028156646_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 716de8355..000000000 --- a/hasura/migrations/1579028156646_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,128 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - est_number - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_owner_email - - pit_vehicle_plate_no - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579028156646_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579028156646_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 81bdff74e..000000000 --- a/hasura/migrations/1579028156646_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,129 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - est_number - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_owner_email - - pit_vehicle_plate_no - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579028161738_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579028161738_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index ae63fa93d..000000000 --- a/hasura/migrations/1579028161738_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,126 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579028161738_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579028161738_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index f98c35f13..000000000 --- a/hasura/migrations/1579028161738_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,127 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579028166613_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579028166613_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 578c534e8..000000000 --- a/hasura/migrations/1579028166613_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,128 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579028166613_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579028166613_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index ee5d48718..000000000 --- a/hasura/migrations/1579028166613_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,129 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579030370307_fix_assign_ro_function/down.yaml b/hasura/migrations/1579030370307_fix_assign_ro_function/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579030370307_fix_assign_ro_function/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579030370307_fix_assign_ro_function/up.yaml b/hasura/migrations/1579030370307_fix_assign_ro_function/up.yaml deleted file mode 100644 index 21837bd0e..000000000 --- a/hasura/migrations/1579030370307_fix_assign_ro_function/up.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - cascade: true - sql: "CREATE OR REPLACE FUNCTION public.assign_ro_number()\r\n RETURNS trigger\r\n - LANGUAGE plpgsql\r\nAS $function$\r\n begin\r\n IF NEW.converted - = true and new.ro_number is null THEN\r\n UPDATE counters\r\n\tSET - count = count + 1 where shopid=new.shopid AND countertype=\"ronum\"\r\n\tRETURNING - CONCAT(prefix,count) into new.ro_number;\r\n\r\n END IF;\r\n RETURN - NEW;\r\n END;\r\n $function$\r\n;\r\n" - type: run_sql diff --git a/hasura/migrations/1579031584079_fix_ro_assign_function2/down.yaml b/hasura/migrations/1579031584079_fix_ro_assign_function2/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579031584079_fix_ro_assign_function2/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579031584079_fix_ro_assign_function2/up.yaml b/hasura/migrations/1579031584079_fix_ro_assign_function2/up.yaml deleted file mode 100644 index 7d2cc120c..000000000 --- a/hasura/migrations/1579031584079_fix_ro_assign_function2/up.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - cascade: true - sql: "CREATE OR REPLACE FUNCTION public.assign_ro_number()\r\n RETURNS trigger\r\n - LANGUAGE plpgsql\r\nAS $function$\r\n begin\r\n IF NEW.converted - = true and (new.ro_number is null or new.ro_number = '') THEN\r\n UPDATE - counters\r\n\tSET count = count + 1 where shopid=new.shopid AND countertype - = 'ronum'\r\n\tRETURNING count into new.ro_number;\r\n\r\n END IF;\r\n - \ RETURN NEW;\r\n END;\r\n $function$\r\n;\r\n" - type: run_sql diff --git a/hasura/migrations/1579031647010_fix_ro_assign_function3/down.yaml b/hasura/migrations/1579031647010_fix_ro_assign_function3/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579031647010_fix_ro_assign_function3/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579031647010_fix_ro_assign_function3/up.yaml b/hasura/migrations/1579031647010_fix_ro_assign_function3/up.yaml deleted file mode 100644 index c6e32d164..000000000 --- a/hasura/migrations/1579031647010_fix_ro_assign_function3/up.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - cascade: true - sql: "CREATE OR REPLACE FUNCTION public.assign_ro_number()\r\n RETURNS trigger\r\n - LANGUAGE plpgsql\r\nAS $function$\r\n begin\r\n IF NEW.converted - = true and (new.ro_number is null or new.ro_number = '') THEN\r\n UPDATE - counters\r\n\tSET count = count + 1 where shopid=new.shopid AND countertype - = 'ronum'\r\n\tRETURNING concat(prefix,count) into new.ro_number;\r\n\r\n END - IF;\r\n RETURN NEW;\r\n END;\r\n $function$\r\n;\r\n" - type: run_sql diff --git a/hasura/migrations/1579106882840_create_table_public_documents/down.yaml b/hasura/migrations/1579106882840_create_table_public_documents/down.yaml deleted file mode 100644 index db79a3b27..000000000 --- a/hasura/migrations/1579106882840_create_table_public_documents/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."documents" - type: run_sql diff --git a/hasura/migrations/1579106882840_create_table_public_documents/up.yaml b/hasura/migrations/1579106882840_create_table_public_documents/up.yaml deleted file mode 100644 index e0647ebe1..000000000 --- a/hasura/migrations/1579106882840_create_table_public_documents/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"documents\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"url\" text NOT NULL, \"thumb_url\" text NOT NULL, - \"uploaded_by\" text NOT NULL, \"jobid\" uuid NOT NULL, \"name\" text, PRIMARY - KEY (\"id\") , FOREIGN KEY (\"jobid\") REFERENCES \"public\".\"jobs\"(\"id\") - ON UPDATE cascade ON DELETE cascade);\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_documents_updated_at\"\nBEFORE - UPDATE ON \"public\".\"documents\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_documents_updated_at\" ON \"public\".\"documents\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';\n" - type: run_sql -- args: - name: documents - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1579106900223_track_all_relationships/down.yaml b/hasura/migrations/1579106900223_track_all_relationships/down.yaml deleted file mode 100644 index 41c2dbf13..000000000 --- a/hasura/migrations/1579106900223_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: job - table: - name: documents - schema: public - type: drop_relationship -- args: - relationship: documents - table: - name: jobs - schema: public - type: drop_relationship diff --git a/hasura/migrations/1579106900223_track_all_relationships/up.yaml b/hasura/migrations/1579106900223_track_all_relationships/up.yaml deleted file mode 100644 index 3b52d494f..000000000 --- a/hasura/migrations/1579106900223_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: job - table: - name: documents - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship -- args: - name: documents - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: documents - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1579106943432_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1579106943432_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index dd7923c4f..000000000 --- a/hasura/migrations/1579106943432_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1579106943432_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1579106943432_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 21534a4d6..000000000 --- a/hasura/migrations/1579106943432_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,31 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - name - - thumb_url - - uploaded_by - - url - - created_at - - updated_at - - id - - jobid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579106952393_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1579106952393_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 51466ca34..000000000 --- a/hasura/migrations/1579106952393_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1579106952393_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1579106952393_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 2f2117f0a..000000000 --- a/hasura/migrations/1579106952393_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - name - - thumb_url - - uploaded_by - - url - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579106959311_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1579106959311_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index d9430d461..000000000 --- a/hasura/migrations/1579106959311_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1579106959311_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1579106959311_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 1aa5bbecc..000000000 --- a/hasura/migrations/1579106959311_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - permission: - columns: - - name - - thumb_url - - uploaded_by - - url - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579106966146_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1579106966146_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 35842c257..000000000 --- a/hasura/migrations/1579106966146_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1579106966146_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1579106966146_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 0cf25dca3..000000000 --- a/hasura/migrations/1579106966146_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1579293094338_alter_table_public_jobs_add_column_ciecaid/down.yaml b/hasura/migrations/1579293094338_alter_table_public_jobs_add_column_ciecaid/down.yaml deleted file mode 100644 index 18b705281..000000000 --- a/hasura/migrations/1579293094338_alter_table_public_jobs_add_column_ciecaid/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "ciecaid"; - type: run_sql diff --git a/hasura/migrations/1579293094338_alter_table_public_jobs_add_column_ciecaid/up.yaml b/hasura/migrations/1579293094338_alter_table_public_jobs_add_column_ciecaid/up.yaml deleted file mode 100644 index c004a1fe0..000000000 --- a/hasura/migrations/1579293094338_alter_table_public_jobs_add_column_ciecaid/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "ciecaid" text NULL; - type: run_sql diff --git a/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/down.yaml b/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/down.yaml deleted file mode 100644 index b89c21807..000000000 --- a/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "loss_date"; - type: run_sql diff --git a/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/up.yaml b/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/up.yaml deleted file mode 100644 index c9f3b6c09..000000000 --- a/hasura/migrations/1579303346477_alter_table_public_jobs_add_column_loss_date/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "loss_date" date NULL; - type: run_sql diff --git a/hasura/migrations/1579303896469_ad1_file_additions/down.yaml b/hasura/migrations/1579303896469_ad1_file_additions/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579303896469_ad1_file_additions/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579303896469_ad1_file_additions/up.yaml b/hasura/migrations/1579303896469_ad1_file_additions/up.yaml deleted file mode 100644 index 4d0b300fd..000000000 --- a/hasura/migrations/1579303896469_ad1_file_additions/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - cascade: true - sql: "alter table jobs\r\nadd column clm_ofc_nm text,\r\nadd column clm_addr1 - \ text,\r\nadd column clm_addr2 text,\r\nadd column clm_city text,\r\nadd - column clm_st text,\r\nadd column clm_zip text,\r\nadd column clm_ctry - \ text,\r\nadd column clm_ph1 text,\r\nadd column clm_ph1x text,\r\nadd - column clm_ph2 text,\r\nadd column clm_ph2x text,\r\nadd column clm_fax - \ text,\r\nadd column clm_faxx text,\r\nadd column clm_ct_ln text,\r\nadd - column clm_ct_fn text,\r\nadd column clm_title text,\r\nadd column clm_ct_ph - \ text,\r\nadd column clm_ct_phx text,\r\nadd column clm_ea text,\r\nadd - column payee_nms text,\r\nadd column pay_type text,\r\nadd column pay_date - \ \tdate,\r\nadd column pay_chknm text,\r\nadd column pay_amt numeric,\r\nadd - column agt_co_id text,\r\nadd column agt_co_nm text,\r\nadd column agt_addr1 - \ text,\r\nadd column agt_addr2 text,\r\nadd column agt_city text,\r\nadd - column agt_st text,\r\nadd column agt_zip text,\r\nadd column agt_ctry - \ text,\r\nadd column agt_ph1 text,\r\nadd column agt_ph1x text,\r\nadd - column agt_ph2 text,\r\nadd column agt_ph2x text,\r\nadd column agt_fax - \ text,\r\nadd column agt_faxx text,\r\nadd column agt_ct_ln text,\r\nadd - column agt_ct_fn text,\r\nadd column agt_ct_ph text,\r\nadd column agt_ct_phx - text,\r\nadd column agt_ea text,\r\nadd column agt_lic_no text" - type: run_sql diff --git a/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/down.yaml b/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/down.yaml deleted file mode 100644 index 804e3a435..000000000 --- a/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "loss_type"; - type: run_sql diff --git a/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/up.yaml b/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/up.yaml deleted file mode 100644 index dc4fbe0ee..000000000 --- a/hasura/migrations/1579304455426_alter_table_public_jobs_add_column_loss_type/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "loss_type" text NULL; - type: run_sql diff --git a/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/down.yaml b/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/down.yaml deleted file mode 100644 index 12e78c877..000000000 --- a/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "loss_desc"; - type: run_sql diff --git a/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/up.yaml b/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/up.yaml deleted file mode 100644 index 0769ec158..000000000 --- a/hasura/migrations/1579304467783_alter_table_public_jobs_add_column_loss_desc/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "loss_desc" text NULL; - type: run_sql diff --git a/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/down.yaml b/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/down.yaml deleted file mode 100644 index 141efafd6..000000000 --- a/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "theft_ind"; - type: run_sql diff --git a/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/up.yaml b/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/up.yaml deleted file mode 100644 index 98fbac65c..000000000 --- a/hasura/migrations/1579304483039_alter_table_public_jobs_add_column_theft_ind/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "theft_ind" boolean NULL; - type: run_sql diff --git a/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/down.yaml b/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/down.yaml deleted file mode 100644 index 443e66435..000000000 --- a/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "cat_no"; - type: run_sql diff --git a/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/up.yaml b/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/up.yaml deleted file mode 100644 index aea8924e3..000000000 --- a/hasura/migrations/1579304497098_alter_table_public_jobs_add_column_cat_no/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "cat_no" text NULL; - type: run_sql diff --git a/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/down.yaml b/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/down.yaml deleted file mode 100644 index efb2cb28a..000000000 --- a/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "tlos_ind"; - type: run_sql diff --git a/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/up.yaml b/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/up.yaml deleted file mode 100644 index c95193e9b..000000000 --- a/hasura/migrations/1579304533607_alter_table_public_jobs_add_column_tlos_ind/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "tlos_ind" boolean NULL; - type: run_sql diff --git a/hasura/migrations/1579304768385_additional_ad1_fields/down.yaml b/hasura/migrations/1579304768385_additional_ad1_fields/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579304768385_additional_ad1_fields/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579304768385_additional_ad1_fields/up.yaml b/hasura/migrations/1579304768385_additional_ad1_fields/up.yaml deleted file mode 100644 index f8cffa79a..000000000 --- a/hasura/migrations/1579304768385_additional_ad1_fields/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - cascade: true - sql: "alter table jobs\r\nadd column cust_pr text,\r\nadd column insd_ln - \ text,\r\nadd column insd_fn text,\r\nadd column insd_title - \ text,\r\nadd column insd_co_nm text,\r\nadd column insd_addr1 - \ text,\r\nadd column insd_addr2 text,\r\nadd column insd_city - \ text,\r\nadd column insd_st text,\r\nadd column insd_zip - \ text,\r\nadd column insd_ctry text,\r\nadd column insd_ph1 - \ text,\r\nadd column insd_ph1x text,\r\nadd column insd_ph2 - \ text,\r\nadd column insd_ph2x text,\r\nadd column insd_fax - \ text,\r\nadd column insd_faxx text,\r\nadd column insd_ea - \ text,\r\nadd column ownr_ln text,\r\nadd column ownr_fn - \ text,\r\nadd column ownr_title text,\r\nadd column ownr_co_nm - \ text,\r\nadd column ownr_addr1 text,\r\nadd column ownr_addr2 - \ text,\r\nadd column ownr_city text,\r\nadd column ownr_st - \ text,\r\nadd column ownr_zip text,\r\nadd column ownr_ctry - \ text,\r\nadd column ownr_ph1 text,\r\nadd column ownr_ph1x - \ text,\r\nadd column ownr_ph2 text,\r\nadd column ownr_ph2x - \ text,\r\nadd column ownr_fax text,\r\nadd column ownr_faxx - \ text,\r\nadd column ownr_ea text" - type: run_sql diff --git a/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 81bdff74e..000000000 --- a/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,129 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - est_number - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_owner_email - - pit_vehicle_plate_no - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 5079ab60d..000000000 --- a/hasura/migrations/1579305427485_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,215 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - converted - - ded_status - - inproduction - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579305435976_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579305435976_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index f98c35f13..000000000 --- a/hasura/migrations/1579305435976_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,127 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579305435976_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579305435976_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 681a9f7bc..000000000 --- a/hasura/migrations/1579305435976_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,213 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - ded_status - - inproduction - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579305444942_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579305444942_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index ee5d48718..000000000 --- a/hasura/migrations/1579305444942_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,129 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - ded_status - - inproduction - - asgn_date - - invoice_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - asgn_no - - asgn_type - - clm_no - - clm_ofc_id - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579305444942_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579305444942_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 5210f5c10..000000000 --- a/hasura/migrations/1579305444942_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,215 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - ded_status - - inproduction - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579307089408_alter_table_public_jobs_alter_column_theft_ind/down.yaml b/hasura/migrations/1579307089408_alter_table_public_jobs_alter_column_theft_ind/down.yaml deleted file mode 100644 index cbfca3bdb..000000000 --- a/hasura/migrations/1579307089408_alter_table_public_jobs_alter_column_theft_ind/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "theft_ind" TYPE boolean; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."theft_ind" IS E'null' - type: run_sql diff --git a/hasura/migrations/1579307089408_alter_table_public_jobs_alter_column_theft_ind/up.yaml b/hasura/migrations/1579307089408_alter_table_public_jobs_alter_column_theft_ind/up.yaml deleted file mode 100644 index 9c36b7c86..000000000 --- a/hasura/migrations/1579307089408_alter_table_public_jobs_alter_column_theft_ind/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "theft_ind" TYPE text; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."theft_ind" IS E'' - type: run_sql diff --git a/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/down.yaml b/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/down.yaml deleted file mode 100644 index 76af2e02a..000000000 --- a/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "tlos_ind" TYPE boolean; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tlos_ind" IS E'null' - type: run_sql diff --git a/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/up.yaml b/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/up.yaml deleted file mode 100644 index 54de58527..000000000 --- a/hasura/migrations/1579307167983_alter_table_public_jobs_alter_column_tlos_ind/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "tlos_ind" TYPE text; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tlos_ind" IS E'' - type: run_sql diff --git a/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/down.yaml b/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/down.yaml deleted file mode 100644 index f8b17dcda..000000000 --- a/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "area_of_damage"; - type: run_sql diff --git a/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/up.yaml b/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/up.yaml deleted file mode 100644 index a984d592c..000000000 --- a/hasura/migrations/1579316190537_alter_table_public_jobs_add_column_area_of_damage/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "area_of_damage" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 8dbb075ef..000000000 --- a/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: [] - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index b021494c7..000000000 --- a/hasura/migrations/1579316542100_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - id - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 439576cd8..000000000 --- a/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - id - - plate_no - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vehicles - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index 674231b4e..000000000 --- a/hasura/migrations/1579316548116_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - id - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vehicles - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 434996a4f..000000000 --- a/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - plate_no - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index 3d9a1f59e..000000000 --- a/hasura/migrations/1579316556073_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - id - - plate_no - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 3d9a1f59e..000000000 --- a/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - id - - plate_no - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index 6e094e12c..000000000 --- a/hasura/migrations/1579316561811_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - id - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/down.yaml b/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/down.yaml deleted file mode 100644 index 0086c1ea2..000000000 --- a/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vehicles" ADD COLUMN "plate_no" text - type: run_sql -- args: - sql: ALTER TABLE "public"."vehicles" ALTER COLUMN "plate_no" DROP NOT NULL - type: run_sql diff --git a/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/up.yaml b/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/up.yaml deleted file mode 100644 index 280cb35d5..000000000 --- a/hasura/migrations/1579316570575_alter_table_public_vehicles_drop_column_plate_no/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vehicles" DROP COLUMN "plate_no" CASCADE - type: run_sql diff --git a/hasura/migrations/1579316700913_new_vehicle_fields/down.yaml b/hasura/migrations/1579316700913_new_vehicle_fields/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579316700913_new_vehicle_fields/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579316700913_new_vehicle_fields/up.yaml b/hasura/migrations/1579316700913_new_vehicle_fields/up.yaml deleted file mode 100644 index f73a7ce25..000000000 --- a/hasura/migrations/1579316700913_new_vehicle_fields/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: true - sql: "alter table vehicles\r\n add column DB_V_CODE text,\r\n add - column PLATE_NO text,\r\n add column PLATE_ST text,\r\n - \ add column V_COND text,\r\n add column V_PROD_DT text,\r\n - \ add column V_TYPE text,\r\n add column V_TRIMCODE text,\r\n - \ add column TRIM_COLOR text,\r\n add column V_MLDGCODE text,\r\n - \ add column V_OPTIONS text,\r\n add column V_TONE text,\r\n - \ add column V_STAGE text" - type: run_sql diff --git a/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/down.yaml b/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/down.yaml deleted file mode 100644 index 7272ccaf3..000000000 --- a/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vehicles" DROP COLUMN "v_makecode"; - type: run_sql diff --git a/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/up.yaml b/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/up.yaml deleted file mode 100644 index e38f992a9..000000000 --- a/hasura/migrations/1579317041179_alter_table_public_vehicles_add_column_v_makecode/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vehicles" ADD COLUMN "v_makecode" text NULL; - type: run_sql diff --git a/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index b021494c7..000000000 --- a/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - id - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index dba16313e..000000000 --- a/hasura/migrations/1579317260140_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,52 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - v_vin - - v_make_desc - - v_model_desc - - v_model_yr - - v_color - - v_paint_codes - - v_bstyle - - v_engine - - shopid - - db_v_code - - plate_no - - plate_st - - v_cond - - v_prod_dt - - v_type - - v_trimcode - - trim_color - - v_mldgcode - - v_options - - v_tone - - v_stage - - v_makecode - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 674231b4e..000000000 --- a/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - id - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vehicles - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index bec9ebae2..000000000 --- a/hasura/migrations/1579317266113_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - v_paint_codes - - db_v_code - - plate_no - - plate_st - - trim_color - - v_bstyle - - v_color - - v_cond - - v_engine - - v_makecode - - v_make_desc - - v_mldgcode - - v_model_desc - - v_model_yr - - v_options - - v_prod_dt - - v_stage - - v_tone - - v_trimcode - - v_type - - v_vin - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vehicles - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index 6e094e12c..000000000 --- a/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - id - - shopid - - updated_at - - v_bstyle - - v_color - - v_engine - - v_make_desc - - v_model_desc - - v_model_yr - - v_paint_codes - - v_vin - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index 556692f5d..000000000 --- a/hasura/migrations/1579317271049_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,52 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_update_permission -- args: - permission: - columns: - - v_paint_codes - - db_v_code - - plate_no - - plate_st - - trim_color - - v_bstyle - - v_color - - v_cond - - v_engine - - v_makecode - - v_make_desc - - v_mldgcode - - v_model_desc - - v_model_yr - - v_options - - v_prod_dt - - v_stage - - v_tone - - v_trimcode - - v_type - - v_vin - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vehicles - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 5079ab60d..000000000 --- a/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,215 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - converted - - ded_status - - inproduction - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 6d6b43661..000000000 --- a/hasura/migrations/1579317282874_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,216 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 681a9f7bc..000000000 --- a/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,213 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - ded_status - - inproduction - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 006d38513..000000000 --- a/hasura/migrations/1579317288521_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,214 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - ded_status - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 5210f5c10..000000000 --- a/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,215 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - ded_status - - inproduction - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 7404e528a..000000000 --- a/hasura/migrations/1579317294400_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,216 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - ded_status - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 1b6c6d9db..000000000 --- a/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_ro_statuses - - shopname - - state - - state_tax_id - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 80ca70d5d..000000000 --- a/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_ro_statuses - - shopname - - state - - state_tax_id - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index b5b542a8b..000000000 --- a/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - insurance_vendor_id - - logo_img_path - - md_ro_statuses - - shopname - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 0c9193996..000000000 --- a/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - insurance_vendor_id - - logo_img_path - - md_ro_statuses - - shopname - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579565033587_alter_table_public_jobs_alter_column_ded_status/down.yaml b/hasura/migrations/1579565033587_alter_table_public_jobs_alter_column_ded_status/down.yaml deleted file mode 100644 index fc87d6d36..000000000 --- a/hasura/migrations/1579565033587_alter_table_public_jobs_alter_column_ded_status/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "ded_status" TYPE boolean; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."ded_status" IS E'null' - type: run_sql diff --git a/hasura/migrations/1579565033587_alter_table_public_jobs_alter_column_ded_status/up.yaml b/hasura/migrations/1579565033587_alter_table_public_jobs_alter_column_ded_status/up.yaml deleted file mode 100644 index a07b81c94..000000000 --- a/hasura/migrations/1579565033587_alter_table_public_jobs_alter_column_ded_status/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "ded_status" TYPE text; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."ded_status" IS E'' - type: run_sql diff --git a/hasura/migrations/1579565906890_alter_table_public_vehicles_alter_column_v_vin/down.yaml b/hasura/migrations/1579565906890_alter_table_public_vehicles_alter_column_v_vin/down.yaml deleted file mode 100644 index a18c9095b..000000000 --- a/hasura/migrations/1579565906890_alter_table_public_vehicles_alter_column_v_vin/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vehicles" ALTER COLUMN "v_vin" SET NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."vehicles"."v_vin" IS E'null' - type: run_sql diff --git a/hasura/migrations/1579565906890_alter_table_public_vehicles_alter_column_v_vin/up.yaml b/hasura/migrations/1579565906890_alter_table_public_vehicles_alter_column_v_vin/up.yaml deleted file mode 100644 index dc4618c68..000000000 --- a/hasura/migrations/1579565906890_alter_table_public_vehicles_alter_column_v_vin/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vehicles" ALTER COLUMN "v_vin" DROP NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."vehicles"."v_vin" IS E'' - type: run_sql diff --git a/hasura/migrations/1579565961308_alter_table_public_vehicles_alter_column_v_vin/down.yaml b/hasura/migrations/1579565961308_alter_table_public_vehicles_alter_column_v_vin/down.yaml deleted file mode 100644 index e65c090c4..000000000 --- a/hasura/migrations/1579565961308_alter_table_public_vehicles_alter_column_v_vin/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vehicles" ALTER COLUMN "v_vin" DROP NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."vehicles"."v_vin" IS E'null' - type: run_sql diff --git a/hasura/migrations/1579565961308_alter_table_public_vehicles_alter_column_v_vin/up.yaml b/hasura/migrations/1579565961308_alter_table_public_vehicles_alter_column_v_vin/up.yaml deleted file mode 100644 index fbfd8f4ad..000000000 --- a/hasura/migrations/1579565961308_alter_table_public_vehicles_alter_column_v_vin/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vehicles" ALTER COLUMN "v_vin" SET NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."vehicles"."v_vin" IS E'' - type: run_sql diff --git a/hasura/migrations/1579729421561_alter_table_public_jobs_add_column_loss_cat/down.yaml b/hasura/migrations/1579729421561_alter_table_public_jobs_add_column_loss_cat/down.yaml deleted file mode 100644 index 18762c334..000000000 --- a/hasura/migrations/1579729421561_alter_table_public_jobs_add_column_loss_cat/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "loss_cat"; - type: run_sql diff --git a/hasura/migrations/1579729421561_alter_table_public_jobs_add_column_loss_cat/up.yaml b/hasura/migrations/1579729421561_alter_table_public_jobs_add_column_loss_cat/up.yaml deleted file mode 100644 index 2cbbce7a3..000000000 --- a/hasura/migrations/1579729421561_alter_table_public_jobs_add_column_loss_cat/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "loss_cat" text NULL; - type: run_sql diff --git a/hasura/migrations/1579729438238_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579729438238_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 6d6b43661..000000000 --- a/hasura/migrations/1579729438238_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,216 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579729438238_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579729438238_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 2a20bc732..000000000 --- a/hasura/migrations/1579729438238_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,217 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - est_number - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_owner_email - - pit_vehicle_plate_no - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579729459311_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579729459311_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 6d6b43661..000000000 --- a/hasura/migrations/1579729459311_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,216 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579729459311_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579729459311_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index cdb202414..000000000 --- a/hasura/migrations/1579729459311_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,212 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579729474321_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579729474321_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 006d38513..000000000 --- a/hasura/migrations/1579729474321_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,214 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - ded_status - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579729474321_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579729474321_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 931e8b9ab..000000000 --- a/hasura/migrations/1579729474321_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,210 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579729492341_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579729492341_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 7404e528a..000000000 --- a/hasura/migrations/1579729492341_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,216 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - ded_status - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - pit_owner_email - - pit_owner_first_name - - pit_owner_last_name - - pit_owner_phone - - pit_vehicle_plate_no - - policy_no - - regie_number - - ro_number - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579729492341_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579729492341_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 3945c7115..000000000 --- a/hasura/migrations/1579729492341_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,212 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579729507972_alter_table_public_jobs_drop_column_pit_owner_first_name/down.yaml b/hasura/migrations/1579729507972_alter_table_public_jobs_drop_column_pit_owner_first_name/down.yaml deleted file mode 100644 index 9efb97dbc..000000000 --- a/hasura/migrations/1579729507972_alter_table_public_jobs_drop_column_pit_owner_first_name/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "pit_owner_first_name" text - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "pit_owner_first_name" DROP NOT - NULL - type: run_sql diff --git a/hasura/migrations/1579729507972_alter_table_public_jobs_drop_column_pit_owner_first_name/up.yaml b/hasura/migrations/1579729507972_alter_table_public_jobs_drop_column_pit_owner_first_name/up.yaml deleted file mode 100644 index d60362aa1..000000000 --- a/hasura/migrations/1579729507972_alter_table_public_jobs_drop_column_pit_owner_first_name/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "pit_owner_first_name" CASCADE - type: run_sql diff --git a/hasura/migrations/1579729524654_alter_table_public_jobs_drop_column_pit_owner_last_name/down.yaml b/hasura/migrations/1579729524654_alter_table_public_jobs_drop_column_pit_owner_last_name/down.yaml deleted file mode 100644 index 2cb66804f..000000000 --- a/hasura/migrations/1579729524654_alter_table_public_jobs_drop_column_pit_owner_last_name/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "pit_owner_last_name" text - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "pit_owner_last_name" DROP NOT NULL - type: run_sql diff --git a/hasura/migrations/1579729524654_alter_table_public_jobs_drop_column_pit_owner_last_name/up.yaml b/hasura/migrations/1579729524654_alter_table_public_jobs_drop_column_pit_owner_last_name/up.yaml deleted file mode 100644 index 1a8ba3824..000000000 --- a/hasura/migrations/1579729524654_alter_table_public_jobs_drop_column_pit_owner_last_name/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "pit_owner_last_name" CASCADE - type: run_sql diff --git a/hasura/migrations/1579729535626_alter_table_public_jobs_drop_column_pit_owner_phone/down.yaml b/hasura/migrations/1579729535626_alter_table_public_jobs_drop_column_pit_owner_phone/down.yaml deleted file mode 100644 index 33ba03f72..000000000 --- a/hasura/migrations/1579729535626_alter_table_public_jobs_drop_column_pit_owner_phone/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "pit_owner_phone" text - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "pit_owner_phone" DROP NOT NULL - type: run_sql diff --git a/hasura/migrations/1579729535626_alter_table_public_jobs_drop_column_pit_owner_phone/up.yaml b/hasura/migrations/1579729535626_alter_table_public_jobs_drop_column_pit_owner_phone/up.yaml deleted file mode 100644 index 9da6e9a71..000000000 --- a/hasura/migrations/1579729535626_alter_table_public_jobs_drop_column_pit_owner_phone/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "pit_owner_phone" CASCADE - type: run_sql diff --git a/hasura/migrations/1579729546834_alter_table_public_jobs_drop_column_pit_owner_email/down.yaml b/hasura/migrations/1579729546834_alter_table_public_jobs_drop_column_pit_owner_email/down.yaml deleted file mode 100644 index c5463c433..000000000 --- a/hasura/migrations/1579729546834_alter_table_public_jobs_drop_column_pit_owner_email/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "pit_owner_email" text - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "pit_owner_email" DROP NOT NULL - type: run_sql diff --git a/hasura/migrations/1579729546834_alter_table_public_jobs_drop_column_pit_owner_email/up.yaml b/hasura/migrations/1579729546834_alter_table_public_jobs_drop_column_pit_owner_email/up.yaml deleted file mode 100644 index 47ee6400f..000000000 --- a/hasura/migrations/1579729546834_alter_table_public_jobs_drop_column_pit_owner_email/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "pit_owner_email" CASCADE - type: run_sql diff --git a/hasura/migrations/1579729565695_alter_table_public_jobs_drop_column_pit_vehicle_plate_no/down.yaml b/hasura/migrations/1579729565695_alter_table_public_jobs_drop_column_pit_vehicle_plate_no/down.yaml deleted file mode 100644 index d3258dbf5..000000000 --- a/hasura/migrations/1579729565695_alter_table_public_jobs_drop_column_pit_vehicle_plate_no/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "pit_vehicle_plate_no" text - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "pit_vehicle_plate_no" DROP NOT - NULL - type: run_sql diff --git a/hasura/migrations/1579729565695_alter_table_public_jobs_drop_column_pit_vehicle_plate_no/up.yaml b/hasura/migrations/1579729565695_alter_table_public_jobs_drop_column_pit_vehicle_plate_no/up.yaml deleted file mode 100644 index dfb84371a..000000000 --- a/hasura/migrations/1579729565695_alter_table_public_jobs_drop_column_pit_vehicle_plate_no/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "pit_vehicle_plate_no" CASCADE - type: run_sql diff --git a/hasura/migrations/1579730319740_alter_table_public_jobs_alter_column_est_number/down.yaml b/hasura/migrations/1579730319740_alter_table_public_jobs_alter_column_est_number/down.yaml deleted file mode 100644 index c92dea5db..000000000 --- a/hasura/migrations/1579730319740_alter_table_public_jobs_alter_column_est_number/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "est_number" SET NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."est_number" IS E'null' - type: run_sql diff --git a/hasura/migrations/1579730319740_alter_table_public_jobs_alter_column_est_number/up.yaml b/hasura/migrations/1579730319740_alter_table_public_jobs_alter_column_est_number/up.yaml deleted file mode 100644 index 3df046224..000000000 --- a/hasura/migrations/1579730319740_alter_table_public_jobs_alter_column_est_number/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "est_number" DROP NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."est_number" IS E'' - type: run_sql diff --git a/hasura/migrations/1579808199913_alter_table_public_documents_add_column_key/down.yaml b/hasura/migrations/1579808199913_alter_table_public_documents_add_column_key/down.yaml deleted file mode 100644 index 796bf37da..000000000 --- a/hasura/migrations/1579808199913_alter_table_public_documents_add_column_key/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."documents" DROP COLUMN "key"; - type: run_sql diff --git a/hasura/migrations/1579808199913_alter_table_public_documents_add_column_key/up.yaml b/hasura/migrations/1579808199913_alter_table_public_documents_add_column_key/up.yaml deleted file mode 100644 index 7684d4abc..000000000 --- a/hasura/migrations/1579808199913_alter_table_public_documents_add_column_key/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."documents" ADD COLUMN "key" text NOT NULL DEFAULT '0'; - type: run_sql diff --git a/hasura/migrations/1579808226020_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1579808226020_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 727382dec..000000000 --- a/hasura/migrations/1579808226020_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - name - - thumb_url - - uploaded_by - - url - - created_at - - updated_at - - id - - jobid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579808226020_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1579808226020_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 2c0ca6648..000000000 --- a/hasura/migrations/1579808226020_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - id - - jobid - - key - - name - - thumb_url - - updated_at - - uploaded_by - - url - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579808232227_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1579808232227_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 18e6b72a5..000000000 --- a/hasura/migrations/1579808232227_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - name - - thumb_url - - uploaded_by - - url - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579808232227_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1579808232227_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 3d103eca5..000000000 --- a/hasura/migrations/1579808232227_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - id - - jobid - - key - - name - - thumb_url - - updated_at - - uploaded_by - - url - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579808237403_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1579808237403_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 085d3dac8..000000000 --- a/hasura/migrations/1579808237403_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_update_permission -- args: - permission: - columns: - - name - - thumb_url - - uploaded_by - - url - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579808237403_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1579808237403_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 515730b23..000000000 --- a/hasura/migrations/1579808237403_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - id - - jobid - - key - - name - - thumb_url - - updated_at - - uploaded_by - - url - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579818641451_enable_pg_trm/down.yaml b/hasura/migrations/1579818641451_enable_pg_trm/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579818641451_enable_pg_trm/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579818641451_enable_pg_trm/up.yaml b/hasura/migrations/1579818641451_enable_pg_trm/up.yaml deleted file mode 100644 index 501ce8467..000000000 --- a/hasura/migrations/1579818641451_enable_pg_trm/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - cascade: true - sql: "CREATE EXTENSION pg_trgm;\r\n" - type: run_sql diff --git a/hasura/migrations/1579819352860_create_gin_index_jobs/down.yaml b/hasura/migrations/1579819352860_create_gin_index_jobs/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579819352860_create_gin_index_jobs/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579819352860_create_gin_index_jobs/up.yaml b/hasura/migrations/1579819352860_create_gin_index_jobs/up.yaml deleted file mode 100644 index 17188248a..000000000 --- a/hasura/migrations/1579819352860_create_gin_index_jobs/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - cascade: true - sql: "CREATE INDEX jobs_gin_idx ON jobs\r\nUSING GIN ((est_number || ' ' || ro_number - \ || ' ' || clm_no || ' ' || ownr_ln || ' ' || ownr_fn || ' ' || ownr_ph1 - \r\n|| ' ' || ownr_ea \r\n|| ' ' || insd_ln \r\n|| ' ' || insd_fn \r\n|| ' ' - || insd_ea \r\n|| ' ' || insd_ph1 ) gin_trgm_ops);" - type: run_sql diff --git a/hasura/migrations/1579819439525_search_jobs_function/down.yaml b/hasura/migrations/1579819439525_search_jobs_function/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579819439525_search_jobs_function/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579819439525_search_jobs_function/up.yaml b/hasura/migrations/1579819439525_search_jobs_function/up.yaml deleted file mode 100644 index 9639ba95c..000000000 --- a/hasura/migrations/1579819439525_search_jobs_function/up.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - cascade: true - sql: "CREATE FUNCTION search_jobs(search text)\r\nRETURNS SETOF jobs AS $$\r\n - \ SELECT *\r\n FROM jobs\r\n WHERE\r\n search <% (est_number || - ' ' || ro_number || ' ' || clm_no || ' ' || ownr_ln || ' ' || ownr_fn || - ' ' || ownr_ph1 \r\n|| ' ' || ownr_ea \r\n|| ' ' || insd_ln \r\n|| ' ' || insd_fn - \r\n|| ' ' || insd_ea \r\n|| ' ' || insd_ph1 )\r\n ORDER BY\r\n similarity(search, - (est_number || ' ' || ro_number || ' ' || clm_no || ' ' || ownr_ln || ' - ' || ownr_fn || ' ' || ownr_ph1 \r\n|| ' ' || ownr_ea \r\n|| ' ' || insd_ln - \r\n|| ' ' || insd_fn \r\n|| ' ' || insd_ea \r\n|| ' ' || insd_ph1 )) DESC\r\n - \ LIMIT 50;\r\n$$ LANGUAGE sql STABLE;" - type: run_sql -- args: - name: search_jobs - schema: public - type: track_function diff --git a/hasura/migrations/1579820833038_run_sql_migration/down.yaml b/hasura/migrations/1579820833038_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579820833038_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579820833038_run_sql_migration/up.yaml b/hasura/migrations/1579820833038_run_sql_migration/up.yaml deleted file mode 100644 index d6dc6c697..000000000 --- a/hasura/migrations/1579820833038_run_sql_migration/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - cascade: true - sql: 'drop index jobs_gin_idx ' - type: run_sql diff --git a/hasura/migrations/1579820853826_run_sql_migration/down.yaml b/hasura/migrations/1579820853826_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579820853826_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579820853826_run_sql_migration/up.yaml b/hasura/migrations/1579820853826_run_sql_migration/up.yaml deleted file mode 100644 index 984059595..000000000 --- a/hasura/migrations/1579820853826_run_sql_migration/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - cascade: true - sql: drop function search_jobs - type: run_sql diff --git a/hasura/migrations/1579821113991_new_jobs_index/down.yaml b/hasura/migrations/1579821113991_new_jobs_index/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579821113991_new_jobs_index/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579821113991_new_jobs_index/up.yaml b/hasura/migrations/1579821113991_new_jobs_index/up.yaml deleted file mode 100644 index 6e29d97d4..000000000 --- a/hasura/migrations/1579821113991_new_jobs_index/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - cascade: true - sql: CREATE INDEX jobs_search_idx ON jobs USING gin (est_number gin_trgm_ops, - ro_number gin_trgm_ops, clm_no gin_trgm_ops, ownr_ln gin_trgm_ops, ownr_fn gin_trgm_ops, - ownr_ph1 gin_trgm_ops, ownr_ea gin_trgm_ops, insd_ln gin_trgm_ops, insd_fn gin_trgm_ops, - insd_ea gin_trgm_ops, insd_ph1 gin_trgm_ops); - type: run_sql diff --git a/hasura/migrations/1579823064149_drop_index/down.yaml b/hasura/migrations/1579823064149_drop_index/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579823064149_drop_index/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579823064149_drop_index/up.yaml b/hasura/migrations/1579823064149_drop_index/up.yaml deleted file mode 100644 index 4f54ab178..000000000 --- a/hasura/migrations/1579823064149_drop_index/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - cascade: true - sql: 'drop INDEX jobs_search_idx ' - type: run_sql diff --git a/hasura/migrations/1579824162431_alter_table_public_jobs_add_column_search_idx_col/down.yaml b/hasura/migrations/1579824162431_alter_table_public_jobs_add_column_search_idx_col/down.yaml deleted file mode 100644 index e62a6046e..000000000 --- a/hasura/migrations/1579824162431_alter_table_public_jobs_add_column_search_idx_col/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "search_idx_col"; - type: run_sql diff --git a/hasura/migrations/1579824162431_alter_table_public_jobs_add_column_search_idx_col/up.yaml b/hasura/migrations/1579824162431_alter_table_public_jobs_add_column_search_idx_col/up.yaml deleted file mode 100644 index 26b51996a..000000000 --- a/hasura/migrations/1579824162431_alter_table_public_jobs_add_column_search_idx_col/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "search_idx_col" tsvector NULL; - type: run_sql diff --git a/hasura/migrations/1579825076007_job_search_function/down.yaml b/hasura/migrations/1579825076007_job_search_function/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1579825076007_job_search_function/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1579825076007_job_search_function/up.yaml b/hasura/migrations/1579825076007_job_search_function/up.yaml deleted file mode 100644 index 70f68249e..000000000 --- a/hasura/migrations/1579825076007_job_search_function/up.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- args: - cascade: true - sql: "CREATE FUNCTION search_jobs(search text)\r\nRETURNS SETOF jobs AS $$\r\n - \ SELECT *\r\n FROM jobs\r\n WHERE\r\n ownr_fn ilike ('%' || search - || '%')\r\n OR ownr_ln ilike ('%' || search || '%')\r\n OR ro_number - ilike ('%' || search || '%')\r\n OR est_number ilike ('%' || search || - '%')\r\n OR clm_no ilike ('%' || search || '%')\r\n OR ownr_ph1 ilike - ('%' || search || '%')\r\n OR ownr_ea ilike ('%' || search || '%')\r\n - \ OR insd_ln ilike ('%' || search || '%')\r\n OR insd_fn ilike ('%' - || search || '%')\r\n$$ LANGUAGE sql STABLE;\r\n" - type: run_sql -- args: - name: search_jobs - schema: public - type: track_function diff --git a/hasura/migrations/1579825091344_alter_table_public_jobs_drop_column_search_idx_col/down.yaml b/hasura/migrations/1579825091344_alter_table_public_jobs_drop_column_search_idx_col/down.yaml deleted file mode 100644 index 969a340c5..000000000 --- a/hasura/migrations/1579825091344_alter_table_public_jobs_drop_column_search_idx_col/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "search_idx_col" tsvector - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "search_idx_col" DROP NOT NULL - type: run_sql diff --git a/hasura/migrations/1579825091344_alter_table_public_jobs_drop_column_search_idx_col/up.yaml b/hasura/migrations/1579825091344_alter_table_public_jobs_drop_column_search_idx_col/up.yaml deleted file mode 100644 index ce1071e44..000000000 --- a/hasura/migrations/1579825091344_alter_table_public_jobs_drop_column_search_idx_col/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "search_idx_col" CASCADE - type: run_sql diff --git a/hasura/migrations/1579828405600_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579828405600_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index cdb202414..000000000 --- a/hasura/migrations/1579828405600_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,212 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579828405600_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579828405600_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 802868c66..000000000 --- a/hasura/migrations/1579828405600_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,211 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579828420568_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579828420568_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 931e8b9ab..000000000 --- a/hasura/migrations/1579828420568_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,210 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579828420568_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579828420568_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 0a96c063d..000000000 --- a/hasura/migrations/1579828420568_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,209 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579828431423_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579828431423_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 3945c7115..000000000 --- a/hasura/migrations/1579828431423_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,212 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579828431423_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579828431423_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index a3b61010f..000000000 --- a/hasura/migrations/1579828431423_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,211 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579828444855_alter_table_public_jobs_drop_column_est_number/down.yaml b/hasura/migrations/1579828444855_alter_table_public_jobs_drop_column_est_number/down.yaml deleted file mode 100644 index 742d6cd31..000000000 --- a/hasura/migrations/1579828444855_alter_table_public_jobs_drop_column_est_number/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "est_number" text - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "est_number" DROP NOT NULL - type: run_sql diff --git a/hasura/migrations/1579828444855_alter_table_public_jobs_drop_column_est_number/up.yaml b/hasura/migrations/1579828444855_alter_table_public_jobs_drop_column_est_number/up.yaml deleted file mode 100644 index 0a7b343e7..000000000 --- a/hasura/migrations/1579828444855_alter_table_public_jobs_drop_column_est_number/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "est_number" CASCADE - type: run_sql diff --git a/hasura/migrations/1579828512176_alter_table_public_jobs_add_column_est_number/down.yaml b/hasura/migrations/1579828512176_alter_table_public_jobs_add_column_est_number/down.yaml deleted file mode 100644 index 10b08cae0..000000000 --- a/hasura/migrations/1579828512176_alter_table_public_jobs_add_column_est_number/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "est_number"; - type: run_sql diff --git a/hasura/migrations/1579828512176_alter_table_public_jobs_add_column_est_number/up.yaml b/hasura/migrations/1579828512176_alter_table_public_jobs_add_column_est_number/up.yaml deleted file mode 100644 index 1c6632831..000000000 --- a/hasura/migrations/1579828512176_alter_table_public_jobs_add_column_est_number/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "est_number" bigserial NOT NULL; - type: run_sql diff --git a/hasura/migrations/1579828599348_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579828599348_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 802868c66..000000000 --- a/hasura/migrations/1579828599348_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,211 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579828599348_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579828599348_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index cdb202414..000000000 --- a/hasura/migrations/1579828599348_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,212 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1579828619557_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579828619557_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 0a96c063d..000000000 --- a/hasura/migrations/1579828619557_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,209 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579828619557_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579828619557_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 915f8c6b9..000000000 --- a/hasura/migrations/1579828619557_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,210 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1579828627607_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1579828627607_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index a3b61010f..000000000 --- a/hasura/migrations/1579828627607_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,211 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1579828627607_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1579828627607_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index a1c550dec..000000000 --- a/hasura/migrations/1579828627607_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,212 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580169338033_alter_table_public_jobs_add_column_service_Car/down.yaml b/hasura/migrations/1580169338033_alter_table_public_jobs_add_column_service_Car/down.yaml deleted file mode 100644 index 0af0647d9..000000000 --- a/hasura/migrations/1580169338033_alter_table_public_jobs_add_column_service_Car/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "service_Car"; - type: run_sql diff --git a/hasura/migrations/1580169338033_alter_table_public_jobs_add_column_service_Car/up.yaml b/hasura/migrations/1580169338033_alter_table_public_jobs_add_column_service_Car/up.yaml deleted file mode 100644 index c0dcd1261..000000000 --- a/hasura/migrations/1580169338033_alter_table_public_jobs_add_column_service_Car/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "service_Car" text NULL; - type: run_sql diff --git a/hasura/migrations/1580169357455_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580169357455_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index cdb202414..000000000 --- a/hasura/migrations/1580169357455_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,212 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - claim_total - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - shopid - - state_tax_rate - - statusid - - theft_ind - - tlos_ind - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580169357455_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580169357455_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 8a6eca121..000000000 --- a/hasura/migrations/1580169357455_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,213 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_Car - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580169365397_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580169365397_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 915f8c6b9..000000000 --- a/hasura/migrations/1580169365397_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,210 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580169365397_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580169365397_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 5f1089b37..000000000 --- a/hasura/migrations/1580169365397_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,211 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - service_Car - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580169373151_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580169373151_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index a1c550dec..000000000 --- a/hasura/migrations/1580169373151_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,212 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580169373151_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580169373151_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4f2b760c0..000000000 --- a/hasura/migrations/1580169373151_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,213 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - service_Car - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580169467694_alter_table_public_jobs_alter_column_service_Car/down.yaml b/hasura/migrations/1580169467694_alter_table_public_jobs_alter_column_service_Car/down.yaml deleted file mode 100644 index f39fc6f03..000000000 --- a/hasura/migrations/1580169467694_alter_table_public_jobs_alter_column_service_Car/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."service_Car" IS E'null' - type: run_sql -- args: - sql: alter table "public"."jobs" rename column "service_car" to "service_Car"; - type: run_sql diff --git a/hasura/migrations/1580169467694_alter_table_public_jobs_alter_column_service_Car/up.yaml b/hasura/migrations/1580169467694_alter_table_public_jobs_alter_column_service_Car/up.yaml deleted file mode 100644 index 3321b91b3..000000000 --- a/hasura/migrations/1580169467694_alter_table_public_jobs_alter_column_service_Car/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."service_Car" IS E'' - type: run_sql -- args: - sql: alter table "public"."jobs" rename column "service_Car" to "service_car"; - type: run_sql diff --git a/hasura/migrations/1580169565651_alter_table_public_jobs_add_column_special_coverage_policy/down.yaml b/hasura/migrations/1580169565651_alter_table_public_jobs_add_column_special_coverage_policy/down.yaml deleted file mode 100644 index d0660650b..000000000 --- a/hasura/migrations/1580169565651_alter_table_public_jobs_add_column_special_coverage_policy/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "special_coverage_policy"; - type: run_sql diff --git a/hasura/migrations/1580169565651_alter_table_public_jobs_add_column_special_coverage_policy/up.yaml b/hasura/migrations/1580169565651_alter_table_public_jobs_add_column_special_coverage_policy/up.yaml deleted file mode 100644 index 353cc12bd..000000000 --- a/hasura/migrations/1580169565651_alter_table_public_jobs_add_column_special_coverage_policy/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "special_coverage_policy" boolean - NOT NULL DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1580169609143_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580169609143_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 3717c3ed4..000000000 --- a/hasura/migrations/1580169609143_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,213 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580169609143_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580169609143_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 0e582a2c4..000000000 --- a/hasura/migrations/1580169609143_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,214 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580169617954_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580169617954_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index c4be28150..000000000 --- a/hasura/migrations/1580169617954_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,211 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580169617954_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580169617954_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index cb7febe8c..000000000 --- a/hasura/migrations/1580169617954_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,212 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580169626079_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580169626079_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index c66a2d708..000000000 --- a/hasura/migrations/1580169626079_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,213 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580169626079_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580169626079_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 0d44decf8..000000000 --- a/hasura/migrations/1580169626079_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,214 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580178912137_alter_table_public_jobs_add_column_csr/down.yaml b/hasura/migrations/1580178912137_alter_table_public_jobs_add_column_csr/down.yaml deleted file mode 100644 index efd7a982c..000000000 --- a/hasura/migrations/1580178912137_alter_table_public_jobs_add_column_csr/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "csr"; - type: run_sql diff --git a/hasura/migrations/1580178912137_alter_table_public_jobs_add_column_csr/up.yaml b/hasura/migrations/1580178912137_alter_table_public_jobs_add_column_csr/up.yaml deleted file mode 100644 index d8eefe86d..000000000 --- a/hasura/migrations/1580178912137_alter_table_public_jobs_add_column_csr/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "csr" text NULL; - type: run_sql diff --git a/hasura/migrations/1580178922902_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580178922902_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 0e582a2c4..000000000 --- a/hasura/migrations/1580178922902_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,214 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580178922902_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580178922902_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 1ff55fa60..000000000 --- a/hasura/migrations/1580178922902_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,215 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580178929598_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580178929598_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index cb7febe8c..000000000 --- a/hasura/migrations/1580178929598_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,212 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580178929598_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580178929598_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index bc0477014..000000000 --- a/hasura/migrations/1580178929598_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,213 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580178936376_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580178936376_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 0d44decf8..000000000 --- a/hasura/migrations/1580178936376_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,214 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580178936376_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580178936376_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 7fcb41bc9..000000000 --- a/hasura/migrations/1580178936376_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,215 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580179243363_alter_table_public_jobs_add_column_po_number/down.yaml b/hasura/migrations/1580179243363_alter_table_public_jobs_add_column_po_number/down.yaml deleted file mode 100644 index 0c6ca24e1..000000000 --- a/hasura/migrations/1580179243363_alter_table_public_jobs_add_column_po_number/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "po_number"; - type: run_sql diff --git a/hasura/migrations/1580179243363_alter_table_public_jobs_add_column_po_number/up.yaml b/hasura/migrations/1580179243363_alter_table_public_jobs_add_column_po_number/up.yaml deleted file mode 100644 index 643346cf0..000000000 --- a/hasura/migrations/1580179243363_alter_table_public_jobs_add_column_po_number/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "po_number" text NULL; - type: run_sql diff --git a/hasura/migrations/1580179295432_alter_table_public_jobs_add_column_unit_number/down.yaml b/hasura/migrations/1580179295432_alter_table_public_jobs_add_column_unit_number/down.yaml deleted file mode 100644 index c35bebd38..000000000 --- a/hasura/migrations/1580179295432_alter_table_public_jobs_add_column_unit_number/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "unit_number"; - type: run_sql diff --git a/hasura/migrations/1580179295432_alter_table_public_jobs_add_column_unit_number/up.yaml b/hasura/migrations/1580179295432_alter_table_public_jobs_add_column_unit_number/up.yaml deleted file mode 100644 index 2fc5342f5..000000000 --- a/hasura/migrations/1580179295432_alter_table_public_jobs_add_column_unit_number/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "unit_number" text NULL; - type: run_sql diff --git a/hasura/migrations/1580179755901_alter_table_public_jobs_add_column_kmin/down.yaml b/hasura/migrations/1580179755901_alter_table_public_jobs_add_column_kmin/down.yaml deleted file mode 100644 index 52ee10aca..000000000 --- a/hasura/migrations/1580179755901_alter_table_public_jobs_add_column_kmin/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "kmin"; - type: run_sql diff --git a/hasura/migrations/1580179755901_alter_table_public_jobs_add_column_kmin/up.yaml b/hasura/migrations/1580179755901_alter_table_public_jobs_add_column_kmin/up.yaml deleted file mode 100644 index 49ade77bd..000000000 --- a/hasura/migrations/1580179755901_alter_table_public_jobs_add_column_kmin/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "kmin" integer NULL; - type: run_sql diff --git a/hasura/migrations/1580179762327_alter_table_public_jobs_add_column_kmout/down.yaml b/hasura/migrations/1580179762327_alter_table_public_jobs_add_column_kmout/down.yaml deleted file mode 100644 index e714fadde..000000000 --- a/hasura/migrations/1580179762327_alter_table_public_jobs_add_column_kmout/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "kmout"; - type: run_sql diff --git a/hasura/migrations/1580179762327_alter_table_public_jobs_add_column_kmout/up.yaml b/hasura/migrations/1580179762327_alter_table_public_jobs_add_column_kmout/up.yaml deleted file mode 100644 index 8c918d708..000000000 --- a/hasura/migrations/1580179762327_alter_table_public_jobs_add_column_kmout/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "kmout" integer NULL; - type: run_sql diff --git a/hasura/migrations/1580180067779_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580180067779_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 1ff55fa60..000000000 --- a/hasura/migrations/1580180067779_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,215 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580180067779_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580180067779_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index becab0766..000000000 --- a/hasura/migrations/1580180067779_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,219 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580180073360_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580180073360_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index bc0477014..000000000 --- a/hasura/migrations/1580180073360_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,213 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580180073360_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580180073360_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index f3d9dc321..000000000 --- a/hasura/migrations/1580180073360_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,217 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580180078983_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580180078983_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 7fcb41bc9..000000000 --- a/hasura/migrations/1580180078983_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,215 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580180078983_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580180078983_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 6c1f26970..000000000 --- a/hasura/migrations/1580180078983_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,219 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580180567863_alter_table_public_jobs_add_column_referral_source/down.yaml b/hasura/migrations/1580180567863_alter_table_public_jobs_add_column_referral_source/down.yaml deleted file mode 100644 index 73865b998..000000000 --- a/hasura/migrations/1580180567863_alter_table_public_jobs_add_column_referral_source/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "referral_source"; - type: run_sql diff --git a/hasura/migrations/1580180567863_alter_table_public_jobs_add_column_referral_source/up.yaml b/hasura/migrations/1580180567863_alter_table_public_jobs_add_column_referral_source/up.yaml deleted file mode 100644 index bec69d42c..000000000 --- a/hasura/migrations/1580180567863_alter_table_public_jobs_add_column_referral_source/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "referral_source" text NULL; - type: run_sql diff --git a/hasura/migrations/1580180688551_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580180688551_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index becab0766..000000000 --- a/hasura/migrations/1580180688551_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,219 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580180688551_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580180688551_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index fa7689fd2..000000000 --- a/hasura/migrations/1580180688551_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,220 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580180694341_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580180694341_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index f3d9dc321..000000000 --- a/hasura/migrations/1580180694341_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,217 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580180694341_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580180694341_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 811f64cb5..000000000 --- a/hasura/migrations/1580180694341_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,218 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580180700206_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580180700206_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 6c1f26970..000000000 --- a/hasura/migrations/1580180700206_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,219 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580180700206_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580180700206_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index c7b5cd28e..000000000 --- a/hasura/migrations/1580180700206_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,220 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580232207896_alter_table_public_jobs_add_column_selling_dealer/down.yaml b/hasura/migrations/1580232207896_alter_table_public_jobs_add_column_selling_dealer/down.yaml deleted file mode 100644 index 278a53d1c..000000000 --- a/hasura/migrations/1580232207896_alter_table_public_jobs_add_column_selling_dealer/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "selling_dealer"; - type: run_sql diff --git a/hasura/migrations/1580232207896_alter_table_public_jobs_add_column_selling_dealer/up.yaml b/hasura/migrations/1580232207896_alter_table_public_jobs_add_column_selling_dealer/up.yaml deleted file mode 100644 index 98ed69d5f..000000000 --- a/hasura/migrations/1580232207896_alter_table_public_jobs_add_column_selling_dealer/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "selling_dealer" text NULL; - type: run_sql diff --git a/hasura/migrations/1580232216402_alter_table_public_jobs_add_column_servicing_dealer/down.yaml b/hasura/migrations/1580232216402_alter_table_public_jobs_add_column_servicing_dealer/down.yaml deleted file mode 100644 index 36fa5464f..000000000 --- a/hasura/migrations/1580232216402_alter_table_public_jobs_add_column_servicing_dealer/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "servicing_dealer"; - type: run_sql diff --git a/hasura/migrations/1580232216402_alter_table_public_jobs_add_column_servicing_dealer/up.yaml b/hasura/migrations/1580232216402_alter_table_public_jobs_add_column_servicing_dealer/up.yaml deleted file mode 100644 index 971e58394..000000000 --- a/hasura/migrations/1580232216402_alter_table_public_jobs_add_column_servicing_dealer/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "servicing_dealer" text NULL; - type: run_sql diff --git a/hasura/migrations/1580232321960_alter_table_public_jobs_add_column_servicing_dealer_contact/down.yaml b/hasura/migrations/1580232321960_alter_table_public_jobs_add_column_servicing_dealer_contact/down.yaml deleted file mode 100644 index 8a2700bfc..000000000 --- a/hasura/migrations/1580232321960_alter_table_public_jobs_add_column_servicing_dealer_contact/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "servicing_dealer_contact"; - type: run_sql diff --git a/hasura/migrations/1580232321960_alter_table_public_jobs_add_column_servicing_dealer_contact/up.yaml b/hasura/migrations/1580232321960_alter_table_public_jobs_add_column_servicing_dealer_contact/up.yaml deleted file mode 100644 index 11ed7a1d9..000000000 --- a/hasura/migrations/1580232321960_alter_table_public_jobs_add_column_servicing_dealer_contact/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "servicing_dealer_contact" text NULL; - type: run_sql diff --git a/hasura/migrations/1580232395019_alter_table_public_jobs_add_column_selling_dealer_contact/down.yaml b/hasura/migrations/1580232395019_alter_table_public_jobs_add_column_selling_dealer_contact/down.yaml deleted file mode 100644 index deb82f742..000000000 --- a/hasura/migrations/1580232395019_alter_table_public_jobs_add_column_selling_dealer_contact/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "selling_dealer_contact"; - type: run_sql diff --git a/hasura/migrations/1580232395019_alter_table_public_jobs_add_column_selling_dealer_contact/up.yaml b/hasura/migrations/1580232395019_alter_table_public_jobs_add_column_selling_dealer_contact/up.yaml deleted file mode 100644 index 89af1db20..000000000 --- a/hasura/migrations/1580232395019_alter_table_public_jobs_add_column_selling_dealer_contact/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "selling_dealer_contact" text NULL; - type: run_sql diff --git a/hasura/migrations/1580232453942_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580232453942_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index fa7689fd2..000000000 --- a/hasura/migrations/1580232453942_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,220 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580232453942_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580232453942_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4d3bff160..000000000 --- a/hasura/migrations/1580232453942_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,224 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580232464001_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580232464001_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 811f64cb5..000000000 --- a/hasura/migrations/1580232464001_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,218 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580232464001_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580232464001_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 19316d585..000000000 --- a/hasura/migrations/1580232464001_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,222 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580232469614_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580232469614_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index c7b5cd28e..000000000 --- a/hasura/migrations/1580232469614_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,220 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - service_car - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580232469614_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580232469614_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 6b61f73a7..000000000 --- a/hasura/migrations/1580232469614_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,224 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580234610526_alter_table_public_jobs_add_column_depreciation_taxes/down.yaml b/hasura/migrations/1580234610526_alter_table_public_jobs_add_column_depreciation_taxes/down.yaml deleted file mode 100644 index 08fb99f41..000000000 --- a/hasura/migrations/1580234610526_alter_table_public_jobs_add_column_depreciation_taxes/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "depreciation_taxes"; - type: run_sql diff --git a/hasura/migrations/1580234610526_alter_table_public_jobs_add_column_depreciation_taxes/up.yaml b/hasura/migrations/1580234610526_alter_table_public_jobs_add_column_depreciation_taxes/up.yaml deleted file mode 100644 index e0634fb56..000000000 --- a/hasura/migrations/1580234610526_alter_table_public_jobs_add_column_depreciation_taxes/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "depreciation_taxes" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580234707152_alter_table_public_jobs_add_column_federal_tax_payable/down.yaml b/hasura/migrations/1580234707152_alter_table_public_jobs_add_column_federal_tax_payable/down.yaml deleted file mode 100644 index b08e631f0..000000000 --- a/hasura/migrations/1580234707152_alter_table_public_jobs_add_column_federal_tax_payable/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "federal_tax_payable"; - type: run_sql diff --git a/hasura/migrations/1580234707152_alter_table_public_jobs_add_column_federal_tax_payable/up.yaml b/hasura/migrations/1580234707152_alter_table_public_jobs_add_column_federal_tax_payable/up.yaml deleted file mode 100644 index 4bf0b1169..000000000 --- a/hasura/migrations/1580234707152_alter_table_public_jobs_add_column_federal_tax_payable/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "federal_tax_payable" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580234855137_alter_table_public_jobs_add_column_other_amount_payable/down.yaml b/hasura/migrations/1580234855137_alter_table_public_jobs_add_column_other_amount_payable/down.yaml deleted file mode 100644 index bd93bd65b..000000000 --- a/hasura/migrations/1580234855137_alter_table_public_jobs_add_column_other_amount_payable/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "other_amount_payable"; - type: run_sql diff --git a/hasura/migrations/1580234855137_alter_table_public_jobs_add_column_other_amount_payable/up.yaml b/hasura/migrations/1580234855137_alter_table_public_jobs_add_column_other_amount_payable/up.yaml deleted file mode 100644 index 79fbefe5e..000000000 --- a/hasura/migrations/1580234855137_alter_table_public_jobs_add_column_other_amount_payable/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "other_amount_payable" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580234979673_alter_table_public_jobs_add_column_towing_payable/down.yaml b/hasura/migrations/1580234979673_alter_table_public_jobs_add_column_towing_payable/down.yaml deleted file mode 100644 index 40dbf56ef..000000000 --- a/hasura/migrations/1580234979673_alter_table_public_jobs_add_column_towing_payable/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "towing_payable"; - type: run_sql diff --git a/hasura/migrations/1580234979673_alter_table_public_jobs_add_column_towing_payable/up.yaml b/hasura/migrations/1580234979673_alter_table_public_jobs_add_column_towing_payable/up.yaml deleted file mode 100644 index 24ad092ee..000000000 --- a/hasura/migrations/1580234979673_alter_table_public_jobs_add_column_towing_payable/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "towing_payable" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580235041688_alter_table_public_jobs_add_column_storage_payable/down.yaml b/hasura/migrations/1580235041688_alter_table_public_jobs_add_column_storage_payable/down.yaml deleted file mode 100644 index 24442e42a..000000000 --- a/hasura/migrations/1580235041688_alter_table_public_jobs_add_column_storage_payable/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "storage_payable"; - type: run_sql diff --git a/hasura/migrations/1580235041688_alter_table_public_jobs_add_column_storage_payable/up.yaml b/hasura/migrations/1580235041688_alter_table_public_jobs_add_column_storage_payable/up.yaml deleted file mode 100644 index 83ba72114..000000000 --- a/hasura/migrations/1580235041688_alter_table_public_jobs_add_column_storage_payable/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "storage_payable" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580235377213_alter_table_public_jobs_add_column_adjustment_bottom_line/down.yaml b/hasura/migrations/1580235377213_alter_table_public_jobs_add_column_adjustment_bottom_line/down.yaml deleted file mode 100644 index 49bcbac38..000000000 --- a/hasura/migrations/1580235377213_alter_table_public_jobs_add_column_adjustment_bottom_line/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "adjustment_bottom_line"; - type: run_sql diff --git a/hasura/migrations/1580235377213_alter_table_public_jobs_add_column_adjustment_bottom_line/up.yaml b/hasura/migrations/1580235377213_alter_table_public_jobs_add_column_adjustment_bottom_line/up.yaml deleted file mode 100644 index 47c4a7336..000000000 --- a/hasura/migrations/1580235377213_alter_table_public_jobs_add_column_adjustment_bottom_line/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "adjustment_bottom_line" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580235459628_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580235459628_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4d3bff160..000000000 --- a/hasura/migrations/1580235459628_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,224 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580235459628_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580235459628_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index a0210b669..000000000 --- a/hasura/migrations/1580235459628_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,230 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580235465660_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580235465660_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 19316d585..000000000 --- a/hasura/migrations/1580235465660_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,222 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580235465660_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580235465660_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index e18ccedb9..000000000 --- a/hasura/migrations/1580235465660_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,228 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580235470911_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580235470911_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 6b61f73a7..000000000 --- a/hasura/migrations/1580235470911_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,224 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - claim_total - - clm_total - - ded_amt - - deductible - - federal_tax_rate - - local_tax_rate - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580235470911_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580235470911_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 56280c418..000000000 --- a/hasura/migrations/1580235470911_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,230 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580237327073_create_table_public_available_jobs/down.yaml b/hasura/migrations/1580237327073_create_table_public_available_jobs/down.yaml deleted file mode 100644 index 06b5056e9..000000000 --- a/hasura/migrations/1580237327073_create_table_public_available_jobs/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."available_jobs" - type: run_sql diff --git a/hasura/migrations/1580237327073_create_table_public_available_jobs/up.yaml b/hasura/migrations/1580237327073_create_table_public_available_jobs/up.yaml deleted file mode 100644 index d75401021..000000000 --- a/hasura/migrations/1580237327073_create_table_public_available_jobs/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"available_jobs\"(\"id\" uuid NOT NULL DEFAULT - gen_random_uuid(), \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" - timestamptz NOT NULL DEFAULT now(), \"uploaded_by\" text NOT NULL, \"cieca_id\" - text NOT NULL, \"bodyshopid\" uuid NOT NULL, \"est_data\" jsonb NOT NULL, \"issupplement\" - boolean NOT NULL DEFAULT false, \"jobid\" uuid, \"supplement_number\" integer, - \"ownr_name\" text, \"vehicle_info\" text, \"clm_amt\" numeric, \"clm_no\" text, - \"source_system\" text, PRIMARY KEY (\"id\") , FOREIGN KEY (\"bodyshopid\") - REFERENCES \"public\".\"bodyshops\"(\"id\") ON UPDATE cascade ON DELETE cascade, - FOREIGN KEY (\"jobid\") REFERENCES \"public\".\"jobs\"(\"id\") ON UPDATE restrict - ON DELETE cascade);\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_available_jobs_updated_at\"\nBEFORE - UPDATE ON \"public\".\"available_jobs\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_available_jobs_updated_at\" ON \"public\".\"available_jobs\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';\n" - type: run_sql -- args: - name: available_jobs - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1580237346108_track_all_relationships/down.yaml b/hasura/migrations/1580237346108_track_all_relationships/down.yaml deleted file mode 100644 index d0e83782e..000000000 --- a/hasura/migrations/1580237346108_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: bodyshop - table: - name: available_jobs - schema: public - type: drop_relationship -- args: - relationship: job - table: - name: available_jobs - schema: public - type: drop_relationship -- args: - relationship: available_jobs - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: available_jobs - table: - name: jobs - schema: public - type: drop_relationship diff --git a/hasura/migrations/1580237346108_track_all_relationships/up.yaml b/hasura/migrations/1580237346108_track_all_relationships/up.yaml deleted file mode 100644 index 5f0bb6804..000000000 --- a/hasura/migrations/1580237346108_track_all_relationships/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - name: bodyshop - table: - name: available_jobs - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship -- args: - name: job - table: - name: available_jobs - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship -- args: - name: available_jobs - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: available_jobs - schema: public - type: create_array_relationship -- args: - name: available_jobs - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: available_jobs - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1580237387921_update_permission_user_public_table_available_jobs/down.yaml b/hasura/migrations/1580237387921_update_permission_user_public_table_available_jobs/down.yaml deleted file mode 100644 index 5cdb25469..000000000 --- a/hasura/migrations/1580237387921_update_permission_user_public_table_available_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1580237387921_update_permission_user_public_table_available_jobs/up.yaml b/hasura/migrations/1580237387921_update_permission_user_public_table_available_jobs/up.yaml deleted file mode 100644 index 6d55f1a31..000000000 --- a/hasura/migrations/1580237387921_update_permission_user_public_table_available_jobs/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - uploaded_by - - cieca_id - - bodyshopid - - est_data - - issupplement - - jobid - - supplement_number - - ownr_name - - vehicle_info - - clm_amt - - clm_no - - source_system - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: available_jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580237392798_update_permission_user_public_table_available_jobs/down.yaml b/hasura/migrations/1580237392798_update_permission_user_public_table_available_jobs/down.yaml deleted file mode 100644 index 3a94b077d..000000000 --- a/hasura/migrations/1580237392798_update_permission_user_public_table_available_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1580237392798_update_permission_user_public_table_available_jobs/up.yaml b/hasura/migrations/1580237392798_update_permission_user_public_table_available_jobs/up.yaml deleted file mode 100644 index d3b07cbf7..000000000 --- a/hasura/migrations/1580237392798_update_permission_user_public_table_available_jobs/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - issupplement - - supplement_number - - est_data - - clm_amt - - cieca_id - - clm_no - - ownr_name - - source_system - - uploaded_by - - vehicle_info - - created_at - - updated_at - - bodyshopid - - id - - jobid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: available_jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580237398522_update_permission_user_public_table_available_jobs/down.yaml b/hasura/migrations/1580237398522_update_permission_user_public_table_available_jobs/down.yaml deleted file mode 100644 index d0f2b05b4..000000000 --- a/hasura/migrations/1580237398522_update_permission_user_public_table_available_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1580237398522_update_permission_user_public_table_available_jobs/up.yaml b/hasura/migrations/1580237398522_update_permission_user_public_table_available_jobs/up.yaml deleted file mode 100644 index cf6c14ee3..000000000 --- a/hasura/migrations/1580237398522_update_permission_user_public_table_available_jobs/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - permission: - columns: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: available_jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580237406816_update_permission_user_public_table_available_jobs/down.yaml b/hasura/migrations/1580237406816_update_permission_user_public_table_available_jobs/down.yaml deleted file mode 100644 index 610466236..000000000 --- a/hasura/migrations/1580237406816_update_permission_user_public_table_available_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1580237406816_update_permission_user_public_table_available_jobs/up.yaml b/hasura/migrations/1580237406816_update_permission_user_public_table_available_jobs/up.yaml deleted file mode 100644 index 76e638642..000000000 --- a/hasura/migrations/1580237406816_update_permission_user_public_table_available_jobs/up.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: available_jobs - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1580319118370_alter_table_public_owners_alter_column_first_name/down.yaml b/hasura/migrations/1580319118370_alter_table_public_owners_alter_column_first_name/down.yaml deleted file mode 100644 index 87a64b81f..000000000 --- a/hasura/migrations/1580319118370_alter_table_public_owners_alter_column_first_name/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."first_name" IS E'null' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "ownr_fn" to "first_name"; - type: run_sql diff --git a/hasura/migrations/1580319118370_alter_table_public_owners_alter_column_first_name/up.yaml b/hasura/migrations/1580319118370_alter_table_public_owners_alter_column_first_name/up.yaml deleted file mode 100644 index c593c078b..000000000 --- a/hasura/migrations/1580319118370_alter_table_public_owners_alter_column_first_name/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."first_name" IS E'' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "first_name" to "ownr_fn"; - type: run_sql diff --git a/hasura/migrations/1580319128633_alter_table_public_owners_alter_column_last_name/down.yaml b/hasura/migrations/1580319128633_alter_table_public_owners_alter_column_last_name/down.yaml deleted file mode 100644 index 40b47b5cb..000000000 --- a/hasura/migrations/1580319128633_alter_table_public_owners_alter_column_last_name/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."last_name" IS E'null' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "ownr_ln" to "last_name"; - type: run_sql diff --git a/hasura/migrations/1580319128633_alter_table_public_owners_alter_column_last_name/up.yaml b/hasura/migrations/1580319128633_alter_table_public_owners_alter_column_last_name/up.yaml deleted file mode 100644 index c32e1b096..000000000 --- a/hasura/migrations/1580319128633_alter_table_public_owners_alter_column_last_name/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."last_name" IS E'' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "last_name" to "ownr_ln"; - type: run_sql diff --git a/hasura/migrations/1580319140706_alter_table_public_owners_alter_column_address1/down.yaml b/hasura/migrations/1580319140706_alter_table_public_owners_alter_column_address1/down.yaml deleted file mode 100644 index 91f18eab1..000000000 --- a/hasura/migrations/1580319140706_alter_table_public_owners_alter_column_address1/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."address1" IS E'null' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "ownr_addr1" to "address1"; - type: run_sql diff --git a/hasura/migrations/1580319140706_alter_table_public_owners_alter_column_address1/up.yaml b/hasura/migrations/1580319140706_alter_table_public_owners_alter_column_address1/up.yaml deleted file mode 100644 index 0224619e8..000000000 --- a/hasura/migrations/1580319140706_alter_table_public_owners_alter_column_address1/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."address1" IS E'' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "address1" to "ownr_addr1"; - type: run_sql diff --git a/hasura/migrations/1580319150628_alter_table_public_owners_alter_column_address2/down.yaml b/hasura/migrations/1580319150628_alter_table_public_owners_alter_column_address2/down.yaml deleted file mode 100644 index a25f8b213..000000000 --- a/hasura/migrations/1580319150628_alter_table_public_owners_alter_column_address2/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."address2" IS E'null' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "ownr_addr2" to "address2"; - type: run_sql diff --git a/hasura/migrations/1580319150628_alter_table_public_owners_alter_column_address2/up.yaml b/hasura/migrations/1580319150628_alter_table_public_owners_alter_column_address2/up.yaml deleted file mode 100644 index fc5367abd..000000000 --- a/hasura/migrations/1580319150628_alter_table_public_owners_alter_column_address2/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."address2" IS E'' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "address2" to "ownr_addr2"; - type: run_sql diff --git a/hasura/migrations/1580319161723_alter_table_public_owners_alter_column_city/down.yaml b/hasura/migrations/1580319161723_alter_table_public_owners_alter_column_city/down.yaml deleted file mode 100644 index 410b346dd..000000000 --- a/hasura/migrations/1580319161723_alter_table_public_owners_alter_column_city/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."city" IS E'null' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "ownr_city" to "city"; - type: run_sql diff --git a/hasura/migrations/1580319161723_alter_table_public_owners_alter_column_city/up.yaml b/hasura/migrations/1580319161723_alter_table_public_owners_alter_column_city/up.yaml deleted file mode 100644 index 81bf2fdcf..000000000 --- a/hasura/migrations/1580319161723_alter_table_public_owners_alter_column_city/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."city" IS E'' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "city" to "ownr_city"; - type: run_sql diff --git a/hasura/migrations/1580319174013_alter_table_public_owners_alter_column_state/down.yaml b/hasura/migrations/1580319174013_alter_table_public_owners_alter_column_state/down.yaml deleted file mode 100644 index 5c2d9fe32..000000000 --- a/hasura/migrations/1580319174013_alter_table_public_owners_alter_column_state/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."state" IS E'null' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "ownr_st" to "state"; - type: run_sql diff --git a/hasura/migrations/1580319174013_alter_table_public_owners_alter_column_state/up.yaml b/hasura/migrations/1580319174013_alter_table_public_owners_alter_column_state/up.yaml deleted file mode 100644 index c3499e5e1..000000000 --- a/hasura/migrations/1580319174013_alter_table_public_owners_alter_column_state/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."state" IS E'' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "state" to "ownr_st"; - type: run_sql diff --git a/hasura/migrations/1580319185312_alter_table_public_owners_alter_column_zip/down.yaml b/hasura/migrations/1580319185312_alter_table_public_owners_alter_column_zip/down.yaml deleted file mode 100644 index 55aeb38f1..000000000 --- a/hasura/migrations/1580319185312_alter_table_public_owners_alter_column_zip/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."zip" IS E'null' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "ownr_zip" to "zip"; - type: run_sql diff --git a/hasura/migrations/1580319185312_alter_table_public_owners_alter_column_zip/up.yaml b/hasura/migrations/1580319185312_alter_table_public_owners_alter_column_zip/up.yaml deleted file mode 100644 index c2f32b926..000000000 --- a/hasura/migrations/1580319185312_alter_table_public_owners_alter_column_zip/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."zip" IS E'' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "zip" to "ownr_zip"; - type: run_sql diff --git a/hasura/migrations/1580319194956_alter_table_public_owners_alter_column_country/down.yaml b/hasura/migrations/1580319194956_alter_table_public_owners_alter_column_country/down.yaml deleted file mode 100644 index a36da5733..000000000 --- a/hasura/migrations/1580319194956_alter_table_public_owners_alter_column_country/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."country" IS E'null' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "ownr_ctry" to "country"; - type: run_sql diff --git a/hasura/migrations/1580319194956_alter_table_public_owners_alter_column_country/up.yaml b/hasura/migrations/1580319194956_alter_table_public_owners_alter_column_country/up.yaml deleted file mode 100644 index 17ba0867f..000000000 --- a/hasura/migrations/1580319194956_alter_table_public_owners_alter_column_country/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."country" IS E'' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "country" to "ownr_ctry"; - type: run_sql diff --git a/hasura/migrations/1580319215835_alter_table_public_owners_alter_column_email/down.yaml b/hasura/migrations/1580319215835_alter_table_public_owners_alter_column_email/down.yaml deleted file mode 100644 index dc998c0d2..000000000 --- a/hasura/migrations/1580319215835_alter_table_public_owners_alter_column_email/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."email" IS E'null' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "ownr_ea" to "email"; - type: run_sql diff --git a/hasura/migrations/1580319215835_alter_table_public_owners_alter_column_email/up.yaml b/hasura/migrations/1580319215835_alter_table_public_owners_alter_column_email/up.yaml deleted file mode 100644 index 045b0b101..000000000 --- a/hasura/migrations/1580319215835_alter_table_public_owners_alter_column_email/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."email" IS E'' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "email" to "ownr_ea"; - type: run_sql diff --git a/hasura/migrations/1580319231505_alter_table_public_owners_alter_column_phone/down.yaml b/hasura/migrations/1580319231505_alter_table_public_owners_alter_column_phone/down.yaml deleted file mode 100644 index 4e4b328cc..000000000 --- a/hasura/migrations/1580319231505_alter_table_public_owners_alter_column_phone/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."phone" IS E'null' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "ownr_ph1" to "phone"; - type: run_sql diff --git a/hasura/migrations/1580319231505_alter_table_public_owners_alter_column_phone/up.yaml b/hasura/migrations/1580319231505_alter_table_public_owners_alter_column_phone/up.yaml deleted file mode 100644 index 28ad46d6e..000000000 --- a/hasura/migrations/1580319231505_alter_table_public_owners_alter_column_phone/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."owners"."phone" IS E'' - type: run_sql -- args: - sql: alter table "public"."owners" rename column "phone" to "ownr_ph1"; - type: run_sql diff --git a/hasura/migrations/1580319283586_alter_table_public_owners_add_column_ownr_ph2/down.yaml b/hasura/migrations/1580319283586_alter_table_public_owners_add_column_ownr_ph2/down.yaml deleted file mode 100644 index 323204856..000000000 --- a/hasura/migrations/1580319283586_alter_table_public_owners_add_column_ownr_ph2/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."owners" DROP COLUMN "ownr_ph2"; - type: run_sql diff --git a/hasura/migrations/1580319283586_alter_table_public_owners_add_column_ownr_ph2/up.yaml b/hasura/migrations/1580319283586_alter_table_public_owners_add_column_ownr_ph2/up.yaml deleted file mode 100644 index 41e34c325..000000000 --- a/hasura/migrations/1580319283586_alter_table_public_owners_add_column_ownr_ph2/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."owners" ADD COLUMN "ownr_ph2" text NULL; - type: run_sql diff --git a/hasura/migrations/1580319295873_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1580319295873_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index f2f87a705..000000000 --- a/hasura/migrations/1580319295873_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - preferred_contact - - ownr_st - - ownr_zip - - created_at - - updated_at - - id - - shopid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580319295873_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1580319295873_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 699ba86d6..000000000 --- a/hasura/migrations/1580319295873_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - ownr_fn - - ownr_ln - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ea - - ownr_ph1 - - preferred_contact - - allow_text_message - - shopid - - ownr_ph2 - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580319301454_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1580319301454_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index e37bbfa01..000000000 --- a/hasura/migrations/1580319301454_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - created_at - - updated_at - - ownr_fn - - ownr_ln - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ea - - ownr_ph1 - - preferred_contact - - allow_text_message - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580319301454_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1580319301454_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 979378d18..000000000 --- a/hasura/migrations/1580319301454_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580319306963_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1580319306963_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index d61f0c925..000000000 --- a/hasura/migrations/1580319306963_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission -- args: - permission: - columns: - - ownr_addr1 - - ownr_addr2 - - allow_text_message - - ownr_city - - ownr_ctry - - created_at - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - preferred_contact - - shopid - - ownr_st - - updated_at - - ownr_zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580319306963_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1580319306963_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 8aa9459b9..000000000 --- a/hasura/migrations/1580319306963_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission -- args: - permission: - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580321100336_owner_gin_idx/down.yaml b/hasura/migrations/1580321100336_owner_gin_idx/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1580321100336_owner_gin_idx/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1580321100336_owner_gin_idx/up.yaml b/hasura/migrations/1580321100336_owner_gin_idx/up.yaml deleted file mode 100644 index 63a8fc27c..000000000 --- a/hasura/migrations/1580321100336_owner_gin_idx/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: true - sql: "\r\nCREATE INDEX owner_gin_idx ON owners\r\nUSING GIN ((ownr_fn || ' ' - || ownr_ln || ' ' || ownr_addr1 || ' ' || ownr_city || ' ' || ownr_zip || - ' ' || ownr_ea || ' ' || ownr_ph1 || ' ' || ownr_ph2 ) gin_trgm_ops);\r\n" - type: run_sql diff --git a/hasura/migrations/1580321202242_owner_search_function/down.yaml b/hasura/migrations/1580321202242_owner_search_function/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1580321202242_owner_search_function/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1580321202242_owner_search_function/up.yaml b/hasura/migrations/1580321202242_owner_search_function/up.yaml deleted file mode 100644 index a3b38952d..000000000 --- a/hasura/migrations/1580321202242_owner_search_function/up.yaml +++ /dev/null @@ -1,14 +0,0 @@ -- args: - cascade: true - sql: "CREATE FUNCTION search_owners(search text)\r\nRETURNS SETOF owners AS $$\r\n - \ SELECT *\r\n FROM owners\r\n WHERE\r\n search <% (ownr_fn || - ' ' || ownr_ln || ' ' || ownr_addr1 || ' ' || ownr_city || ' ' || ownr_zip - \ || ' ' || ownr_ea || ' ' || ownr_ph1 || ' ' || ownr_ph2)\r\n ORDER BY\r\n - \ similarity(search, (ownr_fn || ' ' || ownr_ln || ' ' || ownr_addr1 || - ' ' || ownr_city || ' ' || ownr_zip || ' ' || ownr_ea || ' ' || ownr_ph1 || - ' ' || ownr_ph2)) DESC\r\n LIMIT 20;\r\n$$ LANGUAGE sql STABLE;" - type: run_sql -- args: - name: search_owners - schema: public - type: track_function diff --git a/hasura/migrations/1580322212941_alter_table_public_owners_add_column_ownr_co_nm/down.yaml b/hasura/migrations/1580322212941_alter_table_public_owners_add_column_ownr_co_nm/down.yaml deleted file mode 100644 index eaea08f41..000000000 --- a/hasura/migrations/1580322212941_alter_table_public_owners_add_column_ownr_co_nm/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."owners" DROP COLUMN "ownr_co_nm"; - type: run_sql diff --git a/hasura/migrations/1580322212941_alter_table_public_owners_add_column_ownr_co_nm/up.yaml b/hasura/migrations/1580322212941_alter_table_public_owners_add_column_ownr_co_nm/up.yaml deleted file mode 100644 index fea96b1a3..000000000 --- a/hasura/migrations/1580322212941_alter_table_public_owners_add_column_ownr_co_nm/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."owners" ADD COLUMN "ownr_co_nm" text NULL; - type: run_sql diff --git a/hasura/migrations/1580322221407_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1580322221407_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 699ba86d6..000000000 --- a/hasura/migrations/1580322221407_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - ownr_fn - - ownr_ln - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ea - - ownr_ph1 - - preferred_contact - - allow_text_message - - shopid - - ownr_ph2 - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580322221407_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1580322221407_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 55880362e..000000000 --- a/hasura/migrations/1580322221407_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - ownr_fn - - ownr_ln - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ea - - ownr_ph1 - - preferred_contact - - allow_text_message - - shopid - - ownr_ph2 - - ownr_co_nm - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580322225907_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1580322225907_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 979378d18..000000000 --- a/hasura/migrations/1580322225907_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580322225907_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1580322225907_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 1802dbbf4..000000000 --- a/hasura/migrations/1580322225907_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580322230561_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1580322230561_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 8aa9459b9..000000000 --- a/hasura/migrations/1580322230561_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission -- args: - permission: - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580322230561_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1580322230561_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 26c35bd8f..000000000 --- a/hasura/migrations/1580322230561_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission -- args: - permission: - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580332913585_alter_table_public_owners_add_column_ownr_title/down.yaml b/hasura/migrations/1580332913585_alter_table_public_owners_add_column_ownr_title/down.yaml deleted file mode 100644 index ca71eb499..000000000 --- a/hasura/migrations/1580332913585_alter_table_public_owners_add_column_ownr_title/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."owners" DROP COLUMN "ownr_title"; - type: run_sql diff --git a/hasura/migrations/1580332913585_alter_table_public_owners_add_column_ownr_title/up.yaml b/hasura/migrations/1580332913585_alter_table_public_owners_add_column_ownr_title/up.yaml deleted file mode 100644 index be8c2ce7b..000000000 --- a/hasura/migrations/1580332913585_alter_table_public_owners_add_column_ownr_title/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."owners" ADD COLUMN "ownr_title" text NULL; - type: run_sql diff --git a/hasura/migrations/1580332923811_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1580332923811_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 55880362e..000000000 --- a/hasura/migrations/1580332923811_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - ownr_fn - - ownr_ln - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ea - - ownr_ph1 - - preferred_contact - - allow_text_message - - shopid - - ownr_ph2 - - ownr_co_nm - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580332923811_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1580332923811_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 21addc58a..000000000 --- a/hasura/migrations/1580332923811_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - ownr_fn - - ownr_ln - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ea - - ownr_ph1 - - preferred_contact - - allow_text_message - - shopid - - ownr_ph2 - - ownr_co_nm - - ownr_title - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580332931020_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1580332931020_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 1802dbbf4..000000000 --- a/hasura/migrations/1580332931020_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580332931020_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1580332931020_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 85ab7c994..000000000 --- a/hasura/migrations/1580332931020_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580332936658_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1580332936658_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 26c35bd8f..000000000 --- a/hasura/migrations/1580332936658_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission -- args: - permission: - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580332936658_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1580332936658_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 9609517ec..000000000 --- a/hasura/migrations/1580332936658_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission -- args: - permission: - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580338993317_run_sql_migration/down.yaml b/hasura/migrations/1580338993317_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1580338993317_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1580338993317_run_sql_migration/up.yaml b/hasura/migrations/1580338993317_run_sql_migration/up.yaml deleted file mode 100644 index 50d9e6d4d..000000000 --- a/hasura/migrations/1580338993317_run_sql_migration/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: true - sql: "ALTER TABLE jobs ALTER COLUMN theft_ind DROP DEFAULT;\r\nALTER TABLE jobs - ALTER theft_ind TYPE bool USING CASE WHEN true THEN FALSE ELSE TRUE END;\r\nALTER - TABLE jobs ALTER COLUMN theft_ind SET DEFAULT FALSE;" - type: run_sql diff --git a/hasura/migrations/1580339054130_run_sql_migration/down.yaml b/hasura/migrations/1580339054130_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1580339054130_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1580339054130_run_sql_migration/up.yaml b/hasura/migrations/1580339054130_run_sql_migration/up.yaml deleted file mode 100644 index 377757ec8..000000000 --- a/hasura/migrations/1580339054130_run_sql_migration/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: true - sql: "ALTER TABLE jobs ALTER COLUMN tlos_ind DROP DEFAULT;\r\nALTER TABLE jobs - ALTER tlos_ind TYPE bool USING CASE WHEN true THEN FALSE ELSE TRUE END;\r\nALTER - TABLE jobs ALTER COLUMN tlos_ind SET DEFAULT FALSE;" - type: run_sql diff --git a/hasura/migrations/1580342466510_alter_table_public_jobs_add_column_parts_tax_rate/down.yaml b/hasura/migrations/1580342466510_alter_table_public_jobs_add_column_parts_tax_rate/down.yaml deleted file mode 100644 index d5601bc2c..000000000 --- a/hasura/migrations/1580342466510_alter_table_public_jobs_add_column_parts_tax_rate/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "parts_tax_rate"; - type: run_sql diff --git a/hasura/migrations/1580342466510_alter_table_public_jobs_add_column_parts_tax_rate/up.yaml b/hasura/migrations/1580342466510_alter_table_public_jobs_add_column_parts_tax_rate/up.yaml deleted file mode 100644 index 24910de15..000000000 --- a/hasura/migrations/1580342466510_alter_table_public_jobs_add_column_parts_tax_rate/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "parts_tax_rate" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580342506429_alter_table_public_jobs_alter_column_parts_tax_rate/down.yaml b/hasura/migrations/1580342506429_alter_table_public_jobs_alter_column_parts_tax_rate/down.yaml deleted file mode 100644 index 48652bba7..000000000 --- a/hasura/migrations/1580342506429_alter_table_public_jobs_alter_column_parts_tax_rate/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."parts_tax_rate" IS E'null' - type: run_sql -- args: - sql: alter table "public"."jobs" rename column "tax_pstthr" to "parts_tax_rate"; - type: run_sql diff --git a/hasura/migrations/1580342506429_alter_table_public_jobs_alter_column_parts_tax_rate/up.yaml b/hasura/migrations/1580342506429_alter_table_public_jobs_alter_column_parts_tax_rate/up.yaml deleted file mode 100644 index 3a0211519..000000000 --- a/hasura/migrations/1580342506429_alter_table_public_jobs_alter_column_parts_tax_rate/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."parts_tax_rate" IS E'' - type: run_sql -- args: - sql: alter table "public"."jobs" rename column "parts_tax_rate" to "tax_pstthr"; - type: run_sql diff --git a/hasura/migrations/1580342523444_alter_table_public_jobs_alter_column_tax_pstthr/down.yaml b/hasura/migrations/1580342523444_alter_table_public_jobs_alter_column_tax_pstthr/down.yaml deleted file mode 100644 index c27db234f..000000000 --- a/hasura/migrations/1580342523444_alter_table_public_jobs_alter_column_tax_pstthr/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_pstthr" IS E'null' - type: run_sql diff --git a/hasura/migrations/1580342523444_alter_table_public_jobs_alter_column_tax_pstthr/up.yaml b/hasura/migrations/1580342523444_alter_table_public_jobs_alter_column_tax_pstthr/up.yaml deleted file mode 100644 index 94dea43fb..000000000 --- a/hasura/migrations/1580342523444_alter_table_public_jobs_alter_column_tax_pstthr/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_pstthr" IS E'PST for Parts' - type: run_sql diff --git a/hasura/migrations/1580342644474_alter_table_public_jobs_add_column_tax_tow_rt/down.yaml b/hasura/migrations/1580342644474_alter_table_public_jobs_add_column_tax_tow_rt/down.yaml deleted file mode 100644 index 1fcc511d5..000000000 --- a/hasura/migrations/1580342644474_alter_table_public_jobs_add_column_tax_tow_rt/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "tax_tow_rt"; - type: run_sql diff --git a/hasura/migrations/1580342644474_alter_table_public_jobs_add_column_tax_tow_rt/up.yaml b/hasura/migrations/1580342644474_alter_table_public_jobs_add_column_tax_tow_rt/up.yaml deleted file mode 100644 index 865d7bbfb..000000000 --- a/hasura/migrations/1580342644474_alter_table_public_jobs_add_column_tax_tow_rt/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "tax_tow_rt" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580342652067_alter_table_public_jobs_alter_column_tax_tow_rt/down.yaml b/hasura/migrations/1580342652067_alter_table_public_jobs_alter_column_tax_tow_rt/down.yaml deleted file mode 100644 index c748246fa..000000000 --- a/hasura/migrations/1580342652067_alter_table_public_jobs_alter_column_tax_tow_rt/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_tow_rt" IS E'null' - type: run_sql diff --git a/hasura/migrations/1580342652067_alter_table_public_jobs_alter_column_tax_tow_rt/up.yaml b/hasura/migrations/1580342652067_alter_table_public_jobs_alter_column_tax_tow_rt/up.yaml deleted file mode 100644 index 050699106..000000000 --- a/hasura/migrations/1580342652067_alter_table_public_jobs_alter_column_tax_tow_rt/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_tow_rt" IS E'Taxing tow Rate' - type: run_sql diff --git a/hasura/migrations/1580342697226_alter_table_public_jobs_add_column_tax_sub_rt/down.yaml b/hasura/migrations/1580342697226_alter_table_public_jobs_add_column_tax_sub_rt/down.yaml deleted file mode 100644 index 3c2faedff..000000000 --- a/hasura/migrations/1580342697226_alter_table_public_jobs_add_column_tax_sub_rt/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "tax_sub_rt"; - type: run_sql diff --git a/hasura/migrations/1580342697226_alter_table_public_jobs_add_column_tax_sub_rt/up.yaml b/hasura/migrations/1580342697226_alter_table_public_jobs_add_column_tax_sub_rt/up.yaml deleted file mode 100644 index b77cd85bd..000000000 --- a/hasura/migrations/1580342697226_alter_table_public_jobs_add_column_tax_sub_rt/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "tax_sub_rt" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580342709854_alter_table_public_jobs_alter_column_tax_sub_rt/down.yaml b/hasura/migrations/1580342709854_alter_table_public_jobs_alter_column_tax_sub_rt/down.yaml deleted file mode 100644 index a8957d602..000000000 --- a/hasura/migrations/1580342709854_alter_table_public_jobs_alter_column_tax_sub_rt/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_sub_rt" IS E'null' - type: run_sql diff --git a/hasura/migrations/1580342709854_alter_table_public_jobs_alter_column_tax_sub_rt/up.yaml b/hasura/migrations/1580342709854_alter_table_public_jobs_alter_column_tax_sub_rt/up.yaml deleted file mode 100644 index 3796212ba..000000000 --- a/hasura/migrations/1580342709854_alter_table_public_jobs_alter_column_tax_sub_rt/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_sub_rt" IS E'Sublet Tax Rate' - type: run_sql diff --git a/hasura/migrations/1580342722401_alter_table_public_jobs_alter_column_tax_pstthr/down.yaml b/hasura/migrations/1580342722401_alter_table_public_jobs_alter_column_tax_pstthr/down.yaml deleted file mode 100644 index 94dea43fb..000000000 --- a/hasura/migrations/1580342722401_alter_table_public_jobs_alter_column_tax_pstthr/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_pstthr" IS E'PST for Parts' - type: run_sql diff --git a/hasura/migrations/1580342722401_alter_table_public_jobs_alter_column_tax_pstthr/up.yaml b/hasura/migrations/1580342722401_alter_table_public_jobs_alter_column_tax_pstthr/up.yaml deleted file mode 100644 index 94caad8e1..000000000 --- a/hasura/migrations/1580342722401_alter_table_public_jobs_alter_column_tax_pstthr/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_pstthr" IS E'Parts Tax Rate' - type: run_sql diff --git a/hasura/migrations/1580342734703_alter_table_public_jobs_alter_column_tax_tow_rt/down.yaml b/hasura/migrations/1580342734703_alter_table_public_jobs_alter_column_tax_tow_rt/down.yaml deleted file mode 100644 index 050699106..000000000 --- a/hasura/migrations/1580342734703_alter_table_public_jobs_alter_column_tax_tow_rt/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_tow_rt" IS E'Taxing tow Rate' - type: run_sql diff --git a/hasura/migrations/1580342734703_alter_table_public_jobs_alter_column_tax_tow_rt/up.yaml b/hasura/migrations/1580342734703_alter_table_public_jobs_alter_column_tax_tow_rt/up.yaml deleted file mode 100644 index ae024a852..000000000 --- a/hasura/migrations/1580342734703_alter_table_public_jobs_alter_column_tax_tow_rt/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_tow_rt" IS E'Towing Tax Rate' - type: run_sql diff --git a/hasura/migrations/1580343246214_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580343246214_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index a0210b669..000000000 --- a/hasura/migrations/1580343246214_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,230 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580343246214_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580343246214_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 5e96a692b..000000000 --- a/hasura/migrations/1580343246214_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,233 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580343251291_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580343251291_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index e18ccedb9..000000000 --- a/hasura/migrations/1580343251291_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,228 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580343251291_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580343251291_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index e7684a905..000000000 --- a/hasura/migrations/1580343251291_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,231 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580343257730_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580343257730_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 56280c418..000000000 --- a/hasura/migrations/1580343257730_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,230 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - theft_ind - - tlos_ind - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580343257730_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580343257730_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 8910ace88..000000000 --- a/hasura/migrations/1580343257730_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,233 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580346541910_alter_table_public_jobs_add_column_tax_paint_mat/down.yaml b/hasura/migrations/1580346541910_alter_table_public_jobs_add_column_tax_paint_mat/down.yaml deleted file mode 100644 index 389f605db..000000000 --- a/hasura/migrations/1580346541910_alter_table_public_jobs_add_column_tax_paint_mat/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "tax_paint_mat"; - type: run_sql diff --git a/hasura/migrations/1580346541910_alter_table_public_jobs_add_column_tax_paint_mat/up.yaml b/hasura/migrations/1580346541910_alter_table_public_jobs_add_column_tax_paint_mat/up.yaml deleted file mode 100644 index d3ad68e79..000000000 --- a/hasura/migrations/1580346541910_alter_table_public_jobs_add_column_tax_paint_mat/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "tax_paint_mat" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580346657585_alter_table_public_jobs_add_column_tax_levies/down.yaml b/hasura/migrations/1580346657585_alter_table_public_jobs_add_column_tax_levies/down.yaml deleted file mode 100644 index 6a972b65f..000000000 --- a/hasura/migrations/1580346657585_alter_table_public_jobs_add_column_tax_levies/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "tax_levies"; - type: run_sql diff --git a/hasura/migrations/1580346657585_alter_table_public_jobs_add_column_tax_levies/up.yaml b/hasura/migrations/1580346657585_alter_table_public_jobs_add_column_tax_levies/up.yaml deleted file mode 100644 index 13ffaa8ad..000000000 --- a/hasura/migrations/1580346657585_alter_table_public_jobs_add_column_tax_levies/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "tax_levies" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580346809511_alter_table_public_jobs_alter_column_tax_paint_mat/down.yaml b/hasura/migrations/1580346809511_alter_table_public_jobs_alter_column_tax_paint_mat/down.yaml deleted file mode 100644 index 74c06e879..000000000 --- a/hasura/migrations/1580346809511_alter_table_public_jobs_alter_column_tax_paint_mat/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_paint_mat" IS E'null' - type: run_sql -- args: - sql: alter table "public"."jobs" rename column "tax_paint_mat_rt" to "tax_paint_mat"; - type: run_sql diff --git a/hasura/migrations/1580346809511_alter_table_public_jobs_alter_column_tax_paint_mat/up.yaml b/hasura/migrations/1580346809511_alter_table_public_jobs_alter_column_tax_paint_mat/up.yaml deleted file mode 100644 index 46cacd480..000000000 --- a/hasura/migrations/1580346809511_alter_table_public_jobs_alter_column_tax_paint_mat/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_paint_mat" IS E'' - type: run_sql -- args: - sql: alter table "public"."jobs" rename column "tax_paint_mat" to "tax_paint_mat_rt"; - type: run_sql diff --git a/hasura/migrations/1580346822949_alter_table_public_jobs_alter_column_tax_levies/down.yaml b/hasura/migrations/1580346822949_alter_table_public_jobs_alter_column_tax_levies/down.yaml deleted file mode 100644 index 35a057441..000000000 --- a/hasura/migrations/1580346822949_alter_table_public_jobs_alter_column_tax_levies/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_levies" IS E'null' - type: run_sql -- args: - sql: alter table "public"."jobs" rename column "tax_levies_rt" to "tax_levies"; - type: run_sql diff --git a/hasura/migrations/1580346822949_alter_table_public_jobs_alter_column_tax_levies/up.yaml b/hasura/migrations/1580346822949_alter_table_public_jobs_alter_column_tax_levies/up.yaml deleted file mode 100644 index 5032d0a22..000000000 --- a/hasura/migrations/1580346822949_alter_table_public_jobs_alter_column_tax_levies/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."jobs"."tax_levies" IS E'' - type: run_sql -- args: - sql: alter table "public"."jobs" rename column "tax_levies" to "tax_levies_rt"; - type: run_sql diff --git a/hasura/migrations/1580346901283_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580346901283_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 5e96a692b..000000000 --- a/hasura/migrations/1580346901283_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,233 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580346901283_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580346901283_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index c78859077..000000000 --- a/hasura/migrations/1580346901283_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,235 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580346908847_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580346908847_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index e7684a905..000000000 --- a/hasura/migrations/1580346908847_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,231 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580346908847_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580346908847_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 6b5aa011f..000000000 --- a/hasura/migrations/1580346908847_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,233 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_levies_rt - - tax_paint_mat_rt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580346914307_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580346914307_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 8910ace88..000000000 --- a/hasura/migrations/1580346914307_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,233 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580346914307_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580346914307_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 7d2fcd6cc..000000000 --- a/hasura/migrations/1580346914307_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,235 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_levies_rt - - tax_paint_mat_rt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580356194265_alter_line_ref/down.yaml b/hasura/migrations/1580356194265_alter_line_ref/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1580356194265_alter_line_ref/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1580356194265_alter_line_ref/up.yaml b/hasura/migrations/1580356194265_alter_line_ref/up.yaml deleted file mode 100644 index 94d6095ee..000000000 --- a/hasura/migrations/1580356194265_alter_line_ref/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - cascade: true - sql: "ALTER TABLE joblines ALTER COLUMN line_ref DROP DEFAULT;\r\nALTER TABLE - joblines\r\n ALTER line_ref TYPE numeric USING CASE WHEN true THEN 0 ELSE - 0 END;\r\n \r\n ALTER\r\n TABLE joblines ALTER COLUMN line_ref - SET DEFAULT 0;" - type: run_sql diff --git a/hasura/migrations/1580356212983_alter_table_public_joblines_alter_column_line_ref/down.yaml b/hasura/migrations/1580356212983_alter_table_public_joblines_alter_column_line_ref/down.yaml deleted file mode 100644 index 53fa55d89..000000000 --- a/hasura/migrations/1580356212983_alter_table_public_joblines_alter_column_line_ref/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."joblines" ALTER COLUMN "line_ref" SET DEFAULT 0; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."joblines"."line_ref" IS E'null' - type: run_sql diff --git a/hasura/migrations/1580356212983_alter_table_public_joblines_alter_column_line_ref/up.yaml b/hasura/migrations/1580356212983_alter_table_public_joblines_alter_column_line_ref/up.yaml deleted file mode 100644 index 1de071e2f..000000000 --- a/hasura/migrations/1580356212983_alter_table_public_joblines_alter_column_line_ref/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."joblines" ALTER COLUMN "line_ref" DROP DEFAULT; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."joblines"."line_ref" IS E'' - type: run_sql diff --git a/hasura/migrations/1580424750331_jobs_fields/down.yaml b/hasura/migrations/1580424750331_jobs_fields/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1580424750331_jobs_fields/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1580424750331_jobs_fields/up.yaml b/hasura/migrations/1580424750331_jobs_fields/up.yaml deleted file mode 100644 index 4faaad5d3..000000000 --- a/hasura/migrations/1580424750331_jobs_fields/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - cascade: true - sql: "alter table jobs\r\nadd column tax_prethr numeric,\r\nadd column tax_thramt - numeric,\r\nadd column tax_str_rt numeric,\r\nadd column tax_lbr_rt numeric,\r\nadd - column adj_g_disc numeric,\r\nadd column adj_towdis numeric,\r\nadd column - adj_strdis numeric,\r\nadd column tax_predis numeric" - type: run_sql diff --git a/hasura/migrations/1580424775529_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580424775529_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index c78859077..000000000 --- a/hasura/migrations/1580424775529_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,235 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580424775529_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580424775529_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index c60b5b21b..000000000 --- a/hasura/migrations/1580424775529_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - - tax_prethr - - tax_thramt - - tax_str_rt - - tax_lbr_rt - - adj_g_disc - - adj_towdis - - adj_strdis - - tax_predis - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580424780619_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580424780619_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 6b5aa011f..000000000 --- a/hasura/migrations/1580424780619_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,233 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_levies_rt - - tax_paint_mat_rt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580424780619_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580424780619_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 5312d6320..000000000 --- a/hasura/migrations/1580424780619_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,241 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580424785911_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580424785911_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 7d2fcd6cc..000000000 --- a/hasura/migrations/1580424785911_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,235 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_levies_rt - - tax_paint_mat_rt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580424785911_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580424785911_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4d5d66b53..000000000 --- a/hasura/migrations/1580424785911_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580425245598_run_sql_migration/down.yaml b/hasura/migrations/1580425245598_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1580425245598_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1580425245598_run_sql_migration/up.yaml b/hasura/migrations/1580425245598_run_sql_migration/up.yaml deleted file mode 100644 index 338b11bb7..000000000 --- a/hasura/migrations/1580425245598_run_sql_migration/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - cascade: true - sql: "alter table joblines\r\n\r\nadd column glass_flag bool,\r\nadd column price_inc - bool,\r\nadd column alt_part_i bool,\r\nadd column price_j bool,\r\nadd column - cert_part bool,\r\nadd column alt_co_id text,\r\nadd column alt_overrd bool,\r\nadd - column alt_partm text,\r\nadd column prt_dsmk_p numeric,\r\nadd column prt_dsmk_m - numeric,\r\nadd column lbr_inc bool,\r\n\r\nadd column lbr_hrs_j bool,\r\nadd - column lbr_typ_j bool,\r\nadd column lbr_op_j bool,\r\nadd column paint_stg - integer,\r\nadd column paint_tone integer,\r\nadd column lbr_tax bool,\r\n\r\nadd - column misc_amt numeric,\r\nadd column misc_sublt bool,\r\nadd column misc_tax - bool,\r\nadd column bett_type text,\r\nadd column bett_pctg numeric,\r\nadd - column bett_amt numeric,\r\nadd column bett_tax bool" - type: run_sql diff --git a/hasura/migrations/1580425277537_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1580425277537_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index d7b2de7cd..000000000 --- a/hasura/migrations/1580425277537_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - unq_seq - - line_ind - - line_desc - - part_type - - oem_partno - - est_seq - - db_ref - - line_ref - - tax_part - - db_price - - act_price - - part_qty - - alt_partno - - mod_lbr_ty - - db_hrs - - mod_lb_hrs - - lbr_op - - lbr_amt - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580425277537_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1580425277537_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index dc213864d..000000000 --- a/hasura/migrations/1580425277537_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - unq_seq - - line_ind - - line_desc - - part_type - - oem_partno - - est_seq - - db_ref - - line_ref - - tax_part - - db_price - - act_price - - part_qty - - alt_partno - - mod_lbr_ty - - db_hrs - - mod_lb_hrs - - lbr_op - - lbr_amt - - glass_flag - - price_inc - - alt_part_i - - price_j - - cert_part - - alt_co_id - - alt_overrd - - alt_partm - - prt_dsmk_p - - prt_dsmk_m - - lbr_inc - - lbr_hrs_j - - lbr_typ_j - - lbr_op_j - - paint_stg - - paint_tone - - lbr_tax - - misc_amt - - misc_sublt - - misc_tax - - bett_type - - bett_pctg - - bett_amt - - bett_tax - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580425285636_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1580425285636_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 7c4eb1024..000000000 --- a/hasura/migrations/1580425285636_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,48 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - tax_part - - est_seq - - part_qty - - unq_seq - - act_price - - db_hrs - - db_price - - lbr_amt - - mod_lb_hrs - - alt_partno - - db_ref - - lbr_op - - line_desc - - line_ind - - line_ref - - mod_lbr_ty - - oem_partno - - part_type - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580425285636_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1580425285636_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index b143512d8..000000000 --- a/hasura/migrations/1580425285636_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,72 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - created_at - - updated_at - - jobid - - unq_seq - - line_ind - - line_desc - - part_type - - oem_partno - - est_seq - - db_ref - - line_ref - - tax_part - - db_price - - act_price - - part_qty - - alt_partno - - mod_lbr_ty - - db_hrs - - mod_lb_hrs - - lbr_op - - lbr_amt - - glass_flag - - price_inc - - alt_part_i - - price_j - - cert_part - - alt_co_id - - alt_overrd - - alt_partm - - prt_dsmk_p - - prt_dsmk_m - - lbr_inc - - lbr_hrs_j - - lbr_typ_j - - lbr_op_j - - paint_stg - - paint_tone - - lbr_tax - - misc_amt - - misc_sublt - - misc_tax - - bett_type - - bett_pctg - - bett_amt - - bett_tax - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580425296863_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1580425296863_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index ca3225d6b..000000000 --- a/hasura/migrations/1580425296863_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - tax_part - - est_seq - - part_qty - - unq_seq - - act_price - - db_hrs - - db_price - - lbr_amt - - mod_lb_hrs - - alt_partno - - db_ref - - lbr_op - - line_desc - - line_ind - - line_ref - - mod_lbr_ty - - oem_partno - - part_type - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580425296863_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1580425296863_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 6d1063cc8..000000000 --- a/hasura/migrations/1580425296863_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - part_type - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580425460879_alter_table_public_jobs_add_column_rate_laa/down.yaml b/hasura/migrations/1580425460879_alter_table_public_jobs_add_column_rate_laa/down.yaml deleted file mode 100644 index 785d08ad2..000000000 --- a/hasura/migrations/1580425460879_alter_table_public_jobs_add_column_rate_laa/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "rate_laa"; - type: run_sql diff --git a/hasura/migrations/1580425460879_alter_table_public_jobs_add_column_rate_laa/up.yaml b/hasura/migrations/1580425460879_alter_table_public_jobs_add_column_rate_laa/up.yaml deleted file mode 100644 index d7b745111..000000000 --- a/hasura/migrations/1580425460879_alter_table_public_jobs_add_column_rate_laa/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "rate_laa" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1580425481308_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580425481308_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index c60b5b21b..000000000 --- a/hasura/migrations/1580425481308_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - - tax_prethr - - tax_thramt - - tax_str_rt - - tax_lbr_rt - - adj_g_disc - - adj_towdis - - adj_strdis - - tax_predis - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580425481308_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580425481308_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index a1e5cbdde..000000000 --- a/hasura/migrations/1580425481308_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,244 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - - tax_prethr - - tax_thramt - - tax_str_rt - - tax_lbr_rt - - adj_g_disc - - adj_towdis - - adj_strdis - - tax_predis - - rate_laa - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580425487863_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580425487863_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 5312d6320..000000000 --- a/hasura/migrations/1580425487863_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,241 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580425487863_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580425487863_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 57466d6e6..000000000 --- a/hasura/migrations/1580425487863_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,242 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580425491775_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580425491775_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4d5d66b53..000000000 --- a/hasura/migrations/1580425491775_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580425491775_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580425491775_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4d5d66b53..000000000 --- a/hasura/migrations/1580425491775_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580425495615_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580425495615_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4d5d66b53..000000000 --- a/hasura/migrations/1580425495615_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580425495615_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580425495615_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4371eaab0..000000000 --- a/hasura/migrations/1580425495615_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,244 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580425498865_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580425498865_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4d5d66b53..000000000 --- a/hasura/migrations/1580425498865_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580425498865_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580425498865_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4371eaab0..000000000 --- a/hasura/migrations/1580425498865_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,244 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580427566710_alter_table_public_bodyshops_add_column_region_config/down.yaml b/hasura/migrations/1580427566710_alter_table_public_bodyshops_add_column_region_config/down.yaml deleted file mode 100644 index 6b1476237..000000000 --- a/hasura/migrations/1580427566710_alter_table_public_bodyshops_add_column_region_config/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "region_config"; - type: run_sql diff --git a/hasura/migrations/1580427566710_alter_table_public_bodyshops_add_column_region_config/up.yaml b/hasura/migrations/1580427566710_alter_table_public_bodyshops_add_column_region_config/up.yaml deleted file mode 100644 index b9a0e7e8e..000000000 --- a/hasura/migrations/1580427566710_alter_table_public_bodyshops_add_column_region_config/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "region_config" text NOT NULL - DEFAULT 'CA_BC'; - type: run_sql diff --git a/hasura/migrations/1580427579544_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1580427579544_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 80ca70d5d..000000000 --- a/hasura/migrations/1580427579544_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_ro_statuses - - shopname - - state - - state_tax_id - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580427579544_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1580427579544_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 0575c9859..000000000 --- a/hasura/migrations/1580427579544_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_ro_statuses - - region_config - - shopname - - state - - state_tax_id - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580428867144_alter_table_public_joblines_add_column_op_code_desc/down.yaml b/hasura/migrations/1580428867144_alter_table_public_joblines_add_column_op_code_desc/down.yaml deleted file mode 100644 index 8b33d277c..000000000 --- a/hasura/migrations/1580428867144_alter_table_public_joblines_add_column_op_code_desc/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."joblines" DROP COLUMN "op_code_desc"; - type: run_sql diff --git a/hasura/migrations/1580428867144_alter_table_public_joblines_add_column_op_code_desc/up.yaml b/hasura/migrations/1580428867144_alter_table_public_joblines_add_column_op_code_desc/up.yaml deleted file mode 100644 index f70b7a310..000000000 --- a/hasura/migrations/1580428867144_alter_table_public_joblines_add_column_op_code_desc/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."joblines" ADD COLUMN "op_code_desc" text NULL; - type: run_sql diff --git a/hasura/migrations/1580428876888_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1580428876888_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index dc213864d..000000000 --- a/hasura/migrations/1580428876888_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - unq_seq - - line_ind - - line_desc - - part_type - - oem_partno - - est_seq - - db_ref - - line_ref - - tax_part - - db_price - - act_price - - part_qty - - alt_partno - - mod_lbr_ty - - db_hrs - - mod_lb_hrs - - lbr_op - - lbr_amt - - glass_flag - - price_inc - - alt_part_i - - price_j - - cert_part - - alt_co_id - - alt_overrd - - alt_partm - - prt_dsmk_p - - prt_dsmk_m - - lbr_inc - - lbr_hrs_j - - lbr_typ_j - - lbr_op_j - - paint_stg - - paint_tone - - lbr_tax - - misc_amt - - misc_sublt - - misc_tax - - bett_type - - bett_pctg - - bett_amt - - bett_tax - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580428876888_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1580428876888_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 3d0722715..000000000 --- a/hasura/migrations/1580428876888_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - unq_seq - - line_ind - - line_desc - - part_type - - oem_partno - - est_seq - - db_ref - - line_ref - - tax_part - - db_price - - act_price - - part_qty - - alt_partno - - mod_lbr_ty - - db_hrs - - mod_lb_hrs - - lbr_op - - lbr_amt - - glass_flag - - price_inc - - alt_part_i - - price_j - - cert_part - - alt_co_id - - alt_overrd - - alt_partm - - prt_dsmk_p - - prt_dsmk_m - - lbr_inc - - lbr_hrs_j - - lbr_typ_j - - lbr_op_j - - paint_stg - - paint_tone - - lbr_tax - - misc_amt - - misc_sublt - - misc_tax - - bett_type - - bett_pctg - - bett_amt - - bett_tax - - op_code_desc - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580428884075_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1580428884075_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index b143512d8..000000000 --- a/hasura/migrations/1580428884075_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,72 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - created_at - - updated_at - - jobid - - unq_seq - - line_ind - - line_desc - - part_type - - oem_partno - - est_seq - - db_ref - - line_ref - - tax_part - - db_price - - act_price - - part_qty - - alt_partno - - mod_lbr_ty - - db_hrs - - mod_lb_hrs - - lbr_op - - lbr_amt - - glass_flag - - price_inc - - alt_part_i - - price_j - - cert_part - - alt_co_id - - alt_overrd - - alt_partm - - prt_dsmk_p - - prt_dsmk_m - - lbr_inc - - lbr_hrs_j - - lbr_typ_j - - lbr_op_j - - paint_stg - - paint_tone - - lbr_tax - - misc_amt - - misc_sublt - - misc_tax - - bett_type - - bett_pctg - - bett_amt - - bett_tax - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580428884075_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1580428884075_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 32c4e42a2..000000000 --- a/hasura/migrations/1580428884075_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,73 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - op_code_desc - - part_type - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580428891595_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1580428891595_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 6d1063cc8..000000000 --- a/hasura/migrations/1580428891595_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - part_type - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580428891595_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1580428891595_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index befcc2bb7..000000000 --- a/hasura/migrations/1580428891595_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - op_code_desc - - part_type - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580845008791_create_table_public_employees/down.yaml b/hasura/migrations/1580845008791_create_table_public_employees/down.yaml deleted file mode 100644 index a02ec7b09..000000000 --- a/hasura/migrations/1580845008791_create_table_public_employees/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."employees" - type: run_sql diff --git a/hasura/migrations/1580845008791_create_table_public_employees/up.yaml b/hasura/migrations/1580845008791_create_table_public_employees/up.yaml deleted file mode 100644 index 938539268..000000000 --- a/hasura/migrations/1580845008791_create_table_public_employees/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"employees\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"first_name\" text NOT NULL, \"last_name\" text NOT - NULL, \"employee_number\" text, \"shopid\" uuid NOT NULL, \"active\" boolean - NOT NULL DEFAULT true, PRIMARY KEY (\"id\") , FOREIGN KEY (\"shopid\") REFERENCES - \"public\".\"bodyshops\"(\"id\") ON UPDATE cascade ON DELETE cascade);\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_employees_updated_at\"\nBEFORE - UPDATE ON \"public\".\"employees\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_employees_updated_at\" ON \"public\".\"employees\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';\n" - type: run_sql -- args: - name: employees - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1580845024748_track_all_relationships/down.yaml b/hasura/migrations/1580845024748_track_all_relationships/down.yaml deleted file mode 100644 index 603fdf200..000000000 --- a/hasura/migrations/1580845024748_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: employees - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: employees - schema: public - type: drop_relationship diff --git a/hasura/migrations/1580845024748_track_all_relationships/up.yaml b/hasura/migrations/1580845024748_track_all_relationships/up.yaml deleted file mode 100644 index 02e5b8af4..000000000 --- a/hasura/migrations/1580845024748_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: employees - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: shopid - table: - name: employees - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: employees - schema: public - using: - foreign_key_constraint_on: shopid - type: create_object_relationship diff --git a/hasura/migrations/1580845064503_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1580845064503_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index 8ce6d7380..000000000 --- a/hasura/migrations/1580845064503_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1580845064503_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1580845064503_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 6c9cf3410..000000000 --- a/hasura/migrations/1580845064503_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - active - - employee_number - - first_name - - last_name - - created_at - - updated_at - - id - - shopid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: employees - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580845070982_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1580845070982_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index c044718f0..000000000 --- a/hasura/migrations/1580845070982_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1580845070982_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1580845070982_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index d891ef226..000000000 --- a/hasura/migrations/1580845070982_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - active - - employee_number - - first_name - - last_name - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: employees - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580845078647_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1580845078647_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index c3a42c539..000000000 --- a/hasura/migrations/1580845078647_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1580845078647_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1580845078647_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 962c508c1..000000000 --- a/hasura/migrations/1580845078647_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,29 +0,0 @@ -- args: - permission: - columns: - - active - - employee_number - - first_name - - last_name - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: employees - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580845085318_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1580845085318_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index 6a7312d7e..000000000 --- a/hasura/migrations/1580845085318_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1580845085318_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1580845085318_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index a8d773013..000000000 --- a/hasura/migrations/1580845085318_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: employees - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1580924578754_create_table_public_appointments/down.yaml b/hasura/migrations/1580924578754_create_table_public_appointments/down.yaml deleted file mode 100644 index df54499c7..000000000 --- a/hasura/migrations/1580924578754_create_table_public_appointments/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."appointments" - type: run_sql diff --git a/hasura/migrations/1580924578754_create_table_public_appointments/up.yaml b/hasura/migrations/1580924578754_create_table_public_appointments/up.yaml deleted file mode 100644 index f3de9b6bb..000000000 --- a/hasura/migrations/1580924578754_create_table_public_appointments/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"appointments\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"jobid\" uuid NOT NULL, \"start\" timestamptz NOT NULL, - \"end\" timestamptz NOT NULL, PRIMARY KEY (\"id\") , FOREIGN KEY (\"jobid\") - REFERENCES \"public\".\"jobs\"(\"id\") ON UPDATE cascade ON DELETE cascade);\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_appointments_updated_at\"\nBEFORE - UPDATE ON \"public\".\"appointments\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_appointments_updated_at\" ON \"public\".\"appointments\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';\n" - type: run_sql -- args: - name: appointments - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1580924597777_track_all_relationships/down.yaml b/hasura/migrations/1580924597777_track_all_relationships/down.yaml deleted file mode 100644 index 40a2859e9..000000000 --- a/hasura/migrations/1580924597777_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: job - table: - name: appointments - schema: public - type: drop_relationship -- args: - relationship: appointments - table: - name: jobs - schema: public - type: drop_relationship diff --git a/hasura/migrations/1580924597777_track_all_relationships/up.yaml b/hasura/migrations/1580924597777_track_all_relationships/up.yaml deleted file mode 100644 index a42e807b4..000000000 --- a/hasura/migrations/1580924597777_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: job - table: - name: appointments - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship -- args: - name: appointments - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: appointments - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1580924636108_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1580924636108_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 360bed4cf..000000000 --- a/hasura/migrations/1580924636108_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1580924636108_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1580924636108_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 0b2e1b916..000000000 --- a/hasura/migrations/1580924636108_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,29 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - end - - start - - updated_at - - id - - jobid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580924643897_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1580924643897_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index cb1497747..000000000 --- a/hasura/migrations/1580924643897_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1580924643897_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1580924643897_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 00c8ca764..000000000 --- a/hasura/migrations/1580924643897_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - created_at - - end - - start - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580924650229_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1580924650229_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 9e035c24f..000000000 --- a/hasura/migrations/1580924650229_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1580924650229_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1580924650229_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index f4adc60da..000000000 --- a/hasura/migrations/1580924650229_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - permission: - columns: - - created_at - - end - - start - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580924654728_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1580924654728_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 58bced28e..000000000 --- a/hasura/migrations/1580924654728_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1580924654728_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1580924654728_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 119e09bbc..000000000 --- a/hasura/migrations/1580924654728_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1580931183725_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580931183725_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index a1e5cbdde..000000000 --- a/hasura/migrations/1580931183725_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,244 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - claim_total - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - - tax_prethr - - tax_thramt - - tax_str_rt - - tax_lbr_rt - - adj_g_disc - - adj_towdis - - adj_strdis - - tax_predis - - rate_laa - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580931183725_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580931183725_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 50eccd57f..000000000 --- a/hasura/migrations/1580931183725_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1580931192674_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580931192674_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 57466d6e6..000000000 --- a/hasura/migrations/1580931192674_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,242 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580931192674_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580931192674_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 79e220620..000000000 --- a/hasura/migrations/1580931192674_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,241 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1580931206615_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1580931206615_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4371eaab0..000000000 --- a/hasura/migrations/1580931206615_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,244 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - claim_total - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580931206615_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1580931206615_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index e25202215..000000000 --- a/hasura/migrations/1580931206615_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1580931212931_alter_table_public_jobs_drop_column_claim_total/down.yaml b/hasura/migrations/1580931212931_alter_table_public_jobs_drop_column_claim_total/down.yaml deleted file mode 100644 index 93fb7a1c5..000000000 --- a/hasura/migrations/1580931212931_alter_table_public_jobs_drop_column_claim_total/down.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "claim_total" numeric - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "claim_total" DROP NOT NULL - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "claim_total" SET DEFAULT 0 - type: run_sql diff --git a/hasura/migrations/1580931212931_alter_table_public_jobs_drop_column_claim_total/up.yaml b/hasura/migrations/1580931212931_alter_table_public_jobs_drop_column_claim_total/up.yaml deleted file mode 100644 index cbb44e742..000000000 --- a/hasura/migrations/1580931212931_alter_table_public_jobs_drop_column_claim_total/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "claim_total" CASCADE - type: run_sql diff --git a/hasura/migrations/1580931234225_alter_table_public_jobs_alter_column_clm_total/down.yaml b/hasura/migrations/1580931234225_alter_table_public_jobs_alter_column_clm_total/down.yaml deleted file mode 100644 index 323a4f792..000000000 --- a/hasura/migrations/1580931234225_alter_table_public_jobs_alter_column_clm_total/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE ONLY "public"."jobs" ALTER COLUMN "clm_total" SET DEFAULT 0; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."clm_total" IS E'null' - type: run_sql diff --git a/hasura/migrations/1580931234225_alter_table_public_jobs_alter_column_clm_total/up.yaml b/hasura/migrations/1580931234225_alter_table_public_jobs_alter_column_clm_total/up.yaml deleted file mode 100644 index dfcd0015d..000000000 --- a/hasura/migrations/1580931234225_alter_table_public_jobs_alter_column_clm_total/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE ONLY "public"."jobs" ALTER COLUMN "clm_total" SET DEFAULT 0; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."jobs"."clm_total" IS E'' - type: run_sql diff --git a/hasura/migrations/1580935279972_update_permission_anonymous_public_table_users/down.yaml b/hasura/migrations/1580935279972_update_permission_anonymous_public_table_users/down.yaml deleted file mode 100644 index 56426a31b..000000000 --- a/hasura/migrations/1580935279972_update_permission_anonymous_public_table_users/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: users - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1580935279972_update_permission_anonymous_public_table_users/up.yaml b/hasura/migrations/1580935279972_update_permission_anonymous_public_table_users/up.yaml deleted file mode 100644 index 80a2f24bf..000000000 --- a/hasura/migrations/1580935279972_update_permission_anonymous_public_table_users/up.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - authid - filter: {} - limit: null - role: anonymous - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581011347492_delete_permission_anonymous_public_table_users/down.yaml b/hasura/migrations/1581011347492_delete_permission_anonymous_public_table_users/down.yaml deleted file mode 100644 index 2ed833fbd..000000000 --- a/hasura/migrations/1581011347492_delete_permission_anonymous_public_table_users/down.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- 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 diff --git a/hasura/migrations/1581011347492_delete_permission_anonymous_public_table_users/up.yaml b/hasura/migrations/1581011347492_delete_permission_anonymous_public_table_users/up.yaml deleted file mode 100644 index adfb8ed02..000000000 --- a/hasura/migrations/1581011347492_delete_permission_anonymous_public_table_users/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: users - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1581011354989_delete_permission_anonymous_public_table_users/down.yaml b/hasura/migrations/1581011354989_delete_permission_anonymous_public_table_users/down.yaml deleted file mode 100644 index 5b6a124be..000000000 --- a/hasura/migrations/1581011354989_delete_permission_anonymous_public_table_users/down.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - check: {} - columns: - - authid - - created_at - - email - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: anonymous - table: - name: users - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581011354989_delete_permission_anonymous_public_table_users/up.yaml b/hasura/migrations/1581011354989_delete_permission_anonymous_public_table_users/up.yaml deleted file mode 100644 index 8d7fedcea..000000000 --- a/hasura/migrations/1581011354989_delete_permission_anonymous_public_table_users/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: users - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1581011359698_delete_permission_anonymous_public_table_users/down.yaml b/hasura/migrations/1581011359698_delete_permission_anonymous_public_table_users/down.yaml deleted file mode 100644 index 6da8f77e4..000000000 --- a/hasura/migrations/1581011359698_delete_permission_anonymous_public_table_users/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - authid - computed_fields: [] - filter: {} - role: anonymous - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581011359698_delete_permission_anonymous_public_table_users/up.yaml b/hasura/migrations/1581011359698_delete_permission_anonymous_public_table_users/up.yaml deleted file mode 100644 index 56426a31b..000000000 --- a/hasura/migrations/1581011359698_delete_permission_anonymous_public_table_users/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: users - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1581022739131_alter_table_public_appointments_add_column_canceled/down.yaml b/hasura/migrations/1581022739131_alter_table_public_appointments_add_column_canceled/down.yaml deleted file mode 100644 index dfcf08d41..000000000 --- a/hasura/migrations/1581022739131_alter_table_public_appointments_add_column_canceled/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" DROP COLUMN "canceled"; - type: run_sql diff --git a/hasura/migrations/1581022739131_alter_table_public_appointments_add_column_canceled/up.yaml b/hasura/migrations/1581022739131_alter_table_public_appointments_add_column_canceled/up.yaml deleted file mode 100644 index 04e88be2f..000000000 --- a/hasura/migrations/1581022739131_alter_table_public_appointments_add_column_canceled/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" ADD COLUMN "canceled" boolean NOT NULL - DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1581022751236_alter_table_public_appointments_add_column_arrived/down.yaml b/hasura/migrations/1581022751236_alter_table_public_appointments_add_column_arrived/down.yaml deleted file mode 100644 index fe4587381..000000000 --- a/hasura/migrations/1581022751236_alter_table_public_appointments_add_column_arrived/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" DROP COLUMN "arrived"; - type: run_sql diff --git a/hasura/migrations/1581022751236_alter_table_public_appointments_add_column_arrived/up.yaml b/hasura/migrations/1581022751236_alter_table_public_appointments_add_column_arrived/up.yaml deleted file mode 100644 index b3d4fe679..000000000 --- a/hasura/migrations/1581022751236_alter_table_public_appointments_add_column_arrived/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" ADD COLUMN "arrived" boolean NOT NULL - DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1581022758869_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581022758869_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index b56eb5bbf..000000000 --- a/hasura/migrations/1581022758869_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - end - - start - - updated_at - - id - - jobid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581022758869_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581022758869_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 34cf4841b..000000000 --- a/hasura/migrations/1581022758869_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - arrived - - canceled - - created_at - - end - - start - - updated_at - - id - - jobid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581022764017_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581022764017_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 69c1cdc57..000000000 --- a/hasura/migrations/1581022764017_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - end - - start - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581022764017_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581022764017_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index d71784d2e..000000000 --- a/hasura/migrations/1581022764017_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - arrived - - canceled - - created_at - - end - - start - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581022771283_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581022771283_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index c44b9394c..000000000 --- a/hasura/migrations/1581022771283_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - end - - start - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581022771283_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581022771283_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 1644cd131..000000000 --- a/hasura/migrations/1581022771283_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - canceled - - created_at - - end - - start - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581028719187_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581028719187_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index d71784d2e..000000000 --- a/hasura/migrations/1581028719187_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - arrived - - canceled - - created_at - - end - - start - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581028719187_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581028719187_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 7c6811bf8..000000000 --- a/hasura/migrations/1581028719187_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - canceled - - created_at - - end - - start - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581029855396_alter_table_public_jobs_add_column_status/down.yaml b/hasura/migrations/1581029855396_alter_table_public_jobs_add_column_status/down.yaml deleted file mode 100644 index 043b6ce61..000000000 --- a/hasura/migrations/1581029855396_alter_table_public_jobs_add_column_status/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "status"; - type: run_sql diff --git a/hasura/migrations/1581029855396_alter_table_public_jobs_add_column_status/up.yaml b/hasura/migrations/1581029855396_alter_table_public_jobs_add_column_status/up.yaml deleted file mode 100644 index 262633fb7..000000000 --- a/hasura/migrations/1581029855396_alter_table_public_jobs_add_column_status/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "status" text NOT NULL DEFAULT 'Open'; - type: run_sql diff --git a/hasura/migrations/1581029864710_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1581029864710_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 50eccd57f..000000000 --- a/hasura/migrations/1581029864710_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581029864710_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1581029864710_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 488ed01e7..000000000 --- a/hasura/migrations/1581029864710_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,244 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - - tax_prethr - - tax_thramt - - tax_str_rt - - tax_lbr_rt - - adj_g_disc - - adj_towdis - - adj_strdis - - tax_predis - - rate_laa - - status - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581029870003_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1581029870003_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 79e220620..000000000 --- a/hasura/migrations/1581029870003_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,241 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581029870003_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1581029870003_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index a6ed6c817..000000000 --- a/hasura/migrations/1581029870003_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,242 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581029875101_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1581029875101_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index e25202215..000000000 --- a/hasura/migrations/1581029875101_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deductible - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581029875101_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1581029875101_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 973b2115c..000000000 --- a/hasura/migrations/1581029875101_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,244 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581029890395_delete_permission_user_public_table_job_status/down.yaml b/hasura/migrations/1581029890395_delete_permission_user_public_table_job_status/down.yaml deleted file mode 100644 index d09f1309a..000000000 --- a/hasura/migrations/1581029890395_delete_permission_user_public_table_job_status/down.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - name - - isproductionstatus - - order - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: job_status - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581029890395_delete_permission_user_public_table_job_status/up.yaml b/hasura/migrations/1581029890395_delete_permission_user_public_table_job_status/up.yaml deleted file mode 100644 index 3c01a272c..000000000 --- a/hasura/migrations/1581029890395_delete_permission_user_public_table_job_status/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1581029895198_delete_permission_user_public_table_job_status/down.yaml b/hasura/migrations/1581029895198_delete_permission_user_public_table_job_status/down.yaml deleted file mode 100644 index 646e591b4..000000000 --- a/hasura/migrations/1581029895198_delete_permission_user_public_table_job_status/down.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - isproductionstatus - - order - - name - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: job_status - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581029895198_delete_permission_user_public_table_job_status/up.yaml b/hasura/migrations/1581029895198_delete_permission_user_public_table_job_status/up.yaml deleted file mode 100644 index 85d7d08dd..000000000 --- a/hasura/migrations/1581029895198_delete_permission_user_public_table_job_status/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1581029899124_delete_permission_user_public_table_job_status/down.yaml b/hasura/migrations/1581029899124_delete_permission_user_public_table_job_status/down.yaml deleted file mode 100644 index 31c3a7b89..000000000 --- a/hasura/migrations/1581029899124_delete_permission_user_public_table_job_status/down.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - permission: - columns: - - isproductionstatus - - order - - name - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: job_status - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581029899124_delete_permission_user_public_table_job_status/up.yaml b/hasura/migrations/1581029899124_delete_permission_user_public_table_job_status/up.yaml deleted file mode 100644 index 42b51ea3e..000000000 --- a/hasura/migrations/1581029899124_delete_permission_user_public_table_job_status/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1581029904239_delete_permission_user_public_table_job_status/down.yaml b/hasura/migrations/1581029904239_delete_permission_user_public_table_job_status/down.yaml deleted file mode 100644 index e26a5a3ac..000000000 --- a/hasura/migrations/1581029904239_delete_permission_user_public_table_job_status/down.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: job_status - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1581029904239_delete_permission_user_public_table_job_status/up.yaml b/hasura/migrations/1581029904239_delete_permission_user_public_table_job_status/up.yaml deleted file mode 100644 index 05f10e122..000000000 --- a/hasura/migrations/1581029904239_delete_permission_user_public_table_job_status/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_status - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1581030454318_drop_relationship_job_status_public_table_jobs/down.yaml b/hasura/migrations/1581030454318_drop_relationship_job_status_public_table_jobs/down.yaml deleted file mode 100644 index 387fc3707..000000000 --- a/hasura/migrations/1581030454318_drop_relationship_job_status_public_table_jobs/down.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - name: job_status - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: statusid - type: create_object_relationship diff --git a/hasura/migrations/1581030454318_drop_relationship_job_status_public_table_jobs/up.yaml b/hasura/migrations/1581030454318_drop_relationship_job_status_public_table_jobs/up.yaml deleted file mode 100644 index 38bcae868..000000000 --- a/hasura/migrations/1581030454318_drop_relationship_job_status_public_table_jobs/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: job_status - table: - name: jobs - schema: public - type: drop_relationship diff --git a/hasura/migrations/1581030528307_drop_relationship_bodyshop_public_table_job_status/down.yaml b/hasura/migrations/1581030528307_drop_relationship_bodyshop_public_table_job_status/down.yaml deleted file mode 100644 index 4df64ab21..000000000 --- a/hasura/migrations/1581030528307_drop_relationship_bodyshop_public_table_job_status/down.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - name: bodyshop - table: - name: job_status - schema: public - using: - foreign_key_constraint_on: shopid - type: create_object_relationship diff --git a/hasura/migrations/1581030528307_drop_relationship_bodyshop_public_table_job_status/up.yaml b/hasura/migrations/1581030528307_drop_relationship_bodyshop_public_table_job_status/up.yaml deleted file mode 100644 index be19077ec..000000000 --- a/hasura/migrations/1581030528307_drop_relationship_bodyshop_public_table_job_status/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: bodyshop - table: - name: job_status - schema: public - type: drop_relationship diff --git a/hasura/migrations/1581030535781_drop_relationship_jobs_public_table_job_status/down.yaml b/hasura/migrations/1581030535781_drop_relationship_jobs_public_table_job_status/down.yaml deleted file mode 100644 index e72f3596e..000000000 --- a/hasura/migrations/1581030535781_drop_relationship_jobs_public_table_job_status/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - name: jobs - table: - name: job_status - schema: public - using: - foreign_key_constraint_on: - column: statusid - table: - name: jobs - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1581030535781_drop_relationship_jobs_public_table_job_status/up.yaml b/hasura/migrations/1581030535781_drop_relationship_jobs_public_table_job_status/up.yaml deleted file mode 100644 index 9a632ffbb..000000000 --- a/hasura/migrations/1581030535781_drop_relationship_jobs_public_table_job_status/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: jobs - table: - name: job_status - schema: public - type: drop_relationship diff --git a/hasura/migrations/1581030563884_drop_relationship_job_statuses_public_table_bodyshops/down.yaml b/hasura/migrations/1581030563884_drop_relationship_job_statuses_public_table_bodyshops/down.yaml deleted file mode 100644 index 5fd010060..000000000 --- a/hasura/migrations/1581030563884_drop_relationship_job_statuses_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - name: job_statuses - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: shopid - table: - name: job_status - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1581030563884_drop_relationship_job_statuses_public_table_bodyshops/up.yaml b/hasura/migrations/1581030563884_drop_relationship_job_statuses_public_table_bodyshops/up.yaml deleted file mode 100644 index bfe177786..000000000 --- a/hasura/migrations/1581030563884_drop_relationship_job_statuses_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: job_statuses - table: - name: bodyshops - schema: public - type: drop_relationship diff --git a/hasura/migrations/1581030601347_delete_fk_public_job_status_job_status_shopid_fkey/down.yaml b/hasura/migrations/1581030601347_delete_fk_public_job_status_job_status_shopid_fkey/down.yaml deleted file mode 100644 index 78a66f549..000000000 --- a/hasura/migrations/1581030601347_delete_fk_public_job_status_job_status_shopid_fkey/down.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: alter table "public"."job_status" add foreign key ("shopid") references "public"."bodyshops"("id") - on update cascade on delete cascade; - type: run_sql diff --git a/hasura/migrations/1581030601347_delete_fk_public_job_status_job_status_shopid_fkey/up.yaml b/hasura/migrations/1581030601347_delete_fk_public_job_status_job_status_shopid_fkey/up.yaml deleted file mode 100644 index 07c07d3a1..000000000 --- a/hasura/migrations/1581030601347_delete_fk_public_job_status_job_status_shopid_fkey/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: alter table "public"."job_status" drop constraint "job_status_shopid_fkey"; - type: run_sql diff --git a/hasura/migrations/1581030654272_delete_fk_public_jobs_jobs_statusid_fkey/down.yaml b/hasura/migrations/1581030654272_delete_fk_public_jobs_jobs_statusid_fkey/down.yaml deleted file mode 100644 index d52b04302..000000000 --- a/hasura/migrations/1581030654272_delete_fk_public_jobs_jobs_statusid_fkey/down.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: alter table "public"."jobs" add foreign key ("statusid") references "public"."job_status"("id") - on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1581030654272_delete_fk_public_jobs_jobs_statusid_fkey/up.yaml b/hasura/migrations/1581030654272_delete_fk_public_jobs_jobs_statusid_fkey/up.yaml deleted file mode 100644 index 24aec4d0b..000000000 --- a/hasura/migrations/1581030654272_delete_fk_public_jobs_jobs_statusid_fkey/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: alter table "public"."jobs" drop constraint "jobs_statusid_fkey"; - type: run_sql diff --git a/hasura/migrations/1581030663585_drop_table_public_job_status/down.yaml b/hasura/migrations/1581030663585_drop_table_public_job_status/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1581030663585_drop_table_public_job_status/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1581030663585_drop_table_public_job_status/up.yaml b/hasura/migrations/1581030663585_drop_table_public_job_status/up.yaml deleted file mode 100644 index d10304097..000000000 --- a/hasura/migrations/1581030663585_drop_table_public_job_status/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."job_status" - type: run_sql diff --git a/hasura/migrations/1581357049913_alter_table_public_employees_add_column_hire_date/down.yaml b/hasura/migrations/1581357049913_alter_table_public_employees_add_column_hire_date/down.yaml deleted file mode 100644 index abfa592ca..000000000 --- a/hasura/migrations/1581357049913_alter_table_public_employees_add_column_hire_date/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" DROP COLUMN "hire_date"; - type: run_sql diff --git a/hasura/migrations/1581357049913_alter_table_public_employees_add_column_hire_date/up.yaml b/hasura/migrations/1581357049913_alter_table_public_employees_add_column_hire_date/up.yaml deleted file mode 100644 index 1005ffd15..000000000 --- a/hasura/migrations/1581357049913_alter_table_public_employees_add_column_hire_date/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" ADD COLUMN "hire_date" date NULL; - type: run_sql diff --git a/hasura/migrations/1581357057407_alter_table_public_employees_add_column_termination_date/down.yaml b/hasura/migrations/1581357057407_alter_table_public_employees_add_column_termination_date/down.yaml deleted file mode 100644 index d93fb1e04..000000000 --- a/hasura/migrations/1581357057407_alter_table_public_employees_add_column_termination_date/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" DROP COLUMN "termination_date"; - type: run_sql diff --git a/hasura/migrations/1581357057407_alter_table_public_employees_add_column_termination_date/up.yaml b/hasura/migrations/1581357057407_alter_table_public_employees_add_column_termination_date/up.yaml deleted file mode 100644 index 44c8b84a2..000000000 --- a/hasura/migrations/1581357057407_alter_table_public_employees_add_column_termination_date/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" ADD COLUMN "termination_date" date NULL; - type: run_sql diff --git a/hasura/migrations/1581357072694_alter_table_public_employees_add_column_base_rate/down.yaml b/hasura/migrations/1581357072694_alter_table_public_employees_add_column_base_rate/down.yaml deleted file mode 100644 index bbe0e2124..000000000 --- a/hasura/migrations/1581357072694_alter_table_public_employees_add_column_base_rate/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" DROP COLUMN "base_rate"; - type: run_sql diff --git a/hasura/migrations/1581357072694_alter_table_public_employees_add_column_base_rate/up.yaml b/hasura/migrations/1581357072694_alter_table_public_employees_add_column_base_rate/up.yaml deleted file mode 100644 index b0aee872f..000000000 --- a/hasura/migrations/1581357072694_alter_table_public_employees_add_column_base_rate/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" ADD COLUMN "base_rate" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1581357170091_alter_table_public_employees_add_column_cost_center/down.yaml b/hasura/migrations/1581357170091_alter_table_public_employees_add_column_cost_center/down.yaml deleted file mode 100644 index 01fa47327..000000000 --- a/hasura/migrations/1581357170091_alter_table_public_employees_add_column_cost_center/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" DROP COLUMN "cost_center"; - type: run_sql diff --git a/hasura/migrations/1581357170091_alter_table_public_employees_add_column_cost_center/up.yaml b/hasura/migrations/1581357170091_alter_table_public_employees_add_column_cost_center/up.yaml deleted file mode 100644 index 8067de290..000000000 --- a/hasura/migrations/1581357170091_alter_table_public_employees_add_column_cost_center/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" ADD COLUMN "cost_center" text NOT NULL; - type: run_sql diff --git a/hasura/migrations/1581357179730_alter_table_public_employees_alter_column_base_rate/down.yaml b/hasura/migrations/1581357179730_alter_table_public_employees_alter_column_base_rate/down.yaml deleted file mode 100644 index d510666fa..000000000 --- a/hasura/migrations/1581357179730_alter_table_public_employees_alter_column_base_rate/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - sql: ALTER TABLE ONLY "public"."employees" ALTER COLUMN "base_rate" SET DEFAULT - 0; - type: run_sql -- args: - sql: ALTER TABLE "public"."employees" ALTER COLUMN "base_rate" DROP NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."employees"."base_rate" IS E'null' - type: run_sql diff --git a/hasura/migrations/1581357179730_alter_table_public_employees_alter_column_base_rate/up.yaml b/hasura/migrations/1581357179730_alter_table_public_employees_alter_column_base_rate/up.yaml deleted file mode 100644 index 0fb29a6fe..000000000 --- a/hasura/migrations/1581357179730_alter_table_public_employees_alter_column_base_rate/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - sql: ALTER TABLE ONLY "public"."employees" ALTER COLUMN "base_rate" SET DEFAULT - 0; - type: run_sql -- args: - sql: ALTER TABLE "public"."employees" ALTER COLUMN "base_rate" SET NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."employees"."base_rate" IS E'' - type: run_sql diff --git a/hasura/migrations/1581357246577_alter_table_public_employees_add_column_pay_type/down.yaml b/hasura/migrations/1581357246577_alter_table_public_employees_add_column_pay_type/down.yaml deleted file mode 100644 index 185cc9a8b..000000000 --- a/hasura/migrations/1581357246577_alter_table_public_employees_add_column_pay_type/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" DROP COLUMN "pay_type"; - type: run_sql diff --git a/hasura/migrations/1581357246577_alter_table_public_employees_add_column_pay_type/up.yaml b/hasura/migrations/1581357246577_alter_table_public_employees_add_column_pay_type/up.yaml deleted file mode 100644 index 784b99b23..000000000 --- a/hasura/migrations/1581357246577_alter_table_public_employees_add_column_pay_type/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" ADD COLUMN "pay_type" integer NOT NULL DEFAULT - 0; - type: run_sql diff --git a/hasura/migrations/1581357269779_alter_table_public_employees_drop_column_pay_type/down.yaml b/hasura/migrations/1581357269779_alter_table_public_employees_drop_column_pay_type/down.yaml deleted file mode 100644 index c1bc66684..000000000 --- a/hasura/migrations/1581357269779_alter_table_public_employees_drop_column_pay_type/down.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" ADD COLUMN "pay_type" int4 - type: run_sql -- args: - sql: ALTER TABLE "public"."employees" ALTER COLUMN "pay_type" DROP NOT NULL - type: run_sql -- args: - sql: ALTER TABLE "public"."employees" ALTER COLUMN "pay_type" SET DEFAULT 0 - type: run_sql diff --git a/hasura/migrations/1581357269779_alter_table_public_employees_drop_column_pay_type/up.yaml b/hasura/migrations/1581357269779_alter_table_public_employees_drop_column_pay_type/up.yaml deleted file mode 100644 index bbbe455f0..000000000 --- a/hasura/migrations/1581357269779_alter_table_public_employees_drop_column_pay_type/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" DROP COLUMN "pay_type" CASCADE - type: run_sql diff --git a/hasura/migrations/1581357292599_alter_table_public_employees_add_column_flat_rate/down.yaml b/hasura/migrations/1581357292599_alter_table_public_employees_add_column_flat_rate/down.yaml deleted file mode 100644 index 11c760bb8..000000000 --- a/hasura/migrations/1581357292599_alter_table_public_employees_add_column_flat_rate/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" DROP COLUMN "flat_rate"; - type: run_sql diff --git a/hasura/migrations/1581357292599_alter_table_public_employees_add_column_flat_rate/up.yaml b/hasura/migrations/1581357292599_alter_table_public_employees_add_column_flat_rate/up.yaml deleted file mode 100644 index 1c81a7a12..000000000 --- a/hasura/migrations/1581357292599_alter_table_public_employees_add_column_flat_rate/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."employees" ADD COLUMN "flat_rate" boolean NOT NULL - DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1581357336859_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1581357336859_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index d366a9964..000000000 --- a/hasura/migrations/1581357336859_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - active - - employee_number - - first_name - - last_name - - created_at - - updated_at - - id - - shopid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: employees - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581357336859_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1581357336859_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 0165fb887..000000000 --- a/hasura/migrations/1581357336859_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - first_name - - last_name - - employee_number - - shopid - - active - - hire_date - - termination_date - - base_rate - - cost_center - - flat_rate - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: employees - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581357342062_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1581357342062_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index 976c2df48..000000000 --- a/hasura/migrations/1581357342062_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - employee_number - - first_name - - last_name - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: employees - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581357342062_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1581357342062_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 56719d451..000000000 --- a/hasura/migrations/1581357342062_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - flat_rate - - hire_date - - termination_date - - base_rate - - cost_center - - employee_number - - first_name - - last_name - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: employees - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581357346836_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1581357346836_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index 379b183ce..000000000 --- a/hasura/migrations/1581357346836_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - employee_number - - first_name - - last_name - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: employees - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581357346836_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1581357346836_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 491b1073b..000000000 --- a/hasura/migrations/1581357346836_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - flat_rate - - hire_date - - termination_date - - base_rate - - cost_center - - employee_number - - first_name - - last_name - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: employees - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581377678620_create_table_public_allocations/down.yaml b/hasura/migrations/1581377678620_create_table_public_allocations/down.yaml deleted file mode 100644 index f4b507c6a..000000000 --- a/hasura/migrations/1581377678620_create_table_public_allocations/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP TABLE "public"."allocations" - type: run_sql diff --git a/hasura/migrations/1581377678620_create_table_public_allocations/up.yaml b/hasura/migrations/1581377678620_create_table_public_allocations/up.yaml deleted file mode 100644 index 9d1eab3eb..000000000 --- a/hasura/migrations/1581377678620_create_table_public_allocations/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - sql: "CREATE TABLE \"public\".\"allocations\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"joblineid\" uuid NOT NULL, \"employeeid\" uuid NOT - NULL, \"hours\" numeric NOT NULL DEFAULT 0, PRIMARY KEY (\"id\") , FOREIGN KEY - (\"joblineid\") REFERENCES \"public\".\"joblines\"(\"id\") ON UPDATE cascade - ON DELETE cascade, FOREIGN KEY (\"employeeid\") REFERENCES \"public\".\"employees\"(\"id\") - ON UPDATE cascade ON DELETE cascade);\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_allocations_updated_at\"\nBEFORE - UPDATE ON \"public\".\"allocations\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_allocations_updated_at\" ON \"public\".\"allocations\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';\n" - type: run_sql -- args: - name: allocations - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1581377762602_track_all_relationships/down.yaml b/hasura/migrations/1581377762602_track_all_relationships/down.yaml deleted file mode 100644 index 861a6656b..000000000 --- a/hasura/migrations/1581377762602_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: employee - table: - name: allocations - schema: public - type: drop_relationship -- args: - relationship: jobline - table: - name: allocations - schema: public - type: drop_relationship -- args: - relationship: allocations - table: - name: employees - schema: public - type: drop_relationship -- args: - relationship: allocations - table: - name: joblines - schema: public - type: drop_relationship diff --git a/hasura/migrations/1581377762602_track_all_relationships/up.yaml b/hasura/migrations/1581377762602_track_all_relationships/up.yaml deleted file mode 100644 index 8db552fb1..000000000 --- a/hasura/migrations/1581377762602_track_all_relationships/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - name: employee - table: - name: allocations - schema: public - using: - foreign_key_constraint_on: employeeid - type: create_object_relationship -- args: - name: jobline - table: - name: allocations - schema: public - using: - foreign_key_constraint_on: joblineid - type: create_object_relationship -- args: - name: allocations - table: - name: employees - schema: public - using: - foreign_key_constraint_on: - column: employeeid - table: - name: allocations - schema: public - type: create_array_relationship -- args: - name: allocations - table: - name: joblines - schema: public - using: - foreign_key_constraint_on: - column: joblineid - table: - name: allocations - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1581377891854_update_permission_user_public_table_allocations/down.yaml b/hasura/migrations/1581377891854_update_permission_user_public_table_allocations/down.yaml deleted file mode 100644 index a2e882f60..000000000 --- a/hasura/migrations/1581377891854_update_permission_user_public_table_allocations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: allocations - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1581377891854_update_permission_user_public_table_allocations/up.yaml b/hasura/migrations/1581377891854_update_permission_user_public_table_allocations/up.yaml deleted file mode 100644 index e980d01b1..000000000 --- a/hasura/migrations/1581377891854_update_permission_user_public_table_allocations/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - jobline: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - hours - - created_at - - updated_at - - employeeid - - id - - joblineid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: allocations - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581377911733_update_permission_user_public_table_allocations/down.yaml b/hasura/migrations/1581377911733_update_permission_user_public_table_allocations/down.yaml deleted file mode 100644 index 8f88611f4..000000000 --- a/hasura/migrations/1581377911733_update_permission_user_public_table_allocations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: allocations - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1581377911733_update_permission_user_public_table_allocations/up.yaml b/hasura/migrations/1581377911733_update_permission_user_public_table_allocations/up.yaml deleted file mode 100644 index 4135b17a3..000000000 --- a/hasura/migrations/1581377911733_update_permission_user_public_table_allocations/up.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - hours - - created_at - - updated_at - - employeeid - - id - - joblineid - filter: - jobline: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: allocations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581377928527_update_permission_user_public_table_allocations/down.yaml b/hasura/migrations/1581377928527_update_permission_user_public_table_allocations/down.yaml deleted file mode 100644 index 86985cb7e..000000000 --- a/hasura/migrations/1581377928527_update_permission_user_public_table_allocations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: allocations - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1581377928527_update_permission_user_public_table_allocations/up.yaml b/hasura/migrations/1581377928527_update_permission_user_public_table_allocations/up.yaml deleted file mode 100644 index 0156cbb97..000000000 --- a/hasura/migrations/1581377928527_update_permission_user_public_table_allocations/up.yaml +++ /dev/null @@ -1,29 +0,0 @@ -- args: - permission: - columns: - - hours - - created_at - - updated_at - - employeeid - - id - - joblineid - filter: - jobline: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: allocations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581377943700_update_permission_user_public_table_allocations/down.yaml b/hasura/migrations/1581377943700_update_permission_user_public_table_allocations/down.yaml deleted file mode 100644 index 7027008cb..000000000 --- a/hasura/migrations/1581377943700_update_permission_user_public_table_allocations/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - role: user - table: - name: allocations - schema: public - type: drop_update_permission -- args: - role: user - table: - name: allocations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581377943700_update_permission_user_public_table_allocations/up.yaml b/hasura/migrations/1581377943700_update_permission_user_public_table_allocations/up.yaml deleted file mode 100644 index ed61f4bd9..000000000 --- a/hasura/migrations/1581377943700_update_permission_user_public_table_allocations/up.yaml +++ /dev/null @@ -1,29 +0,0 @@ -- args: - role: user - table: - name: allocations - schema: public - type: drop_update_permission -- args: - permission: - columns: [] - filter: - jobline: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: allocations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581378054962_update_permission_user_public_table_allocations/down.yaml b/hasura/migrations/1581378054962_update_permission_user_public_table_allocations/down.yaml deleted file mode 100644 index 99ab508be..000000000 --- a/hasura/migrations/1581378054962_update_permission_user_public_table_allocations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: allocations - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1581378054962_update_permission_user_public_table_allocations/up.yaml b/hasura/migrations/1581378054962_update_permission_user_public_table_allocations/up.yaml deleted file mode 100644 index 6f33b6d84..000000000 --- a/hasura/migrations/1581378054962_update_permission_user_public_table_allocations/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - permission: - filter: - jobline: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: allocations - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1581527154709_alter_table_public_jobs_add_column_cieca_stl/down.yaml b/hasura/migrations/1581527154709_alter_table_public_jobs_add_column_cieca_stl/down.yaml deleted file mode 100644 index 3c799734a..000000000 --- a/hasura/migrations/1581527154709_alter_table_public_jobs_add_column_cieca_stl/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "cieca_stl"; - type: run_sql diff --git a/hasura/migrations/1581527154709_alter_table_public_jobs_add_column_cieca_stl/up.yaml b/hasura/migrations/1581527154709_alter_table_public_jobs_add_column_cieca_stl/up.yaml deleted file mode 100644 index f7c4980a9..000000000 --- a/hasura/migrations/1581527154709_alter_table_public_jobs_add_column_cieca_stl/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "cieca_stl" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1581528231712_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1581528231712_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 488ed01e7..000000000 --- a/hasura/migrations/1581528231712_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,244 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - - tax_prethr - - tax_thramt - - tax_str_rt - - tax_lbr_rt - - adj_g_disc - - adj_towdis - - adj_strdis - - tax_predis - - rate_laa - - status - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581528231712_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1581528231712_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index df87d525d..000000000 --- a/hasura/migrations/1581528231712_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,245 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - - tax_prethr - - tax_thramt - - tax_str_rt - - tax_lbr_rt - - adj_g_disc - - adj_towdis - - adj_strdis - - tax_predis - - rate_laa - - status - - cieca_stl - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581528238817_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1581528238817_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index a6ed6c817..000000000 --- a/hasura/migrations/1581528238817_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,242 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581528238817_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1581528238817_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 877c16c63..000000000 --- a/hasura/migrations/1581528238817_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - cieca_stl - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581528245337_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1581528245337_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 973b2115c..000000000 --- a/hasura/migrations/1581528245337_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,244 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581528245337_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1581528245337_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index bbee90d97..000000000 --- a/hasura/migrations/1581528245337_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,245 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - cieca_stl - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581528309153_alter_table_public_jobs_add_column_g_bett_amt/down.yaml b/hasura/migrations/1581528309153_alter_table_public_jobs_add_column_g_bett_amt/down.yaml deleted file mode 100644 index d2ad3b020..000000000 --- a/hasura/migrations/1581528309153_alter_table_public_jobs_add_column_g_bett_amt/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "g_bett_amt"; - type: run_sql diff --git a/hasura/migrations/1581528309153_alter_table_public_jobs_add_column_g_bett_amt/up.yaml b/hasura/migrations/1581528309153_alter_table_public_jobs_add_column_g_bett_amt/up.yaml deleted file mode 100644 index 01322d071..000000000 --- a/hasura/migrations/1581528309153_alter_table_public_jobs_add_column_g_bett_amt/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "g_bett_amt" numeric NULL DEFAULT - 0; - type: run_sql diff --git a/hasura/migrations/1581528565073_alter_table_public_jobs_add_column_cieca_ttl/down.yaml b/hasura/migrations/1581528565073_alter_table_public_jobs_add_column_cieca_ttl/down.yaml deleted file mode 100644 index 20466624d..000000000 --- a/hasura/migrations/1581528565073_alter_table_public_jobs_add_column_cieca_ttl/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "cieca_ttl"; - type: run_sql diff --git a/hasura/migrations/1581528565073_alter_table_public_jobs_add_column_cieca_ttl/up.yaml b/hasura/migrations/1581528565073_alter_table_public_jobs_add_column_cieca_ttl/up.yaml deleted file mode 100644 index 4edc58e27..000000000 --- a/hasura/migrations/1581528565073_alter_table_public_jobs_add_column_cieca_ttl/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "cieca_ttl" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1581529463377_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1581529463377_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index df87d525d..000000000 --- a/hasura/migrations/1581529463377_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,245 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - deductible - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - - tax_prethr - - tax_thramt - - tax_str_rt - - tax_lbr_rt - - adj_g_disc - - adj_towdis - - adj_strdis - - tax_predis - - rate_laa - - status - - cieca_stl - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581529463377_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1581529463377_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index de3be1a36..000000000 --- a/hasura/migrations/1581529463377_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,246 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581529471244_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1581529471244_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 877c16c63..000000000 --- a/hasura/migrations/1581529471244_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,243 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - cieca_stl - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581529471244_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1581529471244_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 16d2b6fb7..000000000 --- a/hasura/migrations/1581529471244_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,244 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581529480083_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1581529480083_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index bbee90d97..000000000 --- a/hasura/migrations/1581529480083_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,245 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - cieca_stl - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - deductible - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581529480083_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1581529480083_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 90840138f..000000000 --- a/hasura/migrations/1581529480083_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,246 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581529492693_alter_table_public_jobs_drop_column_deductible/down.yaml b/hasura/migrations/1581529492693_alter_table_public_jobs_drop_column_deductible/down.yaml deleted file mode 100644 index 723e71438..000000000 --- a/hasura/migrations/1581529492693_alter_table_public_jobs_drop_column_deductible/down.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" ADD COLUMN "deductible" numeric - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "deductible" DROP NOT NULL - type: run_sql -- args: - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "deductible" SET DEFAULT 0 - type: run_sql diff --git a/hasura/migrations/1581529492693_alter_table_public_jobs_drop_column_deductible/up.yaml b/hasura/migrations/1581529492693_alter_table_public_jobs_drop_column_deductible/up.yaml deleted file mode 100644 index 396306235..000000000 --- a/hasura/migrations/1581529492693_alter_table_public_jobs_drop_column_deductible/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."jobs" DROP COLUMN "deductible" CASCADE - type: run_sql diff --git a/hasura/migrations/1581530616257_alter_table_public_appointments_add_column_isintake/down.yaml b/hasura/migrations/1581530616257_alter_table_public_appointments_add_column_isintake/down.yaml deleted file mode 100644 index e02cfe92d..000000000 --- a/hasura/migrations/1581530616257_alter_table_public_appointments_add_column_isintake/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" DROP COLUMN "isintake"; - type: run_sql diff --git a/hasura/migrations/1581530616257_alter_table_public_appointments_add_column_isintake/up.yaml b/hasura/migrations/1581530616257_alter_table_public_appointments_add_column_isintake/up.yaml deleted file mode 100644 index 62dbfbfac..000000000 --- a/hasura/migrations/1581530616257_alter_table_public_appointments_add_column_isintake/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" ADD COLUMN "isintake" boolean NOT NULL - DEFAULT true; - type: run_sql diff --git a/hasura/migrations/1581530623178_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581530623178_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 34cf4841b..000000000 --- a/hasura/migrations/1581530623178_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - arrived - - canceled - - created_at - - end - - start - - updated_at - - id - - jobid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581530623178_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581530623178_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 2d7c6806a..000000000 --- a/hasura/migrations/1581530623178_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - start - - end - - canceled - - arrived - - isintake - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581530628660_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581530628660_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 7c6811bf8..000000000 --- a/hasura/migrations/1581530628660_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - canceled - - created_at - - end - - start - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581530628660_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581530628660_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 9b8f53a5b..000000000 --- a/hasura/migrations/1581530628660_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - canceled - - isintake - - created_at - - end - - start - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581530632721_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581530632721_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 1644cd131..000000000 --- a/hasura/migrations/1581530632721_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - canceled - - created_at - - end - - start - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581530632721_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581530632721_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index bd68314eb..000000000 --- a/hasura/migrations/1581530632721_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - canceled - - isintake - - created_at - - end - - start - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581533010996_alter_table_public_appointments_add_column_bodyshopid/down.yaml b/hasura/migrations/1581533010996_alter_table_public_appointments_add_column_bodyshopid/down.yaml deleted file mode 100644 index a215f8049..000000000 --- a/hasura/migrations/1581533010996_alter_table_public_appointments_add_column_bodyshopid/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" DROP COLUMN "bodyshopid"; - type: run_sql diff --git a/hasura/migrations/1581533010996_alter_table_public_appointments_add_column_bodyshopid/up.yaml b/hasura/migrations/1581533010996_alter_table_public_appointments_add_column_bodyshopid/up.yaml deleted file mode 100644 index 3a62d703c..000000000 --- a/hasura/migrations/1581533010996_alter_table_public_appointments_add_column_bodyshopid/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" ADD COLUMN "bodyshopid" uuid NOT NULL; - type: run_sql diff --git a/hasura/migrations/1581533025791_set_fk_public_appointments_bodyshopid/down.yaml b/hasura/migrations/1581533025791_set_fk_public_appointments_bodyshopid/down.yaml deleted file mode 100644 index d2b5e6acf..000000000 --- a/hasura/migrations/1581533025791_set_fk_public_appointments_bodyshopid/down.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: "\n alter table \"public\".\"appointments\" drop constraint \"appointments_bodyshopid_fkey\"\n - \ " - type: run_sql diff --git a/hasura/migrations/1581533025791_set_fk_public_appointments_bodyshopid/up.yaml b/hasura/migrations/1581533025791_set_fk_public_appointments_bodyshopid/up.yaml deleted file mode 100644 index 1eddc1d61..000000000 --- a/hasura/migrations/1581533025791_set_fk_public_appointments_bodyshopid/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: "\n alter table \"public\".\"appointments\"\n add constraint - \"appointments_bodyshopid_fkey\"\n foreign key (\"bodyshopid\")\n - \ references \"public\".\"bodyshops\"\n (\"id\") on update - cascade on delete cascade;\n " - type: run_sql diff --git a/hasura/migrations/1581533035763_alter_table_public_appointments_alter_column_jobid/down.yaml b/hasura/migrations/1581533035763_alter_table_public_appointments_alter_column_jobid/down.yaml deleted file mode 100644 index 670a8a99f..000000000 --- a/hasura/migrations/1581533035763_alter_table_public_appointments_alter_column_jobid/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" ALTER COLUMN "jobid" SET NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."appointments"."jobid" IS E'null' - type: run_sql diff --git a/hasura/migrations/1581533035763_alter_table_public_appointments_alter_column_jobid/up.yaml b/hasura/migrations/1581533035763_alter_table_public_appointments_alter_column_jobid/up.yaml deleted file mode 100644 index 2b5118988..000000000 --- a/hasura/migrations/1581533035763_alter_table_public_appointments_alter_column_jobid/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" ALTER COLUMN "jobid" DROP NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."appointments"."jobid" IS E'' - type: run_sql diff --git a/hasura/migrations/1581533044908_track_all_relationships/down.yaml b/hasura/migrations/1581533044908_track_all_relationships/down.yaml deleted file mode 100644 index 9e9c5e1f4..000000000 --- a/hasura/migrations/1581533044908_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: bodyshop - table: - name: appointments - schema: public - type: drop_relationship -- args: - relationship: appointments - table: - name: bodyshops - schema: public - type: drop_relationship diff --git a/hasura/migrations/1581533044908_track_all_relationships/up.yaml b/hasura/migrations/1581533044908_track_all_relationships/up.yaml deleted file mode 100644 index 4489d60cd..000000000 --- a/hasura/migrations/1581533044908_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: bodyshop - table: - name: appointments - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship -- args: - name: appointments - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: appointments - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1581533078439_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581533078439_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 2d7c6806a..000000000 --- a/hasura/migrations/1581533078439_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - start - - end - - canceled - - arrived - - isintake - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581533078439_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581533078439_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 80392f155..000000000 --- a/hasura/migrations/1581533078439_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - start - - end - - canceled - - arrived - - isintake - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581533085254_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581533085254_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 80392f155..000000000 --- a/hasura/migrations/1581533085254_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - start - - end - - canceled - - arrived - - isintake - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581533085254_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581533085254_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index b6a96cd37..000000000 --- a/hasura/migrations/1581533085254_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - arrived - - canceled - - isintake - - created_at - - end - - start - - updated_at - - bodyshopid - - id - - jobid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581533092537_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581533092537_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 9b8f53a5b..000000000 --- a/hasura/migrations/1581533092537_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - canceled - - isintake - - created_at - - end - - start - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581533092537_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581533092537_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index ea389149c..000000000 --- a/hasura/migrations/1581533092537_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - canceled - - isintake - - created_at - - end - - start - - updated_at - - bodyshopid - - id - - jobid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581533100559_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581533100559_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index bd68314eb..000000000 --- a/hasura/migrations/1581533100559_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - canceled - - isintake - - created_at - - end - - start - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581533100559_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581533100559_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index eed14f2a7..000000000 --- a/hasura/migrations/1581533100559_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - canceled - - isintake - - created_at - - end - - start - - updated_at - - bodyshopid - - id - - jobid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581533106127_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581533106127_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index e40aecd89..000000000 --- a/hasura/migrations/1581533106127_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_delete_permission -- args: - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1581533106127_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581533106127_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index c70956bf0..000000000 --- a/hasura/migrations/1581533106127_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_delete_permission -- args: - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1581536337667_alter_table_public_appointments_add_column_title/down.yaml b/hasura/migrations/1581536337667_alter_table_public_appointments_add_column_title/down.yaml deleted file mode 100644 index 7dcc18afa..000000000 --- a/hasura/migrations/1581536337667_alter_table_public_appointments_add_column_title/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" DROP COLUMN "title"; - type: run_sql diff --git a/hasura/migrations/1581536337667_alter_table_public_appointments_add_column_title/up.yaml b/hasura/migrations/1581536337667_alter_table_public_appointments_add_column_title/up.yaml deleted file mode 100644 index e12992c92..000000000 --- a/hasura/migrations/1581536337667_alter_table_public_appointments_add_column_title/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."appointments" ADD COLUMN "title" text NULL; - type: run_sql diff --git a/hasura/migrations/1581536568049_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581536568049_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index b6a96cd37..000000000 --- a/hasura/migrations/1581536568049_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - arrived - - canceled - - isintake - - created_at - - end - - start - - updated_at - - bodyshopid - - id - - jobid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581536568049_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581536568049_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 116c67c2d..000000000 --- a/hasura/migrations/1581536568049_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - start - - end - - canceled - - arrived - - isintake - - bodyshopid - - title - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581536573614_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581536573614_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index ea389149c..000000000 --- a/hasura/migrations/1581536573614_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - canceled - - isintake - - created_at - - end - - start - - updated_at - - bodyshopid - - id - - jobid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581536573614_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581536573614_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 1c74631cf..000000000 --- a/hasura/migrations/1581536573614_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - canceled - - isintake - - title - - created_at - - end - - start - - updated_at - - bodyshopid - - id - - jobid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581536577315_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1581536577315_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index eed14f2a7..000000000 --- a/hasura/migrations/1581536577315_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - canceled - - isintake - - created_at - - end - - start - - updated_at - - bodyshopid - - id - - jobid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581536577315_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1581536577315_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 264408ea3..000000000 --- a/hasura/migrations/1581536577315_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - canceled - - isintake - - title - - created_at - - end - - start - - updated_at - - bodyshopid - - id - - jobid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581626650166_alter_table_public_vendors_add_column_cost_center/down.yaml b/hasura/migrations/1581626650166_alter_table_public_vendors_add_column_cost_center/down.yaml deleted file mode 100644 index 4dfd3d0c2..000000000 --- a/hasura/migrations/1581626650166_alter_table_public_vendors_add_column_cost_center/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vendors" DROP COLUMN "cost_center"; - type: run_sql diff --git a/hasura/migrations/1581626650166_alter_table_public_vendors_add_column_cost_center/up.yaml b/hasura/migrations/1581626650166_alter_table_public_vendors_add_column_cost_center/up.yaml deleted file mode 100644 index 820cc3acf..000000000 --- a/hasura/migrations/1581626650166_alter_table_public_vendors_add_column_cost_center/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vendors" ADD COLUMN "cost_center" text NOT NULL; - type: run_sql diff --git a/hasura/migrations/1581626683086_alter_table_public_vendors_add_column_favorite/down.yaml b/hasura/migrations/1581626683086_alter_table_public_vendors_add_column_favorite/down.yaml deleted file mode 100644 index 09a6eda1f..000000000 --- a/hasura/migrations/1581626683086_alter_table_public_vendors_add_column_favorite/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vendors" DROP COLUMN "favorite"; - type: run_sql diff --git a/hasura/migrations/1581626683086_alter_table_public_vendors_add_column_favorite/up.yaml b/hasura/migrations/1581626683086_alter_table_public_vendors_add_column_favorite/up.yaml deleted file mode 100644 index 768e11f52..000000000 --- a/hasura/migrations/1581626683086_alter_table_public_vendors_add_column_favorite/up.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vendors" ADD COLUMN "favorite" boolean NOT NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1581630600157_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581630600157_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 6551fb338..000000000 --- a/hasura/migrations/1581630600157_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - due_date - - discount - - prompt_discount - - city - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581630600157_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581630600157_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index d9f4efe71..000000000 --- a/hasura/migrations/1581630600157_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - bodyshopid - - name - - street1 - - street2 - - city - - state - - zip - - country - - email - - taxid - - discount - - prompt_discount - - due_date - - terms - - display_name - - cost_center - - favorite - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581630604954_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581630604954_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 942a75880..000000000 --- a/hasura/migrations/1581630604954_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - due_date - - discount - - prompt_discount - - city - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581630604954_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581630604954_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 48f129b36..000000000 --- a/hasura/migrations/1581630604954_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - favorite - - due_date - - discount - - prompt_discount - - city - - cost_center - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581630611638_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581630611638_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 069ef986f..000000000 --- a/hasura/migrations/1581630611638_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - due_date - - discount - - prompt_discount - - city - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581630611638_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581630611638_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 50a77d8ce..000000000 --- a/hasura/migrations/1581630611638_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - favorite - - due_date - - discount - - prompt_discount - - city - - cost_center - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581709302822_alter_table_public_vendors_alter_column_favorite/down.yaml b/hasura/migrations/1581709302822_alter_table_public_vendors_alter_column_favorite/down.yaml deleted file mode 100644 index 8a5cf3c4e..000000000 --- a/hasura/migrations/1581709302822_alter_table_public_vendors_alter_column_favorite/down.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "favorite" TYPE boolean; - type: run_sql -- args: - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "favorite" SET NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."vendors"."favorite" IS E'null' - type: run_sql diff --git a/hasura/migrations/1581709302822_alter_table_public_vendors_alter_column_favorite/up.yaml b/hasura/migrations/1581709302822_alter_table_public_vendors_alter_column_favorite/up.yaml deleted file mode 100644 index 906eaaded..000000000 --- a/hasura/migrations/1581709302822_alter_table_public_vendors_alter_column_favorite/up.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "favorite" TYPE bool; - type: run_sql -- args: - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "favorite" DROP NOT NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."vendors"."favorite" IS E'' - type: run_sql diff --git a/hasura/migrations/1581709971205_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581709971205_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index d9f4efe71..000000000 --- a/hasura/migrations/1581709971205_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - bodyshopid - - name - - street1 - - street2 - - city - - state - - zip - - country - - email - - taxid - - discount - - prompt_discount - - due_date - - terms - - display_name - - cost_center - - favorite - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581709971205_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581709971205_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 556607894..000000000 --- a/hasura/migrations/1581709971205_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581709974750_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581709974750_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 48f129b36..000000000 --- a/hasura/migrations/1581709974750_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - favorite - - due_date - - discount - - prompt_discount - - city - - cost_center - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581709974750_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581709974750_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index d83868cce..000000000 --- a/hasura/migrations/1581709974750_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581709977611_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581709977611_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 50a77d8ce..000000000 --- a/hasura/migrations/1581709977611_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - favorite - - due_date - - discount - - prompt_discount - - city - - cost_center - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581709977611_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581709977611_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index d202a5ce4..000000000 --- a/hasura/migrations/1581709977611_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581709987588_alter_table_public_vendors_drop_column_favorite/down.yaml b/hasura/migrations/1581709987588_alter_table_public_vendors_drop_column_favorite/down.yaml deleted file mode 100644 index b47bc0a1a..000000000 --- a/hasura/migrations/1581709987588_alter_table_public_vendors_drop_column_favorite/down.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vendors" ADD COLUMN "favorite" bool - type: run_sql -- args: - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "favorite" DROP NOT NULL - type: run_sql -- args: - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "favorite" SET DEFAULT false - type: run_sql diff --git a/hasura/migrations/1581709987588_alter_table_public_vendors_drop_column_favorite/up.yaml b/hasura/migrations/1581709987588_alter_table_public_vendors_drop_column_favorite/up.yaml deleted file mode 100644 index 3d0e308e7..000000000 --- a/hasura/migrations/1581709987588_alter_table_public_vendors_drop_column_favorite/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vendors" DROP COLUMN "favorite" CASCADE - type: run_sql diff --git a/hasura/migrations/1581710140783_alter_table_public_vendors_add_column_favorite/down.yaml b/hasura/migrations/1581710140783_alter_table_public_vendors_add_column_favorite/down.yaml deleted file mode 100644 index 09a6eda1f..000000000 --- a/hasura/migrations/1581710140783_alter_table_public_vendors_add_column_favorite/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vendors" DROP COLUMN "favorite"; - type: run_sql diff --git a/hasura/migrations/1581710140783_alter_table_public_vendors_add_column_favorite/up.yaml b/hasura/migrations/1581710140783_alter_table_public_vendors_add_column_favorite/up.yaml deleted file mode 100644 index d8f51f437..000000000 --- a/hasura/migrations/1581710140783_alter_table_public_vendors_add_column_favorite/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."vendors" ADD COLUMN "favorite" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1581710237559_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581710237559_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 556607894..000000000 --- a/hasura/migrations/1581710237559_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581710237559_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581710237559_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 03e3a58fd..000000000 --- a/hasura/migrations/1581710237559_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - due_date - - favorite - - discount - - prompt_discount - - city - - cost_center - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581710252861_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581710252861_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index d83868cce..000000000 --- a/hasura/migrations/1581710252861_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581710252861_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581710252861_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 326b62d07..000000000 --- a/hasura/migrations/1581710252861_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - due_date - - favorite - - discount - - prompt_discount - - city - - cost_center - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581710255645_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581710255645_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index d202a5ce4..000000000 --- a/hasura/migrations/1581710255645_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581710255645_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581710255645_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 323704732..000000000 --- a/hasura/migrations/1581710255645_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - due_date - - favorite - - discount - - prompt_discount - - city - - cost_center - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581710270792_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581710270792_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 556607894..000000000 --- a/hasura/migrations/1581710270792_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581710270792_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581710270792_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 03e3a58fd..000000000 --- a/hasura/migrations/1581710270792_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - due_date - - favorite - - discount - - prompt_discount - - city - - cost_center - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1581710283854_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581710283854_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index d83868cce..000000000 --- a/hasura/migrations/1581710283854_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581710283854_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581710283854_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 326b62d07..000000000 --- a/hasura/migrations/1581710283854_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - due_date - - favorite - - discount - - prompt_discount - - city - - cost_center - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1581710297623_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1581710297623_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index d202a5ce4..000000000 --- a/hasura/migrations/1581710297623_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1581710297623_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1581710297623_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 323704732..000000000 --- a/hasura/migrations/1581710297623_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - due_date - - favorite - - discount - - prompt_discount - - city - - cost_center - - country - - display_name - - email - - name - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1582043706822_alter_table_public_parts_order_alter_column_ordered_by_user_id/down.yaml b/hasura/migrations/1582043706822_alter_table_public_parts_order_alter_column_ordered_by_user_id/down.yaml deleted file mode 100644 index 993afdbab..000000000 --- a/hasura/migrations/1582043706822_alter_table_public_parts_order_alter_column_ordered_by_user_id/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."parts_order"."ordered_by_user_id" IS E'null' - type: run_sql -- args: - sql: alter table "public"."parts_order" rename column "user_email" to "ordered_by_user_id"; - type: run_sql diff --git a/hasura/migrations/1582043706822_alter_table_public_parts_order_alter_column_ordered_by_user_id/up.yaml b/hasura/migrations/1582043706822_alter_table_public_parts_order_alter_column_ordered_by_user_id/up.yaml deleted file mode 100644 index 56e2ab5fa..000000000 --- a/hasura/migrations/1582043706822_alter_table_public_parts_order_alter_column_ordered_by_user_id/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - sql: COMMENT ON COLUMN "public"."parts_order"."ordered_by_user_id" IS E'' - type: run_sql -- args: - sql: alter table "public"."parts_order" rename column "ordered_by_user_id" to - "user_email"; - type: run_sql diff --git a/hasura/migrations/1582045721224_update_permission_user_public_table_parts_order/down.yaml b/hasura/migrations/1582045721224_update_permission_user_public_table_parts_order/down.yaml deleted file mode 100644 index a28b92df7..000000000 --- a/hasura/migrations/1582045721224_update_permission_user_public_table_parts_order/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - deliver_by - - order_date - - user_email - - order_number - - status - - created_at - - updated_at - - id - - jobid - - vendorid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1582045721224_update_permission_user_public_table_parts_order/up.yaml b/hasura/migrations/1582045721224_update_permission_user_public_table_parts_order/up.yaml deleted file mode 100644 index 0e8a84cb5..000000000 --- a/hasura/migrations/1582045721224_update_permission_user_public_table_parts_order/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - status - - updated_at - - user_email - - vendorid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1582045728861_update_permission_user_public_table_parts_order/down.yaml b/hasura/migrations/1582045728861_update_permission_user_public_table_parts_order/down.yaml deleted file mode 100644 index ac3a2a0d6..000000000 --- a/hasura/migrations/1582045728861_update_permission_user_public_table_parts_order/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - deliver_by - - order_date - - user_email - - order_number - - status - - created_at - - updated_at - - id - - jobid - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order - schema: public - type: create_select_permission diff --git a/hasura/migrations/1582045728861_update_permission_user_public_table_parts_order/up.yaml b/hasura/migrations/1582045728861_update_permission_user_public_table_parts_order/up.yaml deleted file mode 100644 index 08e9c221f..000000000 --- a/hasura/migrations/1582045728861_update_permission_user_public_table_parts_order/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - status - - updated_at - - user_email - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order - schema: public - type: create_select_permission diff --git a/hasura/migrations/1582045737366_update_permission_user_public_table_parts_order/down.yaml b/hasura/migrations/1582045737366_update_permission_user_public_table_parts_order/down.yaml deleted file mode 100644 index f7b5ecfc5..000000000 --- a/hasura/migrations/1582045737366_update_permission_user_public_table_parts_order/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_update_permission -- args: - permission: - columns: - - deliver_by - - order_date - - user_email - - order_number - - status - - created_at - - updated_at - - id - - jobid - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order - schema: public - type: create_update_permission diff --git a/hasura/migrations/1582045737366_update_permission_user_public_table_parts_order/up.yaml b/hasura/migrations/1582045737366_update_permission_user_public_table_parts_order/up.yaml deleted file mode 100644 index b26b97e7b..000000000 --- a/hasura/migrations/1582045737366_update_permission_user_public_table_parts_order/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - status - - updated_at - - user_email - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order - schema: public - type: create_update_permission diff --git a/hasura/migrations/1582045749742_alter_table_public_parts_order_drop_column_order_number/down.yaml b/hasura/migrations/1582045749742_alter_table_public_parts_order_drop_column_order_number/down.yaml deleted file mode 100644 index b4ba58652..000000000 --- a/hasura/migrations/1582045749742_alter_table_public_parts_order_drop_column_order_number/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - sql: ALTER TABLE "public"."parts_order" ADD COLUMN "order_number" text - type: run_sql -- args: - sql: ALTER TABLE "public"."parts_order" ALTER COLUMN "order_number" DROP NOT NULL - type: run_sql diff --git a/hasura/migrations/1582045749742_alter_table_public_parts_order_drop_column_order_number/up.yaml b/hasura/migrations/1582045749742_alter_table_public_parts_order_drop_column_order_number/up.yaml deleted file mode 100644 index b9189571b..000000000 --- a/hasura/migrations/1582045749742_alter_table_public_parts_order_drop_column_order_number/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."parts_order" DROP COLUMN "order_number" CASCADE - type: run_sql diff --git a/hasura/migrations/1582045770954_alter_table_public_parts_order_add_column_order_number/down.yaml b/hasura/migrations/1582045770954_alter_table_public_parts_order_add_column_order_number/down.yaml deleted file mode 100644 index f8a565df2..000000000 --- a/hasura/migrations/1582045770954_alter_table_public_parts_order_add_column_order_number/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."parts_order" DROP COLUMN "order_number"; - type: run_sql diff --git a/hasura/migrations/1582045770954_alter_table_public_parts_order_add_column_order_number/up.yaml b/hasura/migrations/1582045770954_alter_table_public_parts_order_add_column_order_number/up.yaml deleted file mode 100644 index dd95799dd..000000000 --- a/hasura/migrations/1582045770954_alter_table_public_parts_order_add_column_order_number/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."parts_order" ADD COLUMN "order_number" serial NOT NULL; - type: run_sql diff --git a/hasura/migrations/1582045780806_update_permission_user_public_table_parts_order/down.yaml b/hasura/migrations/1582045780806_update_permission_user_public_table_parts_order/down.yaml deleted file mode 100644 index 0e8a84cb5..000000000 --- a/hasura/migrations/1582045780806_update_permission_user_public_table_parts_order/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - status - - updated_at - - user_email - - vendorid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1582045780806_update_permission_user_public_table_parts_order/up.yaml b/hasura/migrations/1582045780806_update_permission_user_public_table_parts_order/up.yaml deleted file mode 100644 index a4b6e5785..000000000 --- a/hasura/migrations/1582045780806_update_permission_user_public_table_parts_order/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - deliver_by - - order_date - - order_number - - status - - user_email - - created_at - - updated_at - - id - - jobid - - vendorid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1582045788161_update_permission_user_public_table_parts_order/down.yaml b/hasura/migrations/1582045788161_update_permission_user_public_table_parts_order/down.yaml deleted file mode 100644 index 08e9c221f..000000000 --- a/hasura/migrations/1582045788161_update_permission_user_public_table_parts_order/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - status - - updated_at - - user_email - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order - schema: public - type: create_select_permission diff --git a/hasura/migrations/1582045788161_update_permission_user_public_table_parts_order/up.yaml b/hasura/migrations/1582045788161_update_permission_user_public_table_parts_order/up.yaml deleted file mode 100644 index 046b734a6..000000000 --- a/hasura/migrations/1582045788161_update_permission_user_public_table_parts_order/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - deliver_by - - order_date - - order_number - - status - - user_email - - created_at - - updated_at - - id - - jobid - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order - schema: public - type: create_select_permission diff --git a/hasura/migrations/1582045795840_update_permission_user_public_table_parts_order/down.yaml b/hasura/migrations/1582045795840_update_permission_user_public_table_parts_order/down.yaml deleted file mode 100644 index b26b97e7b..000000000 --- a/hasura/migrations/1582045795840_update_permission_user_public_table_parts_order/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - status - - updated_at - - user_email - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order - schema: public - type: create_update_permission diff --git a/hasura/migrations/1582045795840_update_permission_user_public_table_parts_order/up.yaml b/hasura/migrations/1582045795840_update_permission_user_public_table_parts_order/up.yaml deleted file mode 100644 index e947dcbf3..000000000 --- a/hasura/migrations/1582045795840_update_permission_user_public_table_parts_order/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: parts_order - schema: public - type: drop_update_permission -- args: - permission: - columns: - - deliver_by - - order_date - - order_number - - status - - user_email - - created_at - - updated_at - - id - - jobid - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order - schema: public - type: create_update_permission diff --git a/hasura/migrations/1582046821601_rename_table_public_parts_order/down.yaml b/hasura/migrations/1582046821601_rename_table_public_parts_order/down.yaml deleted file mode 100644 index f514d42a4..000000000 --- a/hasura/migrations/1582046821601_rename_table_public_parts_order/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: alter table "public"."parts_orders" rename to "parts_order"; - type: run_sql diff --git a/hasura/migrations/1582046821601_rename_table_public_parts_order/up.yaml b/hasura/migrations/1582046821601_rename_table_public_parts_order/up.yaml deleted file mode 100644 index b53dd0ca0..000000000 --- a/hasura/migrations/1582046821601_rename_table_public_parts_order/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: alter table "public"."parts_order" rename to "parts_orders"; - type: run_sql diff --git a/hasura/migrations/1582047255981_alter_table_public_parts_order_lines_alter_column_line_desc/down.yaml b/hasura/migrations/1582047255981_alter_table_public_parts_order_lines_alter_column_line_desc/down.yaml deleted file mode 100644 index bbc7d5da9..000000000 --- a/hasura/migrations/1582047255981_alter_table_public_parts_order_lines_alter_column_line_desc/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - sql: ALTER TABLE "public"."parts_order_lines" ALTER COLUMN "line_desc" SET NOT - NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."parts_order_lines"."line_desc" IS E'null' - type: run_sql diff --git a/hasura/migrations/1582047255981_alter_table_public_parts_order_lines_alter_column_line_desc/up.yaml b/hasura/migrations/1582047255981_alter_table_public_parts_order_lines_alter_column_line_desc/up.yaml deleted file mode 100644 index 387d827fb..000000000 --- a/hasura/migrations/1582047255981_alter_table_public_parts_order_lines_alter_column_line_desc/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - sql: ALTER TABLE "public"."parts_order_lines" ALTER COLUMN "line_desc" DROP NOT - NULL; - type: run_sql -- args: - sql: COMMENT ON COLUMN "public"."parts_order_lines"."line_desc" IS E'' - type: run_sql diff --git a/hasura/migrations/1582047550643_alter_table_public_bodyshops_add_column_md_order_statuses/down.yaml b/hasura/migrations/1582047550643_alter_table_public_bodyshops_add_column_md_order_statuses/down.yaml deleted file mode 100644 index dcbbe420b..000000000 --- a/hasura/migrations/1582047550643_alter_table_public_bodyshops_add_column_md_order_statuses/down.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_order_statuses"; - type: run_sql diff --git a/hasura/migrations/1582047550643_alter_table_public_bodyshops_add_column_md_order_statuses/up.yaml b/hasura/migrations/1582047550643_alter_table_public_bodyshops_add_column_md_order_statuses/up.yaml deleted file mode 100644 index 138c6a957..000000000 --- a/hasura/migrations/1582047550643_alter_table_public_bodyshops_add_column_md_order_statuses/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_order_statuses" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1582047561858_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1582047561858_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 0575c9859..000000000 --- a/hasura/migrations/1582047561858_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_ro_statuses - - region_config - - shopname - - state - - state_tax_id - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1582047561858_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1582047561858_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index f9e53c75e..000000000 --- a/hasura/migrations/1582047561858_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - - md_ro_statuses - - region_config - - md_order_statuses - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1582047570605_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1582047570605_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 0c9193996..000000000 --- a/hasura/migrations/1582047570605_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - insurance_vendor_id - - logo_img_path - - md_ro_statuses - - shopname - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1582047570605_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1582047570605_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 455dce879..000000000 --- a/hasura/migrations/1582047570605_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - md_order_statuses - - md_ro_statuses - - address1 - - address2 - - city - - country - - email - - federal_tax_id - - insurance_vendor_id - - logo_img_path - - region_config - - shopname - - state - - state_tax_id - - zip_post - - created_at - - updated_at - - id - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1582151001705_drop_function_public_search_owners/down.yaml b/hasura/migrations/1582151001705_drop_function_public_search_owners/down.yaml deleted file mode 100644 index 7db16d05c..000000000 --- a/hasura/migrations/1582151001705_drop_function_public_search_owners/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - sql: "CREATE OR REPLACE FUNCTION public.search_owners(search text)\n RETURNS SETOF - owners\n LANGUAGE sql\n STABLE\nAS $function$\r\n SELECT *\r\n FROM owners\r\n - \ WHERE\r\n search <% (ownr_fn || ' ' || ownr_ln || ' ' || ownr_addr1 - \ || ' ' || ownr_city || ' ' || ownr_zip || ' ' || ownr_ea || ' ' || ownr_ph1 - || ' ' || ownr_ph2)\r\n ORDER BY\r\n similarity(search, (ownr_fn || - ' ' || ownr_ln || ' ' || ownr_addr1 || ' ' || ownr_city || ' ' || ownr_zip - \ || ' ' || ownr_ea || ' ' || ownr_ph1 || ' ' || ownr_ph2)) DESC\r\n LIMIT - 20;\r\n$function$\n" - type: run_sql diff --git a/hasura/migrations/1582151001705_drop_function_public_search_owners/up.yaml b/hasura/migrations/1582151001705_drop_function_public_search_owners/up.yaml deleted file mode 100644 index 8069a913e..000000000 --- a/hasura/migrations/1582151001705_drop_function_public_search_owners/up.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- args: - sql: DROP FUNCTION "public"."search_owners"("pg_catalog"."text") - type: run_sql diff --git a/hasura/migrations/1582151051596_run_sql_migration/down.yaml b/hasura/migrations/1582151051596_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1582151051596_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1582151051596_run_sql_migration/up.yaml b/hasura/migrations/1582151051596_run_sql_migration/up.yaml deleted file mode 100644 index 6660126ad..000000000 --- a/hasura/migrations/1582151051596_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - sql: | - drop index owner_gin_idx - type: run_sql diff --git a/hasura/migrations/1582151260638_run_sql_migration/down.yaml b/hasura/migrations/1582151260638_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1582151260638_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1582151260638_run_sql_migration/up.yaml b/hasura/migrations/1582151260638_run_sql_migration/up.yaml deleted file mode 100644 index 9601b443c..000000000 --- a/hasura/migrations/1582151260638_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - sql: "CREATE INDEX idx_owner_name ON owners\r\nUSING GIN ((ownr_fn || ' ' || ownr_ln) - gin_trgm_ops);" - type: run_sql diff --git a/hasura/migrations/1582151340160_run_sql_migration/down.yaml b/hasura/migrations/1582151340160_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1582151340160_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1582151340160_run_sql_migration/up.yaml b/hasura/migrations/1582151340160_run_sql_migration/up.yaml deleted file mode 100644 index 06bb94faf..000000000 --- a/hasura/migrations/1582151340160_run_sql_migration/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: true - sql: "CREATE FUNCTION search_owner(search text)\r\nRETURNS SETOF owners AS $$\r\n - \ SELECT *\r\n FROM owners\r\n WHERE\r\n search <% (ownr_fn || - ' ' || ownr_ln)\r\n ORDER BY\r\n similarity(search, (ownr_fn || ' ' - || ownr_ln)) DESC\r\n LIMIT 5;\r\n$$ LANGUAGE sql STABLE;" - type: run_sql -- args: - name: search_owner - schema: public - type: track_function diff --git a/hasura/migrations/1582224710136_alter_table_public_joblines_add_column_status/down.yaml b/hasura/migrations/1582224710136_alter_table_public_joblines_add_column_status/down.yaml deleted file mode 100644 index 2c4cd87c3..000000000 --- a/hasura/migrations/1582224710136_alter_table_public_joblines_add_column_status/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" DROP COLUMN "status"; - type: run_sql diff --git a/hasura/migrations/1582224710136_alter_table_public_joblines_add_column_status/up.yaml b/hasura/migrations/1582224710136_alter_table_public_joblines_add_column_status/up.yaml deleted file mode 100644 index 428023a4c..000000000 --- a/hasura/migrations/1582224710136_alter_table_public_joblines_add_column_status/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" ADD COLUMN "status" text NULL; - type: run_sql diff --git a/hasura/migrations/1582224725146_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1582224725146_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 3d0722715..000000000 --- a/hasura/migrations/1582224725146_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - unq_seq - - line_ind - - line_desc - - part_type - - oem_partno - - est_seq - - db_ref - - line_ref - - tax_part - - db_price - - act_price - - part_qty - - alt_partno - - mod_lbr_ty - - db_hrs - - mod_lb_hrs - - lbr_op - - lbr_amt - - glass_flag - - price_inc - - alt_part_i - - price_j - - cert_part - - alt_co_id - - alt_overrd - - alt_partm - - prt_dsmk_p - - prt_dsmk_m - - lbr_inc - - lbr_hrs_j - - lbr_typ_j - - lbr_op_j - - paint_stg - - paint_tone - - lbr_tax - - misc_amt - - misc_sublt - - misc_tax - - bett_type - - bett_pctg - - bett_amt - - bett_tax - - op_code_desc - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1582224725146_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1582224725146_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index df8b59464..000000000 --- a/hasura/migrations/1582224725146_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - unq_seq - - line_ind - - line_desc - - part_type - - oem_partno - - est_seq - - db_ref - - line_ref - - tax_part - - db_price - - act_price - - part_qty - - alt_partno - - mod_lbr_ty - - db_hrs - - mod_lb_hrs - - lbr_op - - lbr_amt - - glass_flag - - price_inc - - alt_part_i - - price_j - - cert_part - - alt_co_id - - alt_overrd - - alt_partm - - prt_dsmk_p - - prt_dsmk_m - - lbr_inc - - lbr_hrs_j - - lbr_typ_j - - lbr_op_j - - paint_stg - - paint_tone - - lbr_tax - - misc_amt - - misc_sublt - - misc_tax - - bett_type - - bett_pctg - - bett_amt - - bett_tax - - op_code_desc - - status - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1582224730652_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1582224730652_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 32c4e42a2..000000000 --- a/hasura/migrations/1582224730652_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,73 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - op_code_desc - - part_type - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1582224730652_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1582224730652_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index c639e07f8..000000000 --- a/hasura/migrations/1582224730652_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - op_code_desc - - part_type - - status - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1582224737046_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1582224737046_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index befcc2bb7..000000000 --- a/hasura/migrations/1582224737046_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - op_code_desc - - part_type - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1582224737046_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1582224737046_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index a04baffe3..000000000 --- a/hasura/migrations/1582224737046_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - op_code_desc - - part_type - - status - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1582587971597_create_table_public_invoices/down.yaml b/hasura/migrations/1582587971597_create_table_public_invoices/down.yaml deleted file mode 100644 index 78d023a7a..000000000 --- a/hasura/migrations/1582587971597_create_table_public_invoices/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."invoices"; - type: run_sql diff --git a/hasura/migrations/1582587971597_create_table_public_invoices/up.yaml b/hasura/migrations/1582587971597_create_table_public_invoices/up.yaml deleted file mode 100644 index 55008cf33..000000000 --- a/hasura/migrations/1582587971597_create_table_public_invoices/up.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"invoices\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"vendorid\" uuid NOT NULL, \"jobid\" uuid NOT NULL, - \"date\" date NOT NULL DEFAULT now(), \"due_date\" date, \"exported\" boolean - NOT NULL DEFAULT false, \"exported_at\" timestamptz, \"is_credit_memo\" boolean - NOT NULL DEFAULT false, \"total\" numeric NOT NULL DEFAULT 0, \"invoice_number\" - text NOT NULL, PRIMARY KEY (\"id\") , FOREIGN KEY (\"jobid\") REFERENCES \"public\".\"jobs\"(\"id\") - ON UPDATE restrict ON DELETE cascade, FOREIGN KEY (\"vendorid\") REFERENCES - \"public\".\"vendors\"(\"id\") ON UPDATE restrict ON DELETE restrict, UNIQUE - (\"jobid\"));\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_invoices_updated_at\"\nBEFORE - UPDATE ON \"public\".\"invoices\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_invoices_updated_at\" ON \"public\".\"invoices\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';" - type: run_sql -- args: - name: invoices - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1582587989233_track_all_relationships/down.yaml b/hasura/migrations/1582587989233_track_all_relationships/down.yaml deleted file mode 100644 index 3c27d1b54..000000000 --- a/hasura/migrations/1582587989233_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: job - table: - name: invoices - schema: public - type: drop_relationship -- args: - relationship: vendor - table: - name: invoices - schema: public - type: drop_relationship -- args: - relationship: invoice - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: invoices - table: - name: vendors - schema: public - type: drop_relationship diff --git a/hasura/migrations/1582587989233_track_all_relationships/up.yaml b/hasura/migrations/1582587989233_track_all_relationships/up.yaml deleted file mode 100644 index 266395edb..000000000 --- a/hasura/migrations/1582587989233_track_all_relationships/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - name: job - table: - name: invoices - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship -- args: - name: vendor - table: - name: invoices - schema: public - using: - foreign_key_constraint_on: vendorid - type: create_object_relationship -- args: - name: invoice - table: - name: jobs - schema: public - using: - manual_configuration: - column_mapping: - id: jobid - remote_table: - name: invoices - schema: public - type: create_object_relationship -- args: - name: invoices - table: - name: vendors - schema: public - using: - foreign_key_constraint_on: - column: vendorid - table: - name: invoices - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1582588052326_update_permission_user_public_table_invoices/down.yaml b/hasura/migrations/1582588052326_update_permission_user_public_table_invoices/down.yaml deleted file mode 100644 index dadeb8ce0..000000000 --- a/hasura/migrations/1582588052326_update_permission_user_public_table_invoices/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: invoices - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1582588052326_update_permission_user_public_table_invoices/up.yaml b/hasura/migrations/1582588052326_update_permission_user_public_table_invoices/up.yaml deleted file mode 100644 index 33a70c629..000000000 --- a/hasura/migrations/1582588052326_update_permission_user_public_table_invoices/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - vendorid - - jobid - - date - - due_date - - exported - - exported_at - - is_credit_memo - - total - - invoice_number - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoices - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1582588061657_update_permission_user_public_table_invoices/down.yaml b/hasura/migrations/1582588061657_update_permission_user_public_table_invoices/down.yaml deleted file mode 100644 index 9ce2f6b37..000000000 --- a/hasura/migrations/1582588061657_update_permission_user_public_table_invoices/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: invoices - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1582588061657_update_permission_user_public_table_invoices/up.yaml b/hasura/migrations/1582588061657_update_permission_user_public_table_invoices/up.yaml deleted file mode 100644 index 393b945c5..000000000 --- a/hasura/migrations/1582588061657_update_permission_user_public_table_invoices/up.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - exported - - is_credit_memo - - date - - due_date - - total - - invoice_number - - created_at - - exported_at - - updated_at - - id - - jobid - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: invoices - schema: public - type: create_select_permission diff --git a/hasura/migrations/1582588071369_update_permission_user_public_table_invoices/down.yaml b/hasura/migrations/1582588071369_update_permission_user_public_table_invoices/down.yaml deleted file mode 100644 index f221ea65f..000000000 --- a/hasura/migrations/1582588071369_update_permission_user_public_table_invoices/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: invoices - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1582588071369_update_permission_user_public_table_invoices/up.yaml b/hasura/migrations/1582588071369_update_permission_user_public_table_invoices/up.yaml deleted file mode 100644 index add508bd2..000000000 --- a/hasura/migrations/1582588071369_update_permission_user_public_table_invoices/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - permission: - columns: - - exported - - is_credit_memo - - date - - due_date - - total - - invoice_number - - created_at - - exported_at - - updated_at - - id - - jobid - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoices - schema: public - type: create_update_permission diff --git a/hasura/migrations/1582588465637_create_table_public_invoicelines/down.yaml b/hasura/migrations/1582588465637_create_table_public_invoicelines/down.yaml deleted file mode 100644 index 3c7b9280f..000000000 --- a/hasura/migrations/1582588465637_create_table_public_invoicelines/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."invoicelines"; - type: run_sql diff --git a/hasura/migrations/1582588465637_create_table_public_invoicelines/up.yaml b/hasura/migrations/1582588465637_create_table_public_invoicelines/up.yaml deleted file mode 100644 index cc2bed198..000000000 --- a/hasura/migrations/1582588465637_create_table_public_invoicelines/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"invoicelines\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"invoiceid\" uuid NOT NULL, \"line_desc\" text, \"actual_price\" - numeric NOT NULL DEFAULT 0, \"actual_cost\" numeric NOT NULL DEFAULT 0, \"cost_center\" - text NOT NULL, \"estlindid\" uuid, PRIMARY KEY (\"id\") , FOREIGN KEY (\"invoiceid\") - REFERENCES \"public\".\"invoices\"(\"id\") ON UPDATE restrict ON DELETE cascade);\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_invoicelines_updated_at\"\nBEFORE - UPDATE ON \"public\".\"invoicelines\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_invoicelines_updated_at\" ON \"public\".\"invoicelines\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';" - type: run_sql -- args: - name: invoicelines - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1582588478430_track_all_relationships/down.yaml b/hasura/migrations/1582588478430_track_all_relationships/down.yaml deleted file mode 100644 index b87036054..000000000 --- a/hasura/migrations/1582588478430_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: invoice - table: - name: invoicelines - schema: public - type: drop_relationship -- args: - relationship: invoicelines - table: - name: invoices - schema: public - type: drop_relationship diff --git a/hasura/migrations/1582588478430_track_all_relationships/up.yaml b/hasura/migrations/1582588478430_track_all_relationships/up.yaml deleted file mode 100644 index c2420cefb..000000000 --- a/hasura/migrations/1582588478430_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: invoice - table: - name: invoicelines - schema: public - using: - foreign_key_constraint_on: invoiceid - type: create_object_relationship -- args: - name: invoicelines - table: - name: invoices - schema: public - using: - foreign_key_constraint_on: - column: invoiceid - table: - name: invoicelines - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1582588520891_update_permission_user_public_table_invoicelines/down.yaml b/hasura/migrations/1582588520891_update_permission_user_public_table_invoicelines/down.yaml deleted file mode 100644 index 8c11bf4b6..000000000 --- a/hasura/migrations/1582588520891_update_permission_user_public_table_invoicelines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1582588520891_update_permission_user_public_table_invoicelines/up.yaml b/hasura/migrations/1582588520891_update_permission_user_public_table_invoicelines/up.yaml deleted file mode 100644 index e174b2077..000000000 --- a/hasura/migrations/1582588520891_update_permission_user_public_table_invoicelines/up.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - invoiceid - - line_desc - - actual_price - - actual_cost - - cost_center - - estlindid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoicelines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1582588525612_update_permission_user_public_table_invoicelines/down.yaml b/hasura/migrations/1582588525612_update_permission_user_public_table_invoicelines/down.yaml deleted file mode 100644 index cf0af8966..000000000 --- a/hasura/migrations/1582588525612_update_permission_user_public_table_invoicelines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1582588525612_update_permission_user_public_table_invoicelines/up.yaml b/hasura/migrations/1582588525612_update_permission_user_public_table_invoicelines/up.yaml deleted file mode 100644 index 14f825a78..000000000 --- a/hasura/migrations/1582588525612_update_permission_user_public_table_invoicelines/up.yaml +++ /dev/null @@ -1,31 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - actual_cost - - actual_price - - cost_center - - line_desc - - created_at - - updated_at - - estlindid - - id - - invoiceid - computed_fields: [] - filter: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: invoicelines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1582588530315_update_permission_user_public_table_invoicelines/down.yaml b/hasura/migrations/1582588530315_update_permission_user_public_table_invoicelines/down.yaml deleted file mode 100644 index 5df677663..000000000 --- a/hasura/migrations/1582588530315_update_permission_user_public_table_invoicelines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1582588530315_update_permission_user_public_table_invoicelines/up.yaml b/hasura/migrations/1582588530315_update_permission_user_public_table_invoicelines/up.yaml deleted file mode 100644 index 756147e8f..000000000 --- a/hasura/migrations/1582588530315_update_permission_user_public_table_invoicelines/up.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- args: - permission: - columns: - - actual_cost - - actual_price - - cost_center - - line_desc - - created_at - - updated_at - - estlindid - - id - - invoiceid - filter: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoicelines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1582588553560_update_permission_user_public_table_invoicelines/down.yaml b/hasura/migrations/1582588553560_update_permission_user_public_table_invoicelines/down.yaml deleted file mode 100644 index f5bb498ae..000000000 --- a/hasura/migrations/1582588553560_update_permission_user_public_table_invoicelines/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1582588553560_update_permission_user_public_table_invoicelines/up.yaml b/hasura/migrations/1582588553560_update_permission_user_public_table_invoicelines/up.yaml deleted file mode 100644 index 174807864..000000000 --- a/hasura/migrations/1582588553560_update_permission_user_public_table_invoicelines/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - permission: - filter: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: invoicelines - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1583197013415_alter_table_public_bodyshops_add_column_md_responsibility_centers/down.yaml b/hasura/migrations/1583197013415_alter_table_public_bodyshops_add_column_md_responsibility_centers/down.yaml deleted file mode 100644 index 0a8816270..000000000 --- a/hasura/migrations/1583197013415_alter_table_public_bodyshops_add_column_md_responsibility_centers/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_responsibility_centers"; - type: run_sql diff --git a/hasura/migrations/1583197013415_alter_table_public_bodyshops_add_column_md_responsibility_centers/up.yaml b/hasura/migrations/1583197013415_alter_table_public_bodyshops_add_column_md_responsibility_centers/up.yaml deleted file mode 100644 index b31a64458..000000000 --- a/hasura/migrations/1583197013415_alter_table_public_bodyshops_add_column_md_responsibility_centers/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_responsibility_centers" jsonb - NULL; - type: run_sql diff --git a/hasura/migrations/1583197023778_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1583197023778_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index f9e53c75e..000000000 --- a/hasura/migrations/1583197023778_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - - md_ro_statuses - - region_config - - md_order_statuses - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1583197023778_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1583197023778_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index c3ec5c35a..000000000 --- a/hasura/migrations/1583197023778_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - - md_ro_statuses - - region_config - - md_order_statuses - - md_responsibility_centers - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1583197028783_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1583197028783_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 455dce879..000000000 --- a/hasura/migrations/1583197028783_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - md_order_statuses - - md_ro_statuses - - address1 - - address2 - - city - - country - - email - - federal_tax_id - - insurance_vendor_id - - logo_img_path - - region_config - - shopname - - state - - state_tax_id - - zip_post - - created_at - - updated_at - - id - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1583197028783_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1583197028783_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 703a9ce7b..000000000 --- a/hasura/migrations/1583197028783_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - address1 - - address2 - - city - - country - - email - - federal_tax_id - - insurance_vendor_id - - logo_img_path - - region_config - - shopname - - state - - state_tax_id - - zip_post - - created_at - - updated_at - - id - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1583258675482_alter_table_public_invoicelines_alter_column_estlindid/down.yaml b/hasura/migrations/1583258675482_alter_table_public_invoicelines_alter_column_estlindid/down.yaml deleted file mode 100644 index f7a944ae4..000000000 --- a/hasura/migrations/1583258675482_alter_table_public_invoicelines_alter_column_estlindid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."invoicelines" rename column "joblineid" to "estlindid"; - type: run_sql diff --git a/hasura/migrations/1583258675482_alter_table_public_invoicelines_alter_column_estlindid/up.yaml b/hasura/migrations/1583258675482_alter_table_public_invoicelines_alter_column_estlindid/up.yaml deleted file mode 100644 index a1c922680..000000000 --- a/hasura/migrations/1583258675482_alter_table_public_invoicelines_alter_column_estlindid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."invoicelines" rename column "estlindid" to "joblineid"; - type: run_sql diff --git a/hasura/migrations/1583261795848_alter_table_public_invoices_drop_constraint_invoices_jobid_key/down.yaml b/hasura/migrations/1583261795848_alter_table_public_invoices_drop_constraint_invoices_jobid_key/down.yaml deleted file mode 100644 index 72b2ace18..000000000 --- a/hasura/migrations/1583261795848_alter_table_public_invoices_drop_constraint_invoices_jobid_key/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."invoices" add constraint "invoices_jobid_key" unique - ("jobid"); - type: run_sql diff --git a/hasura/migrations/1583261795848_alter_table_public_invoices_drop_constraint_invoices_jobid_key/up.yaml b/hasura/migrations/1583261795848_alter_table_public_invoices_drop_constraint_invoices_jobid_key/up.yaml deleted file mode 100644 index 7cde85cbe..000000000 --- a/hasura/migrations/1583261795848_alter_table_public_invoices_drop_constraint_invoices_jobid_key/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."invoices" drop constraint "invoices_jobid_key"; - type: run_sql diff --git a/hasura/migrations/1583795241718_run_sql_migration/down.yaml b/hasura/migrations/1583795241718_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1583795241718_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1583795241718_run_sql_migration/up.yaml b/hasura/migrations/1583795241718_run_sql_migration/up.yaml deleted file mode 100644 index f8bdf2c76..000000000 --- a/hasura/migrations/1583795241718_run_sql_migration/up.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE TABLE audit_trail (\r\n \r\n id serial PRIMARY - KEY, \r\n \r\n created timestamp DEFAULT now(),\r\n - \r\n schemaname text,\r\n \r\n tabname text,\r\n - \r\n operation text,\r\n recordid uuid,\r\n \r\n - \ -- who text DEFAULT current_user,\r\n \r\n new_val - \ json,\r\n \r\n old_val json,\r\n - \ useremail text,\r\n bodyshopid uuid\r\n \r\n);" - type: run_sql -- args: - name: audit_trail - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1583795259202_set_fk_public_audit_trail_useremail/down.yaml b/hasura/migrations/1583795259202_set_fk_public_audit_trail_useremail/down.yaml deleted file mode 100644 index 5126a58aa..000000000 --- a/hasura/migrations/1583795259202_set_fk_public_audit_trail_useremail/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."audit_trail" drop constraint "audit_trail_useremail_fkey"; - type: run_sql diff --git a/hasura/migrations/1583795259202_set_fk_public_audit_trail_useremail/up.yaml b/hasura/migrations/1583795259202_set_fk_public_audit_trail_useremail/up.yaml deleted file mode 100644 index f9377b0d6..000000000 --- a/hasura/migrations/1583795259202_set_fk_public_audit_trail_useremail/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."audit_trail" - add constraint "audit_trail_useremail_fkey" - foreign key ("useremail") - references "public"."users" - ("email") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1583795265403_set_fk_public_audit_trail_useremail/down.yaml b/hasura/migrations/1583795265403_set_fk_public_audit_trail_useremail/down.yaml deleted file mode 100644 index 7190d6942..000000000 --- a/hasura/migrations/1583795265403_set_fk_public_audit_trail_useremail/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."audit_trail" drop constraint "audit_trail_useremail_fkey", - add constraint "audit_trail_useremail_fkey" - foreign key ("useremail") - references "public"."users" - ("email") - on update restrict - on delete restrict; - type: run_sql diff --git a/hasura/migrations/1583795265403_set_fk_public_audit_trail_useremail/up.yaml b/hasura/migrations/1583795265403_set_fk_public_audit_trail_useremail/up.yaml deleted file mode 100644 index 77cd23149..000000000 --- a/hasura/migrations/1583795265403_set_fk_public_audit_trail_useremail/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."audit_trail" drop constraint "audit_trail_useremail_fkey", - add constraint "audit_trail_useremail_fkey" - foreign key ("useremail") - references "public"."users" - ("email") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1583795281646_set_fk_public_audit_trail_bodyshopid/down.yaml b/hasura/migrations/1583795281646_set_fk_public_audit_trail_bodyshopid/down.yaml deleted file mode 100644 index 28b059e7b..000000000 --- a/hasura/migrations/1583795281646_set_fk_public_audit_trail_bodyshopid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."audit_trail" drop constraint "audit_trail_bodyshopid_fkey"; - type: run_sql diff --git a/hasura/migrations/1583795281646_set_fk_public_audit_trail_bodyshopid/up.yaml b/hasura/migrations/1583795281646_set_fk_public_audit_trail_bodyshopid/up.yaml deleted file mode 100644 index 19c6197ee..000000000 --- a/hasura/migrations/1583795281646_set_fk_public_audit_trail_bodyshopid/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."audit_trail" - add constraint "audit_trail_bodyshopid_fkey" - foreign key ("bodyshopid") - references "public"."bodyshops" - ("id") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1583795349329_run_sql_migration/down.yaml b/hasura/migrations/1583795349329_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1583795349329_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1583795349329_run_sql_migration/up.yaml b/hasura/migrations/1583795349329_run_sql_migration/up.yaml deleted file mode 100644 index ea55a6583..000000000 --- a/hasura/migrations/1583795349329_run_sql_migration/up.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION json_diff(l JSONB, r JSONB) RETURNS JSONB AS\r\n$json_diff$\r\n - \ SELECT jsonb_object_agg(a.key, a.value) FROM\r\n ( SELECT key, value - FROM jsonb_each(l) ) a LEFT OUTER JOIN\r\n ( SELECT key, value FROM jsonb_each(r) - ) b ON a.key = b.key\r\n WHERE a.value != b.value OR b.key IS NULL;\r\n$json_diff$\r\n - \ LANGUAGE sql;" - type: run_sql diff --git a/hasura/migrations/1583795594722_run_sql_migration/down.yaml b/hasura/migrations/1583795594722_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1583795594722_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1583795594722_run_sql_migration/up.yaml b/hasura/migrations/1583795594722_run_sql_migration/up.yaml deleted file mode 100644 index b5587b2db..000000000 --- a/hasura/migrations/1583795594722_run_sql_migration/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION audit_trigger() RETURNS trigger AS $$\r\n \r\n - DECLARE\r\n shopid uuid ;\r\n email text;\r\n\r\n BEGIN\r\n \r\n select - b.id, u.email INTO shopid, email from users u join associations a on u.email - = a.useremail join bodyshops b on b.id = a.shopid where u.authid = current_setting('hasura.user', - 't')::jsonb->>'x-hasura-user-id' and a.active = true;\r\n\r\n IF - \ TG_OP = 'INSERT'\r\n \r\n THEN\r\n \r\n INSERT - INTO public.audit_trail (tabname, schemaname, operation, new_val, recordid, - bodyshopid, useremail)\r\n \r\n VALUES (TG_RELNAME, - TG_TABLE_SCHEMA, TG_OP, row_to_json(NEW), NEW.id, shopid, email);\r\n \r\n RETURN - NEW;\r\n \r\n ELSIF TG_OP = 'UPDATE'\r\n \r\n THEN\r\n - \r\n INSERT INTO public.audit_trail (tabname, schemaname, - operation, old_val, new_val, recordid, bodyshopid, useremail)\r\n \r\n VALUES - (TG_RELNAME, TG_TABLE_SCHEMA, TG_OP,\r\n \r\n json_diff(to_jsonb(OLD), - to_jsonb(NEW)) , json_diff(to_jsonb(NEW), to_jsonb(OLD)), OLD.id, shopid, - email);\r\n \r\n RETURN NEW;\r\n \r\n ELSIF - \ TG_OP = 'DELETE'\r\n \r\n THEN\r\n \r\n INSERT - INTO public.audit_trail (tabname, schemaname, operation, old_val, recordid, - bodyshopid, useremail)\r\n \r\n VALUES (TG_RELNAME, - TG_TABLE_SCHEMA, TG_OP, row_to_json(OLD), OLD.ID, shopid, email);\r\n \r\n - \ RETURN OLD;\r\n \r\n END IF;\r\n \r\n - \ END;\r\n \r\n$$ LANGUAGE 'plpgsql' SECURITY DEFINER;" - type: run_sql diff --git a/hasura/migrations/1583795623008_run_sql_migration/down.yaml b/hasura/migrations/1583795623008_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1583795623008_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1583795623008_run_sql_migration/up.yaml b/hasura/migrations/1583795623008_run_sql_migration/up.yaml deleted file mode 100644 index 9808a5e1e..000000000 --- a/hasura/migrations/1583795623008_run_sql_migration/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE TRIGGER audit_trigger_jobs AFTER INSERT OR UPDATE OR DELETE ON jobs\r\n - \ FOR EACH ROW EXECUTE PROCEDURE audit_trigger();" - type: run_sql diff --git a/hasura/migrations/1583795859969_track_all_relationships/down.yaml b/hasura/migrations/1583795859969_track_all_relationships/down.yaml deleted file mode 100644 index 22113aaa1..000000000 --- a/hasura/migrations/1583795859969_track_all_relationships/down.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - relationship: user - table: - name: audit_trail - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: audit_trail - schema: public - type: drop_relationship -- args: - relationship: audit_trails - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: invoices - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: audit_trails - table: - name: users - schema: public - type: drop_relationship diff --git a/hasura/migrations/1583795859969_track_all_relationships/up.yaml b/hasura/migrations/1583795859969_track_all_relationships/up.yaml deleted file mode 100644 index 4dd73c75d..000000000 --- a/hasura/migrations/1583795859969_track_all_relationships/up.yaml +++ /dev/null @@ -1,52 +0,0 @@ -- args: - name: user - table: - name: audit_trail - schema: public - using: - foreign_key_constraint_on: useremail - type: create_object_relationship -- args: - name: bodyshop - table: - name: audit_trail - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship -- args: - name: audit_trails - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: audit_trail - schema: public - type: create_array_relationship -- args: - name: invoices - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: invoices - schema: public - type: create_array_relationship -- args: - name: audit_trails - table: - name: users - schema: public - using: - foreign_key_constraint_on: - column: useremail - table: - name: audit_trail - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1583795952143_update_permission_user_public_table_audit_trail/down.yaml b/hasura/migrations/1583795952143_update_permission_user_public_table_audit_trail/down.yaml deleted file mode 100644 index a089342f6..000000000 --- a/hasura/migrations/1583795952143_update_permission_user_public_table_audit_trail/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: audit_trail - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1583795952143_update_permission_user_public_table_audit_trail/up.yaml b/hasura/migrations/1583795952143_update_permission_user_public_table_audit_trail/up.yaml deleted file mode 100644 index 98f8fe2c6..000000000 --- a/hasura/migrations/1583795952143_update_permission_user_public_table_audit_trail/up.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created - - schemaname - - tabname - - operation - - recordid - - new_val - - old_val - - useremail - - bodyshopid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: audit_trail - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1583795958753_update_permission_user_public_table_audit_trail/down.yaml b/hasura/migrations/1583795958753_update_permission_user_public_table_audit_trail/down.yaml deleted file mode 100644 index 08e9eb62d..000000000 --- a/hasura/migrations/1583795958753_update_permission_user_public_table_audit_trail/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: audit_trail - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1583795958753_update_permission_user_public_table_audit_trail/up.yaml b/hasura/migrations/1583795958753_update_permission_user_public_table_audit_trail/up.yaml deleted file mode 100644 index e36789f21..000000000 --- a/hasura/migrations/1583795958753_update_permission_user_public_table_audit_trail/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - id - - new_val - - old_val - - operation - - schemaname - - tabname - - useremail - - created - - bodyshopid - - recordid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: audit_trail - schema: public - type: create_select_permission diff --git a/hasura/migrations/1583795964235_delete_permission_user_public_table_audit_trail/down.yaml b/hasura/migrations/1583795964235_delete_permission_user_public_table_audit_trail/down.yaml deleted file mode 100644 index e98aa1da4..000000000 --- a/hasura/migrations/1583795964235_delete_permission_user_public_table_audit_trail/down.yaml +++ /dev/null @@ -1,31 +0,0 @@ -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created - - schemaname - - tabname - - operation - - recordid - - new_val - - old_val - - useremail - - bodyshopid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: audit_trail - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1583795964235_delete_permission_user_public_table_audit_trail/up.yaml b/hasura/migrations/1583795964235_delete_permission_user_public_table_audit_trail/up.yaml deleted file mode 100644 index a089342f6..000000000 --- a/hasura/migrations/1583795964235_delete_permission_user_public_table_audit_trail/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: audit_trail - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1584473267942_alter_table_public_documents_add_column_vendorid/down.yaml b/hasura/migrations/1584473267942_alter_table_public_documents_add_column_vendorid/down.yaml deleted file mode 100644 index 2681ad46f..000000000 --- a/hasura/migrations/1584473267942_alter_table_public_documents_add_column_vendorid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" DROP COLUMN "vendorid"; - type: run_sql diff --git a/hasura/migrations/1584473267942_alter_table_public_documents_add_column_vendorid/up.yaml b/hasura/migrations/1584473267942_alter_table_public_documents_add_column_vendorid/up.yaml deleted file mode 100644 index e6c1c4e06..000000000 --- a/hasura/migrations/1584473267942_alter_table_public_documents_add_column_vendorid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" ADD COLUMN "vendorid" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1584473287107_set_fk_public_documents_vendorid/down.yaml b/hasura/migrations/1584473287107_set_fk_public_documents_vendorid/down.yaml deleted file mode 100644 index 80ca6fb70..000000000 --- a/hasura/migrations/1584473287107_set_fk_public_documents_vendorid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."documents" drop constraint "documents_vendorid_fkey"; - type: run_sql diff --git a/hasura/migrations/1584473287107_set_fk_public_documents_vendorid/up.yaml b/hasura/migrations/1584473287107_set_fk_public_documents_vendorid/up.yaml deleted file mode 100644 index c0e884737..000000000 --- a/hasura/migrations/1584473287107_set_fk_public_documents_vendorid/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."documents" - add constraint "documents_vendorid_fkey" - foreign key ("vendorid") - references "public"."vendors" - ("id") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1584473300420_alter_table_public_documents_alter_column_vendorid/down.yaml b/hasura/migrations/1584473300420_alter_table_public_documents_alter_column_vendorid/down.yaml deleted file mode 100644 index 0e728bd0e..000000000 --- a/hasura/migrations/1584473300420_alter_table_public_documents_alter_column_vendorid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."documents" rename column "invoiceid" to "vendorid"; - type: run_sql diff --git a/hasura/migrations/1584473300420_alter_table_public_documents_alter_column_vendorid/up.yaml b/hasura/migrations/1584473300420_alter_table_public_documents_alter_column_vendorid/up.yaml deleted file mode 100644 index c3bd47a96..000000000 --- a/hasura/migrations/1584473300420_alter_table_public_documents_alter_column_vendorid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."documents" rename column "vendorid" to "invoiceid"; - type: run_sql diff --git a/hasura/migrations/1584473314865_set_fk_public_documents_invoiceid/down.yaml b/hasura/migrations/1584473314865_set_fk_public_documents_invoiceid/down.yaml deleted file mode 100644 index 15453f19e..000000000 --- a/hasura/migrations/1584473314865_set_fk_public_documents_invoiceid/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."documents" drop constraint "documents_invoiceid_fkey", - add constraint "documents_vendorid_fkey" - foreign key ("invoiceid") - references "public"."vendors" - ("id") - on update restrict - on delete restrict; - type: run_sql diff --git a/hasura/migrations/1584473314865_set_fk_public_documents_invoiceid/up.yaml b/hasura/migrations/1584473314865_set_fk_public_documents_invoiceid/up.yaml deleted file mode 100644 index bc09f6d6c..000000000 --- a/hasura/migrations/1584473314865_set_fk_public_documents_invoiceid/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."documents" drop constraint "documents_vendorid_fkey", - add constraint "documents_invoiceid_fkey" - foreign key ("invoiceid") - references "public"."invoices" - ("id") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1584473335595_track_all_relationships/down.yaml b/hasura/migrations/1584473335595_track_all_relationships/down.yaml deleted file mode 100644 index 19b217230..000000000 --- a/hasura/migrations/1584473335595_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: invoice - table: - name: documents - schema: public - type: drop_relationship -- args: - relationship: documents - table: - name: invoices - schema: public - type: drop_relationship diff --git a/hasura/migrations/1584473335595_track_all_relationships/up.yaml b/hasura/migrations/1584473335595_track_all_relationships/up.yaml deleted file mode 100644 index 7efda261a..000000000 --- a/hasura/migrations/1584473335595_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: invoice - table: - name: documents - schema: public - using: - foreign_key_constraint_on: invoiceid - type: create_object_relationship -- args: - name: documents - table: - name: invoices - schema: public - using: - foreign_key_constraint_on: - column: invoiceid - table: - name: documents - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1585153417017_create_table_public_conversations/down.yaml b/hasura/migrations/1585153417017_create_table_public_conversations/down.yaml deleted file mode 100644 index 7506556ae..000000000 --- a/hasura/migrations/1585153417017_create_table_public_conversations/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."conversations"; - type: run_sql diff --git a/hasura/migrations/1585153417017_create_table_public_conversations/up.yaml b/hasura/migrations/1585153417017_create_table_public_conversations/up.yaml deleted file mode 100644 index d47a32f63..000000000 --- a/hasura/migrations/1585153417017_create_table_public_conversations/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"conversations\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"bodyshopid\" uuid NOT NULL, \"phone_num\" text NOT - NULL, PRIMARY KEY (\"id\") , FOREIGN KEY (\"bodyshopid\") 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_conversations_updated_at\"\nBEFORE - UPDATE ON \"public\".\"conversations\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_conversations_updated_at\" ON \"public\".\"conversations\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';" - type: run_sql -- args: - name: conversations - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1585153424258_track_all_relationships/down.yaml b/hasura/migrations/1585153424258_track_all_relationships/down.yaml deleted file mode 100644 index 743e81ec2..000000000 --- a/hasura/migrations/1585153424258_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: conversations - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: conversations - schema: public - type: drop_relationship diff --git a/hasura/migrations/1585153424258_track_all_relationships/up.yaml b/hasura/migrations/1585153424258_track_all_relationships/up.yaml deleted file mode 100644 index 11d3f3218..000000000 --- a/hasura/migrations/1585153424258_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: conversations - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: conversations - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: conversations - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship diff --git a/hasura/migrations/1585153464139_update_permission_user_public_table_conversations/down.yaml b/hasura/migrations/1585153464139_update_permission_user_public_table_conversations/down.yaml deleted file mode 100644 index 67eac0759..000000000 --- a/hasura/migrations/1585153464139_update_permission_user_public_table_conversations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: conversations - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1585153464139_update_permission_user_public_table_conversations/up.yaml b/hasura/migrations/1585153464139_update_permission_user_public_table_conversations/up.yaml deleted file mode 100644 index 099167a94..000000000 --- a/hasura/migrations/1585153464139_update_permission_user_public_table_conversations/up.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - bodyshopid - - phone_num - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: conversations - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585153470172_update_permission_user_public_table_conversations/down.yaml b/hasura/migrations/1585153470172_update_permission_user_public_table_conversations/down.yaml deleted file mode 100644 index b20d844fd..000000000 --- a/hasura/migrations/1585153470172_update_permission_user_public_table_conversations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: conversations - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1585153470172_update_permission_user_public_table_conversations/up.yaml b/hasura/migrations/1585153470172_update_permission_user_public_table_conversations/up.yaml deleted file mode 100644 index a72ab0fcd..000000000 --- a/hasura/migrations/1585153470172_update_permission_user_public_table_conversations/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - phone_num - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: conversations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585153476909_update_permission_user_public_table_conversations/down.yaml b/hasura/migrations/1585153476909_update_permission_user_public_table_conversations/down.yaml deleted file mode 100644 index 18af93644..000000000 --- a/hasura/migrations/1585153476909_update_permission_user_public_table_conversations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: conversations - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1585153476909_update_permission_user_public_table_conversations/up.yaml b/hasura/migrations/1585153476909_update_permission_user_public_table_conversations/up.yaml deleted file mode 100644 index 117094ed9..000000000 --- a/hasura/migrations/1585153476909_update_permission_user_public_table_conversations/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - permission: - columns: - - phone_num - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: conversations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585153777706_create_table_public_messages/down.yaml b/hasura/migrations/1585153777706_create_table_public_messages/down.yaml deleted file mode 100644 index 44cc529da..000000000 --- a/hasura/migrations/1585153777706_create_table_public_messages/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."messages"; - type: run_sql diff --git a/hasura/migrations/1585153777706_create_table_public_messages/up.yaml b/hasura/migrations/1585153777706_create_table_public_messages/up.yaml deleted file mode 100644 index 90098df5e..000000000 --- a/hasura/migrations/1585153777706_create_table_public_messages/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"messages\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"msid\" text NOT NULL, \"conversationid\" uuid NOT - NULL, \"text\" text, \"image\" boolean NOT NULL DEFAULT false, \"image_path\" - text, \"sent\" boolean NOT NULL DEFAULT false, \"delivered\" boolean NOT NULL - DEFAULT false, PRIMARY KEY (\"id\") , FOREIGN KEY (\"conversationid\") REFERENCES - \"public\".\"conversations\"(\"id\") ON UPDATE restrict ON DELETE restrict, - UNIQUE (\"msid\"));\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_messages_updated_at\"\nBEFORE - UPDATE ON \"public\".\"messages\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_messages_updated_at\" ON \"public\".\"messages\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';" - type: run_sql -- args: - name: messages - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1585153792735_track_all_relationships/down.yaml b/hasura/migrations/1585153792735_track_all_relationships/down.yaml deleted file mode 100644 index 7cd99e818..000000000 --- a/hasura/migrations/1585153792735_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: messages - table: - name: conversations - schema: public - type: drop_relationship -- args: - relationship: conversation - table: - name: messages - schema: public - type: drop_relationship diff --git a/hasura/migrations/1585153792735_track_all_relationships/up.yaml b/hasura/migrations/1585153792735_track_all_relationships/up.yaml deleted file mode 100644 index 64e797095..000000000 --- a/hasura/migrations/1585153792735_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: messages - table: - name: conversations - schema: public - using: - foreign_key_constraint_on: - column: conversationid - table: - name: messages - schema: public - type: create_array_relationship -- args: - name: conversation - table: - name: messages - schema: public - using: - foreign_key_constraint_on: conversationid - type: create_object_relationship diff --git a/hasura/migrations/1585153822636_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585153822636_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 0755f37de..000000000 --- a/hasura/migrations/1585153822636_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1585153822636_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585153822636_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 88977313f..000000000 --- a/hasura/migrations/1585153822636_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - msid - - conversationid - - text - - image - - image_path - - sent - - delivered - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585153829941_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585153829941_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 2c2c6944f..000000000 --- a/hasura/migrations/1585153829941_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1585153829941_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585153829941_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 02a52dae6..000000000 --- a/hasura/migrations/1585153829941_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,31 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - delivered - - image - - sent - - image_path - - msid - - text - - created_at - - updated_at - - conversationid - - id - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585153837554_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585153837554_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 2a52a80ae..000000000 --- a/hasura/migrations/1585153837554_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1585153837554_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585153837554_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 6bfebbe3d..000000000 --- a/hasura/migrations/1585153837554_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- args: - permission: - columns: - - delivered - - image - - sent - - image_path - - msid - - text - - created_at - - updated_at - - conversationid - - id - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585153843391_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585153843391_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index c7b5b652b..000000000 --- a/hasura/migrations/1585153843391_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1585153843391_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585153843391_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 14905b779..000000000 --- a/hasura/migrations/1585153843391_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1585153926580_create_table_public_job_conversations/down.yaml b/hasura/migrations/1585153926580_create_table_public_job_conversations/down.yaml deleted file mode 100644 index adb6db985..000000000 --- a/hasura/migrations/1585153926580_create_table_public_job_conversations/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."job_conversations"; - type: run_sql diff --git a/hasura/migrations/1585153926580_create_table_public_job_conversations/up.yaml b/hasura/migrations/1585153926580_create_table_public_job_conversations/up.yaml deleted file mode 100644 index 1eb5ad992..000000000 --- a/hasura/migrations/1585153926580_create_table_public_job_conversations/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE TABLE "public"."job_conversations"("jobid" uuid NOT NULL, "conversationid" - uuid NOT NULL, PRIMARY KEY ("jobid","conversationid") , FOREIGN KEY ("jobid") - REFERENCES "public"."jobs"("id") ON UPDATE restrict ON DELETE restrict, FOREIGN - KEY ("conversationid") REFERENCES "public"."conversations"("id") ON UPDATE restrict - ON DELETE restrict); - type: run_sql -- args: - name: job_conversations - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1585153936524_track_all_relationships/down.yaml b/hasura/migrations/1585153936524_track_all_relationships/down.yaml deleted file mode 100644 index 18e9769cb..000000000 --- a/hasura/migrations/1585153936524_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: job_conversations - table: - name: conversations - schema: public - type: drop_relationship -- args: - relationship: job - table: - name: job_conversations - schema: public - type: drop_relationship -- args: - relationship: conversation - table: - name: job_conversations - schema: public - type: drop_relationship -- args: - relationship: job_conversations - table: - name: jobs - schema: public - type: drop_relationship diff --git a/hasura/migrations/1585153936524_track_all_relationships/up.yaml b/hasura/migrations/1585153936524_track_all_relationships/up.yaml deleted file mode 100644 index ddad5f3e9..000000000 --- a/hasura/migrations/1585153936524_track_all_relationships/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - name: job_conversations - table: - name: conversations - schema: public - using: - foreign_key_constraint_on: - column: conversationid - table: - name: job_conversations - schema: public - type: create_array_relationship -- args: - name: job - table: - name: job_conversations - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship -- args: - name: conversation - table: - name: job_conversations - schema: public - using: - foreign_key_constraint_on: conversationid - type: create_object_relationship -- args: - name: job_conversations - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: job_conversations - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1585154004360_update_permission_user_public_table_job_conversations/down.yaml b/hasura/migrations/1585154004360_update_permission_user_public_table_job_conversations/down.yaml deleted file mode 100644 index 3c0c6b457..000000000 --- a/hasura/migrations/1585154004360_update_permission_user_public_table_job_conversations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_conversations - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1585154004360_update_permission_user_public_table_job_conversations/up.yaml b/hasura/migrations/1585154004360_update_permission_user_public_table_job_conversations/up.yaml deleted file mode 100644 index 5ae11e78e..000000000 --- a/hasura/migrations/1585154004360_update_permission_user_public_table_job_conversations/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - jobid - - conversationid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: job_conversations - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585154010719_update_permission_user_public_table_job_conversations/down.yaml b/hasura/migrations/1585154010719_update_permission_user_public_table_job_conversations/down.yaml deleted file mode 100644 index 507bcf27d..000000000 --- a/hasura/migrations/1585154010719_update_permission_user_public_table_job_conversations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_conversations - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1585154010719_update_permission_user_public_table_job_conversations/up.yaml b/hasura/migrations/1585154010719_update_permission_user_public_table_job_conversations/up.yaml deleted file mode 100644 index 423d9fc3c..000000000 --- a/hasura/migrations/1585154010719_update_permission_user_public_table_job_conversations/up.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - conversationid - - jobid - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: job_conversations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585154018518_update_permission_user_public_table_job_conversations/down.yaml b/hasura/migrations/1585154018518_update_permission_user_public_table_job_conversations/down.yaml deleted file mode 100644 index 28aa3576d..000000000 --- a/hasura/migrations/1585154018518_update_permission_user_public_table_job_conversations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_conversations - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1585154018518_update_permission_user_public_table_job_conversations/up.yaml b/hasura/migrations/1585154018518_update_permission_user_public_table_job_conversations/up.yaml deleted file mode 100644 index 82df37ce8..000000000 --- a/hasura/migrations/1585154018518_update_permission_user_public_table_job_conversations/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - permission: - columns: - - conversationid - - jobid - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: job_conversations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585154023698_update_permission_user_public_table_job_conversations/down.yaml b/hasura/migrations/1585154023698_update_permission_user_public_table_job_conversations/down.yaml deleted file mode 100644 index a6f9b0b8e..000000000 --- a/hasura/migrations/1585154023698_update_permission_user_public_table_job_conversations/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: job_conversations - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1585154023698_update_permission_user_public_table_job_conversations/up.yaml b/hasura/migrations/1585154023698_update_permission_user_public_table_job_conversations/up.yaml deleted file mode 100644 index a44463301..000000000 --- a/hasura/migrations/1585154023698_update_permission_user_public_table_job_conversations/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: job_conversations - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1585160133244_alter_table_public_messages_add_column_isoutbound/down.yaml b/hasura/migrations/1585160133244_alter_table_public_messages_add_column_isoutbound/down.yaml deleted file mode 100644 index 8d67ac880..000000000 --- a/hasura/migrations/1585160133244_alter_table_public_messages_add_column_isoutbound/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" DROP COLUMN "isoutbound"; - type: run_sql diff --git a/hasura/migrations/1585160133244_alter_table_public_messages_add_column_isoutbound/up.yaml b/hasura/migrations/1585160133244_alter_table_public_messages_add_column_isoutbound/up.yaml deleted file mode 100644 index c1f7bb533..000000000 --- a/hasura/migrations/1585160133244_alter_table_public_messages_add_column_isoutbound/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ADD COLUMN "isoutbound" boolean NOT NULL - DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1585160140032_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585160140032_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index c3f1ece2c..000000000 --- a/hasura/migrations/1585160140032_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - msid - - conversationid - - text - - image - - image_path - - sent - - delivered - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585160140032_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585160140032_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 3d5f212d0..000000000 --- a/hasura/migrations/1585160140032_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - msid - - conversationid - - text - - image - - image_path - - sent - - delivered - - isoutbound - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585160145919_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585160145919_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 829390ace..000000000 --- a/hasura/migrations/1585160145919_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - delivered - - image - - sent - - image_path - - msid - - text - - created_at - - updated_at - - conversationid - - id - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585160145919_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585160145919_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 24e4f5a60..000000000 --- a/hasura/migrations/1585160145919_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - delivered - - image - - isoutbound - - sent - - image_path - - msid - - text - - created_at - - updated_at - - conversationid - - id - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585160150937_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585160150937_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 31797c48f..000000000 --- a/hasura/migrations/1585160150937_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - delivered - - image - - sent - - image_path - - msid - - text - - created_at - - updated_at - - conversationid - - id - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585160150937_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585160150937_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 29938a450..000000000 --- a/hasura/migrations/1585160150937_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - delivered - - image - - isoutbound - - sent - - image_path - - msid - - text - - created_at - - updated_at - - conversationid - - id - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585160687805_alter_table_public_bodyshops_add_column_messagingservicesid/down.yaml b/hasura/migrations/1585160687805_alter_table_public_bodyshops_add_column_messagingservicesid/down.yaml deleted file mode 100644 index 588c83295..000000000 --- a/hasura/migrations/1585160687805_alter_table_public_bodyshops_add_column_messagingservicesid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "messagingservicesid"; - type: run_sql diff --git a/hasura/migrations/1585160687805_alter_table_public_bodyshops_add_column_messagingservicesid/up.yaml b/hasura/migrations/1585160687805_alter_table_public_bodyshops_add_column_messagingservicesid/up.yaml deleted file mode 100644 index a6cfbbc1d..000000000 --- a/hasura/migrations/1585160687805_alter_table_public_bodyshops_add_column_messagingservicesid/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "messagingservicesid" text NULL - UNIQUE; - type: run_sql diff --git a/hasura/migrations/1585176085942_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1585176085942_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index c3ec5c35a..000000000 --- a/hasura/migrations/1585176085942_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - - md_ro_statuses - - region_config - - md_order_statuses - - md_responsibility_centers - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585176085942_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1585176085942_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 825ae0c0c..000000000 --- a/hasura/migrations/1585176085942_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - - md_ro_statuses - - region_config - - md_order_statuses - - md_responsibility_centers - - messagingservicesid - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585179467940_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585179467940_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 3d5f212d0..000000000 --- a/hasura/migrations/1585179467940_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - msid - - conversationid - - text - - image - - image_path - - sent - - delivered - - isoutbound - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585179467940_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585179467940_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 2416c2c1a..000000000 --- a/hasura/migrations/1585179467940_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - text - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585179475576_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585179475576_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 24e4f5a60..000000000 --- a/hasura/migrations/1585179475576_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - delivered - - image - - isoutbound - - sent - - image_path - - msid - - text - - created_at - - updated_at - - conversationid - - id - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585179475576_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585179475576_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 30cabb081..000000000 --- a/hasura/migrations/1585179475576_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - text - - updated_at - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585179482717_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585179482717_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 29938a450..000000000 --- a/hasura/migrations/1585179482717_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - delivered - - image - - isoutbound - - sent - - image_path - - msid - - text - - created_at - - updated_at - - conversationid - - id - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585179482717_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585179482717_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index cec8b33a7..000000000 --- a/hasura/migrations/1585179482717_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - text - - updated_at - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585179490323_alter_table_public_messages_drop_column_delivered/down.yaml b/hasura/migrations/1585179490323_alter_table_public_messages_drop_column_delivered/down.yaml deleted file mode 100644 index 23f6819fa..000000000 --- a/hasura/migrations/1585179490323_alter_table_public_messages_drop_column_delivered/down.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ADD COLUMN "delivered" bool; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ALTER COLUMN "delivered" DROP NOT NULL; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ALTER COLUMN "delivered" SET DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1585179490323_alter_table_public_messages_drop_column_delivered/up.yaml b/hasura/migrations/1585179490323_alter_table_public_messages_drop_column_delivered/up.yaml deleted file mode 100644 index 051f0ff76..000000000 --- a/hasura/migrations/1585179490323_alter_table_public_messages_drop_column_delivered/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" DROP COLUMN "delivered" CASCADE; - type: run_sql diff --git a/hasura/migrations/1585179498362_alter_table_public_messages_drop_column_sent/down.yaml b/hasura/migrations/1585179498362_alter_table_public_messages_drop_column_sent/down.yaml deleted file mode 100644 index 3beef333b..000000000 --- a/hasura/migrations/1585179498362_alter_table_public_messages_drop_column_sent/down.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ADD COLUMN "sent" bool; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ALTER COLUMN "sent" DROP NOT NULL; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ALTER COLUMN "sent" SET DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1585179498362_alter_table_public_messages_drop_column_sent/up.yaml b/hasura/migrations/1585179498362_alter_table_public_messages_drop_column_sent/up.yaml deleted file mode 100644 index e2549f514..000000000 --- a/hasura/migrations/1585179498362_alter_table_public_messages_drop_column_sent/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" DROP COLUMN "sent" CASCADE; - type: run_sql diff --git a/hasura/migrations/1585179618401_alter_table_public_messages_add_column_status/down.yaml b/hasura/migrations/1585179618401_alter_table_public_messages_add_column_status/down.yaml deleted file mode 100644 index 2d3eb14b7..000000000 --- a/hasura/migrations/1585179618401_alter_table_public_messages_add_column_status/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" DROP COLUMN "status"; - type: run_sql diff --git a/hasura/migrations/1585179618401_alter_table_public_messages_add_column_status/up.yaml b/hasura/migrations/1585179618401_alter_table_public_messages_add_column_status/up.yaml deleted file mode 100644 index 95d0f93bb..000000000 --- a/hasura/migrations/1585179618401_alter_table_public_messages_add_column_status/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ADD COLUMN "status" text NOT NULL DEFAULT - 'posted'; - type: run_sql diff --git a/hasura/migrations/1585179627356_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585179627356_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 2416c2c1a..000000000 --- a/hasura/migrations/1585179627356_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - text - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585179627356_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585179627356_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 1d1eaa297..000000000 --- a/hasura/migrations/1585179627356_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - msid - - conversationid - - text - - image - - image_path - - isoutbound - - status - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585179632891_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585179632891_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 30cabb081..000000000 --- a/hasura/migrations/1585179632891_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - text - - updated_at - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585179632891_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585179632891_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index cfc1aa1a4..000000000 --- a/hasura/migrations/1585179632891_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - status - - text - - updated_at - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585179638124_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585179638124_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index cec8b33a7..000000000 --- a/hasura/migrations/1585179638124_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - text - - updated_at - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585179638124_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585179638124_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 11ebdccfd..000000000 --- a/hasura/migrations/1585179638124_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - image - - isoutbound - - image_path - - msid - - status - - text - - created_at - - updated_at - - conversationid - - id - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585181593575_alter_table_public_messages_add_column_read/down.yaml b/hasura/migrations/1585181593575_alter_table_public_messages_add_column_read/down.yaml deleted file mode 100644 index 338899b1f..000000000 --- a/hasura/migrations/1585181593575_alter_table_public_messages_add_column_read/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" DROP COLUMN "read"; - type: run_sql diff --git a/hasura/migrations/1585181593575_alter_table_public_messages_add_column_read/up.yaml b/hasura/migrations/1585181593575_alter_table_public_messages_add_column_read/up.yaml deleted file mode 100644 index a5ba54045..000000000 --- a/hasura/migrations/1585181593575_alter_table_public_messages_add_column_read/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ADD COLUMN "read" boolean NOT NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1585181603176_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585181603176_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 1d1eaa297..000000000 --- a/hasura/migrations/1585181603176_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - msid - - conversationid - - text - - image - - image_path - - isoutbound - - status - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585181603176_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585181603176_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 108df6204..000000000 --- a/hasura/migrations/1585181603176_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - msid - - conversationid - - text - - image - - image_path - - isoutbound - - status - - read - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585181608761_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585181608761_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index cfc1aa1a4..000000000 --- a/hasura/migrations/1585181608761_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - status - - text - - updated_at - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585181608761_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585181608761_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 27dca1b45..000000000 --- a/hasura/migrations/1585181608761_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - image - - isoutbound - - read - - image_path - - msid - - status - - text - - created_at - - updated_at - - conversationid - - id - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585181614380_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585181614380_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 11ebdccfd..000000000 --- a/hasura/migrations/1585181614380_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - image - - isoutbound - - image_path - - msid - - status - - text - - created_at - - updated_at - - conversationid - - id - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585181614380_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585181614380_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 990a7e935..000000000 --- a/hasura/migrations/1585181614380_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - image - - isoutbound - - read - - image_path - - msid - - status - - text - - created_at - - updated_at - - conversationid - - id - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585182358098_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1585182358098_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 27dca1b45..000000000 --- a/hasura/migrations/1585182358098_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - image - - isoutbound - - read - - image_path - - msid - - status - - text - - created_at - - updated_at - - conversationid - - id - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585182358098_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1585182358098_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 779d52c21..000000000 --- a/hasura/migrations/1585182358098_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - image - - isoutbound - - read - - image_path - - msid - - status - - text - - created_at - - updated_at - - conversationid - - id - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585182522250_update_permission_user_public_table_conversations/down.yaml b/hasura/migrations/1585182522250_update_permission_user_public_table_conversations/down.yaml deleted file mode 100644 index 3d7279640..000000000 --- a/hasura/migrations/1585182522250_update_permission_user_public_table_conversations/down.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - role: user - table: - name: conversations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - phone_num - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: conversations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585182522250_update_permission_user_public_table_conversations/up.yaml b/hasura/migrations/1585182522250_update_permission_user_public_table_conversations/up.yaml deleted file mode 100644 index 9c9dd4ce0..000000000 --- a/hasura/migrations/1585182522250_update_permission_user_public_table_conversations/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - role: user - table: - name: conversations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - phone_num - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: conversations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585586288586_run_sql_migration/down.yaml b/hasura/migrations/1585586288586_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1585586288586_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1585586288586_run_sql_migration/up.yaml b/hasura/migrations/1585586288586_run_sql_migration/up.yaml deleted file mode 100644 index ae5e78242..000000000 --- a/hasura/migrations/1585586288586_run_sql_migration/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "alter table jobs\nadd column plate_no text, \nadd column plate_st - \ text, \nadd column v_vin text, \nadd column v_model_yr - \ text, \nadd column v_model_desc text, \nadd column v_make_desc - \ text, \nadd column v_color text;" - type: run_sql diff --git a/hasura/migrations/1585586312881_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1585586312881_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index de3be1a36..000000000 --- a/hasura/migrations/1585586312881_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,246 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585586312881_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1585586312881_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 8cc98c238..000000000 --- a/hasura/migrations/1585586312881_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,253 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - - tax_prethr - - tax_thramt - - tax_str_rt - - tax_lbr_rt - - adj_g_disc - - adj_towdis - - adj_strdis - - tax_predis - - rate_laa - - status - - cieca_stl - - g_bett_amt - - cieca_ttl - - plate_no - - plate_st - - v_vin - - v_model_yr - - v_model_desc - - v_make_desc - - v_color - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585586320551_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1585586320551_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 16d2b6fb7..000000000 --- a/hasura/migrations/1585586320551_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,244 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585586320551_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1585586320551_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4973998e3..000000000 --- a/hasura/migrations/1585586320551_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,251 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - cieca_stl - - cieca_ttl - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - plate_no - - plate_st - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585586326162_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1585586326162_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 90840138f..000000000 --- a/hasura/migrations/1585586326162_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,246 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585586326162_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1585586326162_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 6d9512c50..000000000 --- a/hasura/migrations/1585586326162_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,253 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - cieca_stl - - cieca_ttl - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - plate_no - - plate_st - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585594344847_create_table_public_courtesycars/down.yaml b/hasura/migrations/1585594344847_create_table_public_courtesycars/down.yaml deleted file mode 100644 index 486ffa454..000000000 --- a/hasura/migrations/1585594344847_create_table_public_courtesycars/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."courtesycars"; - type: run_sql diff --git a/hasura/migrations/1585594344847_create_table_public_courtesycars/up.yaml b/hasura/migrations/1585594344847_create_table_public_courtesycars/up.yaml deleted file mode 100644 index d015903ef..000000000 --- a/hasura/migrations/1585594344847_create_table_public_courtesycars/up.yaml +++ /dev/null @@ -1,31 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"courtesycars\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"bodyshopid\" uuid NOT NULL, \"make\" text NOT NULL, - \"model\" text NOT NULL, \"year\" text NOT NULL, \"plate\" text NOT NULL, \"color\" - text NOT NULL, \"vin\" text NOT NULL, \"fleetnumber\" text, \"purchasedate\" - date, \"servicestartdate\" date, \"serviceenddate\" date, \"leaseenddate\" date, - \"status\" text NOT NULL DEFAULT 'Available', \"NextServiceKm\" numeric NOT - NULL DEFAULT 0, \"NextServiceDate\" date, \"Damage\" text, \"Notes\" text, \"fuel\" - numeric NOT NULL DEFAULT 1, \"registrationexpires\" date, \"insuranceexpires\" - date, \"dailycost\" numeric NOT NULL DEFAULT 0, PRIMARY KEY (\"id\") , FOREIGN - KEY (\"bodyshopid\") 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_courtesycars_updated_at\"\nBEFORE - UPDATE ON \"public\".\"courtesycars\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_courtesycars_updated_at\" ON \"public\".\"courtesycars\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';" - type: run_sql -- args: - name: courtesycars - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1585594392845_track_all_relationships/down.yaml b/hasura/migrations/1585594392845_track_all_relationships/down.yaml deleted file mode 100644 index b76d03b9e..000000000 --- a/hasura/migrations/1585594392845_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: courtesycars - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: courtesycars - schema: public - type: drop_relationship diff --git a/hasura/migrations/1585594392845_track_all_relationships/up.yaml b/hasura/migrations/1585594392845_track_all_relationships/up.yaml deleted file mode 100644 index d7f2ac72c..000000000 --- a/hasura/migrations/1585594392845_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: courtesycars - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: courtesycars - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: courtesycars - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship diff --git a/hasura/migrations/1585595056116_create_table_public_cccontract/down.yaml b/hasura/migrations/1585595056116_create_table_public_cccontract/down.yaml deleted file mode 100644 index 6d3ed3f08..000000000 --- a/hasura/migrations/1585595056116_create_table_public_cccontract/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."cccontract"; - type: run_sql diff --git a/hasura/migrations/1585595056116_create_table_public_cccontract/up.yaml b/hasura/migrations/1585595056116_create_table_public_cccontract/up.yaml deleted file mode 100644 index 829a34352..000000000 --- a/hasura/migrations/1585595056116_create_table_public_cccontract/up.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"cccontract\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"agreementnumber\" serial NOT NULL, \"courtesycarid\" - uuid NOT NULL, \"jobid\" uuid NOT NULL, \"status\" text NOT NULL DEFAULT 'Reserved', - \"start\" date, \"scheduledreturn\" date, \"actualreturn\" date, \"kmstart\" - numeric NOT NULL, \"kmend\" numeric, \"driver_dlnumber\" text NOT NULL, \"driver_dlexpiry\" - date NOT NULL, \"driver_dlst\" text NOT NULL, \"driver_fn\" text NOT NULL, \"driver_ln\" - text NOT NULL, \"driver_addr1\" text NOT NULL, \"driver_addr2\" text, \"driver_city\" - text NOT NULL, \"driver_state\" text NOT NULL, \"driver_zip\" text NOT NULL, - \"driver_ph1\" text NOT NULL, \"driver_dob\" date NOT NULL, \"cc_num\" text, - \"cc_expiry\" text, \"cc_cardholder\" text, PRIMARY KEY (\"id\") , FOREIGN KEY - (\"courtesycarid\") REFERENCES \"public\".\"courtesycars\"(\"id\") ON UPDATE - restrict ON DELETE restrict, FOREIGN KEY (\"jobid\") REFERENCES \"public\".\"jobs\"(\"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_cccontract_updated_at\"\nBEFORE - UPDATE ON \"public\".\"cccontract\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_cccontract_updated_at\" ON \"public\".\"cccontract\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';" - type: run_sql -- args: - name: cccontract - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1585595063336_track_all_relationships/down.yaml b/hasura/migrations/1585595063336_track_all_relationships/down.yaml deleted file mode 100644 index 962ae6974..000000000 --- a/hasura/migrations/1585595063336_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: job - table: - name: cccontract - schema: public - type: drop_relationship -- args: - relationship: courtesycar - table: - name: cccontract - schema: public - type: drop_relationship -- args: - relationship: cccontracts - table: - name: courtesycars - schema: public - type: drop_relationship -- args: - relationship: cccontracts - table: - name: jobs - schema: public - type: drop_relationship diff --git a/hasura/migrations/1585595063336_track_all_relationships/up.yaml b/hasura/migrations/1585595063336_track_all_relationships/up.yaml deleted file mode 100644 index 74a477e62..000000000 --- a/hasura/migrations/1585595063336_track_all_relationships/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - name: job - table: - name: cccontract - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship -- args: - name: courtesycar - table: - name: cccontract - schema: public - using: - foreign_key_constraint_on: courtesycarid - type: create_object_relationship -- args: - name: cccontracts - table: - name: courtesycars - schema: public - using: - foreign_key_constraint_on: - column: courtesycarid - table: - name: cccontract - schema: public - type: create_array_relationship -- args: - name: cccontracts - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: cccontract - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1585595095297_update_permission_user_public_table_courtesycars/down.yaml b/hasura/migrations/1585595095297_update_permission_user_public_table_courtesycars/down.yaml deleted file mode 100644 index 1ece918dc..000000000 --- a/hasura/migrations/1585595095297_update_permission_user_public_table_courtesycars/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1585595095297_update_permission_user_public_table_courtesycars/up.yaml b/hasura/migrations/1585595095297_update_permission_user_public_table_courtesycars/up.yaml deleted file mode 100644 index cb10d2c0c..000000000 --- a/hasura/migrations/1585595095297_update_permission_user_public_table_courtesycars/up.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - bodyshopid - - make - - model - - year - - plate - - color - - vin - - fleetnumber - - purchasedate - - servicestartdate - - serviceenddate - - leaseenddate - - status - - NextServiceKm - - NextServiceDate - - Damage - - Notes - - fuel - - registrationexpires - - insuranceexpires - - dailycost - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: courtesycars - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585595102086_update_permission_user_public_table_courtesycars/down.yaml b/hasura/migrations/1585595102086_update_permission_user_public_table_courtesycars/down.yaml deleted file mode 100644 index cef7281aa..000000000 --- a/hasura/migrations/1585595102086_update_permission_user_public_table_courtesycars/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1585595102086_update_permission_user_public_table_courtesycars/up.yaml b/hasura/migrations/1585595102086_update_permission_user_public_table_courtesycars/up.yaml deleted file mode 100644 index 1c9b059d7..000000000 --- a/hasura/migrations/1585595102086_update_permission_user_public_table_courtesycars/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - insuranceexpires - - leaseenddate - - NextServiceDate - - purchasedate - - registrationexpires - - serviceenddate - - servicestartdate - - dailycost - - fuel - - NextServiceKm - - color - - Damage - - fleetnumber - - make - - model - - Notes - - plate - - status - - vin - - year - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: courtesycars - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585595106910_update_permission_user_public_table_courtesycars/down.yaml b/hasura/migrations/1585595106910_update_permission_user_public_table_courtesycars/down.yaml deleted file mode 100644 index 9605986fe..000000000 --- a/hasura/migrations/1585595106910_update_permission_user_public_table_courtesycars/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1585595106910_update_permission_user_public_table_courtesycars/up.yaml b/hasura/migrations/1585595106910_update_permission_user_public_table_courtesycars/up.yaml deleted file mode 100644 index c49fddd2f..000000000 --- a/hasura/migrations/1585595106910_update_permission_user_public_table_courtesycars/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - permission: - columns: - - insuranceexpires - - leaseenddate - - NextServiceDate - - purchasedate - - registrationexpires - - serviceenddate - - servicestartdate - - dailycost - - fuel - - NextServiceKm - - color - - Damage - - fleetnumber - - make - - model - - Notes - - plate - - status - - vin - - year - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: courtesycars - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585595111087_update_permission_user_public_table_courtesycars/down.yaml b/hasura/migrations/1585595111087_update_permission_user_public_table_courtesycars/down.yaml deleted file mode 100644 index b63edce8f..000000000 --- a/hasura/migrations/1585595111087_update_permission_user_public_table_courtesycars/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1585595111087_update_permission_user_public_table_courtesycars/up.yaml b/hasura/migrations/1585595111087_update_permission_user_public_table_courtesycars/up.yaml deleted file mode 100644 index e133c026e..000000000 --- a/hasura/migrations/1585595111087_update_permission_user_public_table_courtesycars/up.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: courtesycars - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1585595120824_rename_table_public_cccontract/down.yaml b/hasura/migrations/1585595120824_rename_table_public_cccontract/down.yaml deleted file mode 100644 index ad3fde467..000000000 --- a/hasura/migrations/1585595120824_rename_table_public_cccontract/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."cccontracts" rename to "cccontract"; - type: run_sql diff --git a/hasura/migrations/1585595120824_rename_table_public_cccontract/up.yaml b/hasura/migrations/1585595120824_rename_table_public_cccontract/up.yaml deleted file mode 100644 index 53412a34a..000000000 --- a/hasura/migrations/1585595120824_rename_table_public_cccontract/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."cccontract" rename to "cccontracts"; - type: run_sql diff --git a/hasura/migrations/1585595169060_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1585595169060_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index cc00c8e6a..000000000 --- a/hasura/migrations/1585595169060_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1585595169060_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1585595169060_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 568bf087f..000000000 --- a/hasura/migrations/1585595169060_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - agreementnumber - - courtesycarid - - jobid - - status - - start - - scheduledreturn - - actualreturn - - kmstart - - kmend - - driver_dlnumber - - driver_dlexpiry - - driver_dlst - - driver_fn - - driver_ln - - driver_addr1 - - driver_addr2 - - driver_city - - driver_state - - driver_zip - - driver_ph1 - - driver_dob - - cc_num - - cc_expiry - - cc_cardholder - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585595175602_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1585595175602_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 571e819bf..000000000 --- a/hasura/migrations/1585595175602_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1585595175602_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1585595175602_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index ec3e11f0b..000000000 --- a/hasura/migrations/1585595175602_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,48 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - actualreturn - - driver_dlexpiry - - driver_dob - - scheduledreturn - - start - - agreementnumber - - kmend - - kmstart - - cc_cardholder - - cc_expiry - - cc_num - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlnumber - - driver_dlst - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - status - - created_at - - updated_at - - courtesycarid - - id - - jobid - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585595180487_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1585595180487_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index e443e59f9..000000000 --- a/hasura/migrations/1585595180487_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1585595180487_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1585595180487_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index dc43d6bf9..000000000 --- a/hasura/migrations/1585595180487_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - permission: - columns: - - actualreturn - - driver_dlexpiry - - driver_dob - - scheduledreturn - - start - - agreementnumber - - kmend - - kmstart - - cc_cardholder - - cc_expiry - - cc_num - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlnumber - - driver_dlst - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - status - - created_at - - updated_at - - courtesycarid - - id - - jobid - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585595189270_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1585595189270_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 10d362ec2..000000000 --- a/hasura/migrations/1585595189270_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1585595189270_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1585595189270_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index dec77695f..000000000 --- a/hasura/migrations/1585595189270_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1585598517873_alter_table_public_courtesycars_alter_column_NextServiceKm/down.yaml b/hasura/migrations/1585598517873_alter_table_public_courtesycars_alter_column_NextServiceKm/down.yaml deleted file mode 100644 index 18dbd9462..000000000 --- a/hasura/migrations/1585598517873_alter_table_public_courtesycars_alter_column_NextServiceKm/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."courtesycars" rename column "nextservicekm" to "NextServiceKm"; - type: run_sql diff --git a/hasura/migrations/1585598517873_alter_table_public_courtesycars_alter_column_NextServiceKm/up.yaml b/hasura/migrations/1585598517873_alter_table_public_courtesycars_alter_column_NextServiceKm/up.yaml deleted file mode 100644 index ebea996da..000000000 --- a/hasura/migrations/1585598517873_alter_table_public_courtesycars_alter_column_NextServiceKm/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."courtesycars" rename column "NextServiceKm" to "nextservicekm"; - type: run_sql diff --git a/hasura/migrations/1585598526238_alter_table_public_courtesycars_alter_column_Damage/down.yaml b/hasura/migrations/1585598526238_alter_table_public_courtesycars_alter_column_Damage/down.yaml deleted file mode 100644 index 10e435cf9..000000000 --- a/hasura/migrations/1585598526238_alter_table_public_courtesycars_alter_column_Damage/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."courtesycars" rename column "damage" to "Damage"; - type: run_sql diff --git a/hasura/migrations/1585598526238_alter_table_public_courtesycars_alter_column_Damage/up.yaml b/hasura/migrations/1585598526238_alter_table_public_courtesycars_alter_column_Damage/up.yaml deleted file mode 100644 index 340a77413..000000000 --- a/hasura/migrations/1585598526238_alter_table_public_courtesycars_alter_column_Damage/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."courtesycars" rename column "Damage" to "damage"; - type: run_sql diff --git a/hasura/migrations/1585598532674_alter_table_public_courtesycars_alter_column_Notes/down.yaml b/hasura/migrations/1585598532674_alter_table_public_courtesycars_alter_column_Notes/down.yaml deleted file mode 100644 index 63586a7e0..000000000 --- a/hasura/migrations/1585598532674_alter_table_public_courtesycars_alter_column_Notes/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."courtesycars" rename column "notes" to "Notes"; - type: run_sql diff --git a/hasura/migrations/1585598532674_alter_table_public_courtesycars_alter_column_Notes/up.yaml b/hasura/migrations/1585598532674_alter_table_public_courtesycars_alter_column_Notes/up.yaml deleted file mode 100644 index 65b75bc2a..000000000 --- a/hasura/migrations/1585598532674_alter_table_public_courtesycars_alter_column_Notes/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."courtesycars" rename column "Notes" to "notes"; - type: run_sql diff --git a/hasura/migrations/1585598539310_alter_table_public_courtesycars_alter_column_NextServiceDate/down.yaml b/hasura/migrations/1585598539310_alter_table_public_courtesycars_alter_column_NextServiceDate/down.yaml deleted file mode 100644 index 3d499e609..000000000 --- a/hasura/migrations/1585598539310_alter_table_public_courtesycars_alter_column_NextServiceDate/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."courtesycars" rename column "nextservicedate" to "NextServiceDate"; - type: run_sql diff --git a/hasura/migrations/1585598539310_alter_table_public_courtesycars_alter_column_NextServiceDate/up.yaml b/hasura/migrations/1585598539310_alter_table_public_courtesycars_alter_column_NextServiceDate/up.yaml deleted file mode 100644 index 237122125..000000000 --- a/hasura/migrations/1585598539310_alter_table_public_courtesycars_alter_column_NextServiceDate/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."courtesycars" rename column "NextServiceDate" to "nextservicedate"; - type: run_sql diff --git a/hasura/migrations/1585703170344_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1585703170344_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 8cc98c238..000000000 --- a/hasura/migrations/1585703170344_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,253 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - shopid - - ro_number - - ownerid - - vehicleid - - labor_rate_id - - labor_rate_desc - - rate_lab - - rate_lad - - rate_lae - - rate_lar - - rate_las - - rate_laf - - rate_lam - - rate_lag - - rate_atp - - rate_lau - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_mapa - - rate_mash - - rate_mahw - - rate_ma2s - - rate_ma3s - - rate_ma2t - - rate_mabl - - rate_macs - - rate_matd - - federal_tax_rate - - state_tax_rate - - local_tax_rate - - est_co_nm - - est_addr1 - - est_addr2 - - est_city - - est_st - - est_zip - - est_ctry - - est_ph1 - - est_ea - - est_ct_ln - - est_ct_fn - - scheduled_in - - actual_in - - scheduled_completion - - actual_completion - - scheduled_delivery - - actual_delivery - - regie_number - - invoice_date - - inproduction - - statusid - - ins_co_id - - ins_co_nm - - ins_addr1 - - ins_addr2 - - ins_city - - ins_st - - ins_zip - - ins_ctry - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_fax - - ins_faxx - - ins_ct_ln - - ins_ct_fn - - ins_title - - ins_ct_ph - - ins_ct_phx - - ins_ea - - ins_memo - - policy_no - - ded_amt - - ded_status - - asgn_no - - asgn_date - - asgn_type - - clm_no - - clm_ofc_id - - date_estimated - - date_open - - date_scheduled - - date_invoiced - - date_closed - - date_exported - - clm_total - - owner_owing - - converted - - ciecaid - - loss_date - - clm_ofc_nm - - clm_addr1 - - clm_addr2 - - clm_city - - clm_st - - clm_zip - - clm_ctry - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_fax - - clm_faxx - - clm_ct_ln - - clm_ct_fn - - clm_title - - clm_ct_ph - - clm_ct_phx - - clm_ea - - payee_nms - - pay_type - - pay_date - - pay_chknm - - pay_amt - - agt_co_id - - agt_co_nm - - agt_addr1 - - agt_addr2 - - agt_city - - agt_st - - agt_zip - - agt_ctry - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_fax - - agt_faxx - - agt_ct_ln - - agt_ct_fn - - agt_ct_ph - - agt_ct_phx - - agt_ea - - agt_lic_no - - loss_type - - loss_desc - - theft_ind - - cat_no - - tlos_ind - - cust_pr - - insd_ln - - insd_fn - - insd_title - - insd_co_nm - - insd_addr1 - - insd_addr2 - - insd_city - - insd_st - - insd_zip - - insd_ctry - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_fax - - insd_faxx - - insd_ea - - ownr_ln - - ownr_fn - - ownr_title - - ownr_co_nm - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_fax - - ownr_faxx - - ownr_ea - - area_of_damage - - loss_cat - - est_number - - service_car - - special_coverage_policy - - csr - - po_number - - unit_number - - kmin - - kmout - - referral_source - - selling_dealer - - servicing_dealer - - servicing_dealer_contact - - selling_dealer_contact - - depreciation_taxes - - federal_tax_payable - - other_amount_payable - - towing_payable - - storage_payable - - adjustment_bottom_line - - tax_pstthr - - tax_tow_rt - - tax_sub_rt - - tax_paint_mat_rt - - tax_levies_rt - - tax_prethr - - tax_thramt - - tax_str_rt - - tax_lbr_rt - - adj_g_disc - - adj_towdis - - adj_strdis - - tax_predis - - rate_laa - - status - - cieca_stl - - g_bett_amt - - cieca_ttl - - plate_no - - plate_st - - v_vin - - v_model_yr - - v_model_desc - - v_make_desc - - v_color - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585703170344_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1585703170344_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4715fb662..000000000 --- a/hasura/migrations/1585703170344_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,252 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585703177515_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1585703177515_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4973998e3..000000000 --- a/hasura/migrations/1585703177515_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,251 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - cieca_stl - - cieca_ttl - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - plate_no - - plate_st - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585703177515_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1585703177515_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index cf9388142..000000000 --- a/hasura/migrations/1585703177515_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,250 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585703194595_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1585703194595_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 6d9512c50..000000000 --- a/hasura/migrations/1585703194595_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,253 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - converted - - inproduction - - special_coverage_policy - - theft_ind - - tlos_ind - - asgn_date - - invoice_date - - loss_date - - pay_date - - kmin - - kmout - - est_number - - area_of_damage - - cieca_stl - - cieca_ttl - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - clm_total - - ded_amt - - depreciation_taxes - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - local_tax_rate - - other_amount_payable - - owner_owing - - pay_amt - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - state_tax_rate - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_str_rt - - tax_thramt - - towing_payable - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - asgn_no - - asgn_type - - cat_no - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_zip - - csr - - cust_pr - - ded_status - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - labor_rate_desc - - labor_rate_id - - loss_cat - - loss_desc - - loss_type - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_chknm - - payee_nms - - pay_type - - plate_no - - plate_st - - policy_no - - po_number - - referral_source - - regie_number - - ro_number - - selling_dealer - - selling_dealer_contact - - service_car - - servicing_dealer - - servicing_dealer_contact - - status - - unit_number - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - actual_completion - - actual_delivery - - actual_in - - created_at - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - scheduled_completion - - scheduled_delivery - - scheduled_in - - updated_at - - id - - ownerid - - shopid - - statusid - - vehicleid - - tax_pstthr - - tax_sub_rt - - tax_tow_rt - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585703194595_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1585703194595_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 87f60eed1..000000000 --- a/hasura/migrations/1585703194595_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,252 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585703205875_alter_table_public_jobs_drop_column_service_car/down.yaml b/hasura/migrations/1585703205875_alter_table_public_jobs_drop_column_service_car/down.yaml deleted file mode 100644 index f2b80c903..000000000 --- a/hasura/migrations/1585703205875_alter_table_public_jobs_drop_column_service_car/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "service_car" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "service_car" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1585703205875_alter_table_public_jobs_drop_column_service_car/up.yaml b/hasura/migrations/1585703205875_alter_table_public_jobs_drop_column_service_car/up.yaml deleted file mode 100644 index 52fc30855..000000000 --- a/hasura/migrations/1585703205875_alter_table_public_jobs_drop_column_service_car/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "service_car" CASCADE; - type: run_sql diff --git a/hasura/migrations/1585767116722_alter_table_public_courtesycars_add_column_mileage/down.yaml b/hasura/migrations/1585767116722_alter_table_public_courtesycars_add_column_mileage/down.yaml deleted file mode 100644 index 9ba2124c5..000000000 --- a/hasura/migrations/1585767116722_alter_table_public_courtesycars_add_column_mileage/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."courtesycars" DROP COLUMN "mileage"; - type: run_sql diff --git a/hasura/migrations/1585767116722_alter_table_public_courtesycars_add_column_mileage/up.yaml b/hasura/migrations/1585767116722_alter_table_public_courtesycars_add_column_mileage/up.yaml deleted file mode 100644 index 126709423..000000000 --- a/hasura/migrations/1585767116722_alter_table_public_courtesycars_add_column_mileage/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."courtesycars" ADD COLUMN "mileage" numeric NOT NULL - DEFAULT 0; - type: run_sql diff --git a/hasura/migrations/1585767133843_update_permission_user_public_table_courtesycars/down.yaml b/hasura/migrations/1585767133843_update_permission_user_public_table_courtesycars/down.yaml deleted file mode 100644 index b835778b0..000000000 --- a/hasura/migrations/1585767133843_update_permission_user_public_table_courtesycars/down.yaml +++ /dev/null @@ -1,51 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - bodyshopid - - make - - model - - year - - plate - - color - - vin - - fleetnumber - - purchasedate - - servicestartdate - - serviceenddate - - leaseenddate - - status - - nextservicekm - - nextservicedate - - damage - - notes - - fuel - - registrationexpires - - insuranceexpires - - dailycost - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: courtesycars - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585767133843_update_permission_user_public_table_courtesycars/up.yaml b/hasura/migrations/1585767133843_update_permission_user_public_table_courtesycars/up.yaml deleted file mode 100644 index fe762dd69..000000000 --- a/hasura/migrations/1585767133843_update_permission_user_public_table_courtesycars/up.yaml +++ /dev/null @@ -1,52 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - bodyshopid - - make - - model - - year - - plate - - color - - vin - - fleetnumber - - purchasedate - - servicestartdate - - serviceenddate - - leaseenddate - - status - - nextservicekm - - nextservicedate - - damage - - notes - - fuel - - registrationexpires - - insuranceexpires - - dailycost - - mileage - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: courtesycars - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1585767138926_update_permission_user_public_table_courtesycars/down.yaml b/hasura/migrations/1585767138926_update_permission_user_public_table_courtesycars/down.yaml deleted file mode 100644 index 06a3bc23c..000000000 --- a/hasura/migrations/1585767138926_update_permission_user_public_table_courtesycars/down.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - insuranceexpires - - leaseenddate - - nextservicedate - - purchasedate - - registrationexpires - - serviceenddate - - servicestartdate - - dailycost - - fuel - - nextservicekm - - color - - damage - - fleetnumber - - make - - model - - notes - - plate - - status - - vin - - year - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: courtesycars - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585767138926_update_permission_user_public_table_courtesycars/up.yaml b/hasura/migrations/1585767138926_update_permission_user_public_table_courtesycars/up.yaml deleted file mode 100644 index b0294a184..000000000 --- a/hasura/migrations/1585767138926_update_permission_user_public_table_courtesycars/up.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - insuranceexpires - - leaseenddate - - nextservicedate - - purchasedate - - registrationexpires - - serviceenddate - - servicestartdate - - dailycost - - fuel - - mileage - - nextservicekm - - color - - damage - - fleetnumber - - make - - model - - notes - - plate - - status - - vin - - year - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: courtesycars - schema: public - type: create_select_permission diff --git a/hasura/migrations/1585767144286_update_permission_user_public_table_courtesycars/down.yaml b/hasura/migrations/1585767144286_update_permission_user_public_table_courtesycars/down.yaml deleted file mode 100644 index b2f45d67c..000000000 --- a/hasura/migrations/1585767144286_update_permission_user_public_table_courtesycars/down.yaml +++ /dev/null @@ -1,51 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_update_permission -- args: - permission: - columns: - - insuranceexpires - - leaseenddate - - nextservicedate - - purchasedate - - registrationexpires - - serviceenddate - - servicestartdate - - dailycost - - fuel - - nextservicekm - - color - - damage - - fleetnumber - - make - - model - - notes - - plate - - status - - vin - - year - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: courtesycars - schema: public - type: create_update_permission diff --git a/hasura/migrations/1585767144286_update_permission_user_public_table_courtesycars/up.yaml b/hasura/migrations/1585767144286_update_permission_user_public_table_courtesycars/up.yaml deleted file mode 100644 index 86620f18d..000000000 --- a/hasura/migrations/1585767144286_update_permission_user_public_table_courtesycars/up.yaml +++ /dev/null @@ -1,52 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_update_permission -- args: - permission: - columns: - - insuranceexpires - - leaseenddate - - nextservicedate - - purchasedate - - registrationexpires - - serviceenddate - - servicestartdate - - dailycost - - fuel - - mileage - - nextservicekm - - color - - damage - - fleetnumber - - make - - model - - notes - - plate - - status - - vin - - year - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: courtesycars - schema: public - type: create_update_permission diff --git a/hasura/migrations/1586216036874_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1586216036874_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index c639e07f8..000000000 --- a/hasura/migrations/1586216036874_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - op_code_desc - - part_type - - status - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1586216036874_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1586216036874_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 317c3b0d8..000000000 --- a/hasura/migrations/1586216036874_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - op_code_desc - - part_type - - status - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1586284810616_alter_table_public_bodyshops_add_column_shoprates/down.yaml b/hasura/migrations/1586284810616_alter_table_public_bodyshops_add_column_shoprates/down.yaml deleted file mode 100644 index 0d06fd743..000000000 --- a/hasura/migrations/1586284810616_alter_table_public_bodyshops_add_column_shoprates/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "shoprates"; - type: run_sql diff --git a/hasura/migrations/1586284810616_alter_table_public_bodyshops_add_column_shoprates/up.yaml b/hasura/migrations/1586284810616_alter_table_public_bodyshops_add_column_shoprates/up.yaml deleted file mode 100644 index 4bc14e6fc..000000000 --- a/hasura/migrations/1586284810616_alter_table_public_bodyshops_add_column_shoprates/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "shoprates" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1586284824617_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1586284824617_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 825ae0c0c..000000000 --- a/hasura/migrations/1586284824617_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopname - - created_at - - updated_at - - address1 - - address2 - - city - - state - - zip_post - - country - - email - - federal_tax_id - - insurance_vendor_id - - state_tax_id - - logo_img_path - - md_ro_statuses - - region_config - - md_order_statuses - - md_responsibility_centers - - messagingservicesid - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1586284824617_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1586284824617_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 18a9c8a58..000000000 --- a/hasura/migrations/1586284824617_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - region_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1586284834270_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1586284834270_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 703a9ce7b..000000000 --- a/hasura/migrations/1586284834270_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - address1 - - address2 - - city - - country - - email - - federal_tax_id - - insurance_vendor_id - - logo_img_path - - region_config - - shopname - - state - - state_tax_id - - zip_post - - created_at - - updated_at - - id - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1586284834270_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1586284834270_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 297c7d9db..000000000 --- a/hasura/migrations/1586284834270_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - region_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1586365217566_alter_table_public_jobs_add_column_parts_tax_rates/down.yaml b/hasura/migrations/1586365217566_alter_table_public_jobs_add_column_parts_tax_rates/down.yaml deleted file mode 100644 index 9f7a0cd30..000000000 --- a/hasura/migrations/1586365217566_alter_table_public_jobs_add_column_parts_tax_rates/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "parts_tax_rates"; - type: run_sql diff --git a/hasura/migrations/1586365217566_alter_table_public_jobs_add_column_parts_tax_rates/up.yaml b/hasura/migrations/1586365217566_alter_table_public_jobs_add_column_parts_tax_rates/up.yaml deleted file mode 100644 index e5a499ab2..000000000 --- a/hasura/migrations/1586365217566_alter_table_public_jobs_add_column_parts_tax_rates/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "parts_tax_rates" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1586365232521_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1586365232521_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4715fb662..000000000 --- a/hasura/migrations/1586365232521_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,252 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1586365232521_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1586365232521_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 43bf2e0ab..000000000 --- a/hasura/migrations/1586365232521_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,253 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1586365248281_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1586365248281_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index cf9388142..000000000 --- a/hasura/migrations/1586365248281_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,250 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1586365248281_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1586365248281_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 1f52ac4cf..000000000 --- a/hasura/migrations/1586365248281_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,251 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1586365257227_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1586365257227_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 87f60eed1..000000000 --- a/hasura/migrations/1586365257227_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,252 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1586365257227_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1586365257227_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 68a2a7ed5..000000000 --- a/hasura/migrations/1586365257227_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,253 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1586879989913_alter_table_public_jobs_add_column_job_totals/down.yaml b/hasura/migrations/1586879989913_alter_table_public_jobs_add_column_job_totals/down.yaml deleted file mode 100644 index 371308f87..000000000 --- a/hasura/migrations/1586879989913_alter_table_public_jobs_add_column_job_totals/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "job_totals"; - type: run_sql diff --git a/hasura/migrations/1586879989913_alter_table_public_jobs_add_column_job_totals/up.yaml b/hasura/migrations/1586879989913_alter_table_public_jobs_add_column_job_totals/up.yaml deleted file mode 100644 index 2c1b18561..000000000 --- a/hasura/migrations/1586879989913_alter_table_public_jobs_add_column_job_totals/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "job_totals" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1586880003979_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1586880003979_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 43bf2e0ab..000000000 --- a/hasura/migrations/1586880003979_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,253 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1586880003979_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1586880003979_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 785d7b5d3..000000000 --- a/hasura/migrations/1586880003979_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,254 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1586880014259_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1586880014259_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 1f52ac4cf..000000000 --- a/hasura/migrations/1586880014259_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,251 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1586880014259_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1586880014259_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4364ff937..000000000 --- a/hasura/migrations/1586880014259_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,252 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1586880020786_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1586880020786_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 68a2a7ed5..000000000 --- a/hasura/migrations/1586880020786_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,253 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1586880020786_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1586880020786_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 06e843cbc..000000000 --- a/hasura/migrations/1586880020786_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,254 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1586907397057_create_table_public_timetickets/down.yaml b/hasura/migrations/1586907397057_create_table_public_timetickets/down.yaml deleted file mode 100644 index 882adffb8..000000000 --- a/hasura/migrations/1586907397057_create_table_public_timetickets/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."timetickets"; - type: run_sql diff --git a/hasura/migrations/1586907397057_create_table_public_timetickets/up.yaml b/hasura/migrations/1586907397057_create_table_public_timetickets/up.yaml deleted file mode 100644 index 06a8b6c21..000000000 --- a/hasura/migrations/1586907397057_create_table_public_timetickets/up.yaml +++ /dev/null @@ -1,29 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"timetickets\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"date\" date NOT NULL DEFAULT now(), \"cost_center\" - text NOT NULL, \"employeeid\" uuid NOT NULL, \"jobid\" uuid NOT NULL, \"rate\" - numeric NOT NULL DEFAULT 0, \"productivehrs\" numeric NOT NULL DEFAULT 0, \"actualhrs\" - numeric NOT NULL DEFAULT 0, \"clockon\" timestamptz, \"clockoff\" timestamptz, - \"ciecacode\" text NOT NULL, PRIMARY KEY (\"id\") , FOREIGN KEY (\"employeeid\") - REFERENCES \"public\".\"employees\"(\"id\") ON UPDATE restrict ON DELETE restrict, - FOREIGN KEY (\"jobid\") REFERENCES \"public\".\"jobs\"(\"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_timetickets_updated_at\"\nBEFORE - UPDATE ON \"public\".\"timetickets\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_timetickets_updated_at\" ON \"public\".\"timetickets\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';" - type: run_sql -- args: - name: timetickets - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1586907431308_track_all_relationships/down.yaml b/hasura/migrations/1586907431308_track_all_relationships/down.yaml deleted file mode 100644 index 1e6704090..000000000 --- a/hasura/migrations/1586907431308_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: timetickets - table: - name: employees - schema: public - type: drop_relationship -- args: - relationship: timetickets - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: job - table: - name: timetickets - schema: public - type: drop_relationship -- args: - relationship: employee - table: - name: timetickets - schema: public - type: drop_relationship diff --git a/hasura/migrations/1586907431308_track_all_relationships/up.yaml b/hasura/migrations/1586907431308_track_all_relationships/up.yaml deleted file mode 100644 index 5c7630853..000000000 --- a/hasura/migrations/1586907431308_track_all_relationships/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - name: timetickets - table: - name: employees - schema: public - using: - foreign_key_constraint_on: - column: employeeid - table: - name: timetickets - schema: public - type: create_array_relationship -- args: - name: timetickets - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: timetickets - schema: public - type: create_array_relationship -- args: - name: job - table: - name: timetickets - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship -- args: - name: employee - table: - name: timetickets - schema: public - using: - foreign_key_constraint_on: employeeid - type: create_object_relationship diff --git a/hasura/migrations/1586907537557_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1586907537557_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index fdcea370b..000000000 --- a/hasura/migrations/1586907537557_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1586907537557_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1586907537557_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index 3fa31fb9f..000000000 --- a/hasura/migrations/1586907537557_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - date - - cost_center - - employeeid - - jobid - - rate - - productivehrs - - actualhrs - - clockon - - clockoff - - ciecacode - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: timetickets - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1586907552709_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1586907552709_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index 270f493b2..000000000 --- a/hasura/migrations/1586907552709_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1586907552709_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1586907552709_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index 5ad4ebe3e..000000000 --- a/hasura/migrations/1586907552709_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - date - - actualhrs - - productivehrs - - rate - - ciecacode - - cost_center - - clockoff - - clockon - - created_at - - updated_at - - employeeid - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: timetickets - schema: public - type: create_select_permission diff --git a/hasura/migrations/1586907564632_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1586907564632_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index 2cca595cb..000000000 --- a/hasura/migrations/1586907564632_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1586907564632_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1586907564632_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index 04b050c44..000000000 --- a/hasura/migrations/1586907564632_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - permission: - columns: - - date - - actualhrs - - productivehrs - - rate - - ciecacode - - cost_center - - clockoff - - clockon - - created_at - - updated_at - - employeeid - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: timetickets - schema: public - type: create_update_permission diff --git a/hasura/migrations/1586907569694_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1586907569694_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index 92ce7cf39..000000000 --- a/hasura/migrations/1586907569694_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1586907569694_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1586907569694_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index d84cea1b8..000000000 --- a/hasura/migrations/1586907569694_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: timetickets - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1587060807479_alter_table_public_bodyshops_add_column_template_header/down.yaml b/hasura/migrations/1587060807479_alter_table_public_bodyshops_add_column_template_header/down.yaml deleted file mode 100644 index e96404a91..000000000 --- a/hasura/migrations/1587060807479_alter_table_public_bodyshops_add_column_template_header/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "template_header"; - type: run_sql diff --git a/hasura/migrations/1587060807479_alter_table_public_bodyshops_add_column_template_header/up.yaml b/hasura/migrations/1587060807479_alter_table_public_bodyshops_add_column_template_header/up.yaml deleted file mode 100644 index 99b37f336..000000000 --- a/hasura/migrations/1587060807479_alter_table_public_bodyshops_add_column_template_header/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "template_header" text NULL; - type: run_sql diff --git a/hasura/migrations/1587060816740_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1587060816740_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 18a9c8a58..000000000 --- a/hasura/migrations/1587060816740_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - region_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587060816740_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1587060816740_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index ffca2644f..000000000 --- a/hasura/migrations/1587060816740_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587060828703_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1587060828703_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 297c7d9db..000000000 --- a/hasura/migrations/1587060828703_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - region_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587060828703_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1587060828703_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index fc6bba57f..000000000 --- a/hasura/migrations/1587060828703_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - region_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587062110920_create_table_public_templates/down.yaml b/hasura/migrations/1587062110920_create_table_public_templates/down.yaml deleted file mode 100644 index fd0fffff3..000000000 --- a/hasura/migrations/1587062110920_create_table_public_templates/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."templates"; - type: run_sql diff --git a/hasura/migrations/1587062110920_create_table_public_templates/up.yaml b/hasura/migrations/1587062110920_create_table_public_templates/up.yaml deleted file mode 100644 index 18fbf0bab..000000000 --- a/hasura/migrations/1587062110920_create_table_public_templates/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"templates\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"bodyshopid\" uuid, \"name\" text NOT NULL, \"html\" - text NOT NULL, \"query\" text NOT NULL, PRIMARY KEY (\"id\") , FOREIGN KEY (\"bodyshopid\") - 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_templates_updated_at\"\nBEFORE - UPDATE ON \"public\".\"templates\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_templates_updated_at\" ON \"public\".\"templates\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';" - type: run_sql -- args: - name: templates - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1587062123352_track_all_relationships/down.yaml b/hasura/migrations/1587062123352_track_all_relationships/down.yaml deleted file mode 100644 index a170056fb..000000000 --- a/hasura/migrations/1587062123352_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: templates - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: templates - schema: public - type: drop_relationship diff --git a/hasura/migrations/1587062123352_track_all_relationships/up.yaml b/hasura/migrations/1587062123352_track_all_relationships/up.yaml deleted file mode 100644 index 2c4ab676e..000000000 --- a/hasura/migrations/1587062123352_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: templates - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: templates - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: templates - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship diff --git a/hasura/migrations/1587062292554_update_permission_user_public_table_templates/down.yaml b/hasura/migrations/1587062292554_update_permission_user_public_table_templates/down.yaml deleted file mode 100644 index e02f50e10..000000000 --- a/hasura/migrations/1587062292554_update_permission_user_public_table_templates/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: templates - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1587062292554_update_permission_user_public_table_templates/up.yaml b/hasura/migrations/1587062292554_update_permission_user_public_table_templates/up.yaml deleted file mode 100644 index 551467acc..000000000 --- a/hasura/migrations/1587062292554_update_permission_user_public_table_templates/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - html - - name - - query - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - _or: - - bodyshopid: - _is_null: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: templates - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587062297744_update_permission_user_public_table_templates/down.yaml b/hasura/migrations/1587062297744_update_permission_user_public_table_templates/down.yaml deleted file mode 100644 index 5820d3827..000000000 --- a/hasura/migrations/1587062297744_update_permission_user_public_table_templates/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: templates - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1587062297744_update_permission_user_public_table_templates/up.yaml b/hasura/migrations/1587062297744_update_permission_user_public_table_templates/up.yaml deleted file mode 100644 index 354ddfc4d..000000000 --- a/hasura/migrations/1587062297744_update_permission_user_public_table_templates/up.yaml +++ /dev/null @@ -1,31 +0,0 @@ -- args: - permission: - columns: - - html - - name - - query - - created_at - - updated_at - - bodyshopid - - id - filter: - _or: - - bodyshopid: - _is_null: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: templates - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587398898639_alter_table_public_bodyshops_add_column_textid/down.yaml b/hasura/migrations/1587398898639_alter_table_public_bodyshops_add_column_textid/down.yaml deleted file mode 100644 index 6447565eb..000000000 --- a/hasura/migrations/1587398898639_alter_table_public_bodyshops_add_column_textid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "textid"; - type: run_sql diff --git a/hasura/migrations/1587398898639_alter_table_public_bodyshops_add_column_textid/up.yaml b/hasura/migrations/1587398898639_alter_table_public_bodyshops_add_column_textid/up.yaml deleted file mode 100644 index b0083e8a5..000000000 --- a/hasura/migrations/1587398898639_alter_table_public_bodyshops_add_column_textid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "textid" text NULL; - type: run_sql diff --git a/hasura/migrations/1587398906593_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1587398906593_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index ffca2644f..000000000 --- a/hasura/migrations/1587398906593_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587398906593_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1587398906593_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index f107f80d5..000000000 --- a/hasura/migrations/1587398906593_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587398924400_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1587398924400_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index fc6bba57f..000000000 --- a/hasura/migrations/1587398924400_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - region_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587398924400_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1587398924400_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 5ae0c6dad..000000000 --- a/hasura/migrations/1587398924400_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587408177344_alter_table_public_documents_add_column_type/down.yaml b/hasura/migrations/1587408177344_alter_table_public_documents_add_column_type/down.yaml deleted file mode 100644 index ffaf72873..000000000 --- a/hasura/migrations/1587408177344_alter_table_public_documents_add_column_type/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" DROP COLUMN "type"; - type: run_sql diff --git a/hasura/migrations/1587408177344_alter_table_public_documents_add_column_type/up.yaml b/hasura/migrations/1587408177344_alter_table_public_documents_add_column_type/up.yaml deleted file mode 100644 index a0b878812..000000000 --- a/hasura/migrations/1587408177344_alter_table_public_documents_add_column_type/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" ADD COLUMN "type" text NULL; - type: run_sql diff --git a/hasura/migrations/1587408195798_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1587408195798_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 3d103eca5..000000000 --- a/hasura/migrations/1587408195798_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - id - - jobid - - key - - name - - thumb_url - - updated_at - - uploaded_by - - url - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587408195798_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1587408195798_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index f933e16a3..000000000 --- a/hasura/migrations/1587408195798_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - id - - invoiceid - - jobid - - key - - name - - thumb_url - - type - - updated_at - - uploaded_by - - url - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587408202367_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1587408202367_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 2c0ca6648..000000000 --- a/hasura/migrations/1587408202367_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - id - - jobid - - key - - name - - thumb_url - - updated_at - - uploaded_by - - url - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1587408202367_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1587408202367_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 687d76892..000000000 --- a/hasura/migrations/1587408202367_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - key - - name - - thumb_url - - type - - uploaded_by - - url - - created_at - - updated_at - - id - - invoiceid - - jobid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1587408207340_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1587408207340_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 515730b23..000000000 --- a/hasura/migrations/1587408207340_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - id - - jobid - - key - - name - - thumb_url - - updated_at - - uploaded_by - - url - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587408207340_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1587408207340_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 1f0b95e9a..000000000 --- a/hasura/migrations/1587408207340_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_update_permission -- args: - permission: - columns: - - key - - name - - thumb_url - - type - - uploaded_by - - url - - created_at - - updated_at - - id - - invoiceid - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587417631171_run_sql_migration/down.yaml b/hasura/migrations/1587417631171_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1587417631171_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1587417631171_run_sql_migration/up.yaml b/hasura/migrations/1587417631171_run_sql_migration/up.yaml deleted file mode 100644 index 0ec8bfdb8..000000000 --- a/hasura/migrations/1587417631171_run_sql_migration/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "ALTER TABLE documents \r\nDROP COLUMN url ;\r\nALTER TABLE documents \r\nDROP - COLUMN thumb_url ;" - type: run_sql diff --git a/hasura/migrations/1587417677218_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1587417677218_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index dd7923c4f..000000000 --- a/hasura/migrations/1587417677218_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1587417677218_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1587417677218_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 56a5dbd56..000000000 --- a/hasura/migrations/1587417677218_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - uploaded_by - - jobid - - name - - key - - invoiceid - - type - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1587417682323_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1587417682323_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 51466ca34..000000000 --- a/hasura/migrations/1587417682323_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1587417682323_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1587417682323_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index a0e4d6d93..000000000 --- a/hasura/migrations/1587417682323_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - key - - name - - type - - uploaded_by - - created_at - - updated_at - - id - - invoiceid - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587417686752_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1587417686752_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index d9430d461..000000000 --- a/hasura/migrations/1587417686752_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1587417686752_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1587417686752_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 44c270411..000000000 --- a/hasura/migrations/1587417686752_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - permission: - columns: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: documents - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587502167707_alter_table_public_bodyshops_add_column_production_config/down.yaml b/hasura/migrations/1587502167707_alter_table_public_bodyshops_add_column_production_config/down.yaml deleted file mode 100644 index 70dfbcb5b..000000000 --- a/hasura/migrations/1587502167707_alter_table_public_bodyshops_add_column_production_config/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "production_config"; - type: run_sql diff --git a/hasura/migrations/1587502167707_alter_table_public_bodyshops_add_column_production_config/up.yaml b/hasura/migrations/1587502167707_alter_table_public_bodyshops_add_column_production_config/up.yaml deleted file mode 100644 index 8a29feb94..000000000 --- a/hasura/migrations/1587502167707_alter_table_public_bodyshops_add_column_production_config/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "production_config" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1587502177435_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1587502177435_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index f107f80d5..000000000 --- a/hasura/migrations/1587502177435_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587502177435_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1587502177435_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index aac8c63cf..000000000 --- a/hasura/migrations/1587502177435_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587502183855_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1587502183855_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 5ae0c6dad..000000000 --- a/hasura/migrations/1587502183855_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587502183855_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1587502183855_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index f7578cf44..000000000 --- a/hasura/migrations/1587502183855_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587508371415_alter_table_public_jobs_add_column_production_vars/down.yaml b/hasura/migrations/1587508371415_alter_table_public_jobs_add_column_production_vars/down.yaml deleted file mode 100644 index 4131f707b..000000000 --- a/hasura/migrations/1587508371415_alter_table_public_jobs_add_column_production_vars/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "production_vars"; - type: run_sql diff --git a/hasura/migrations/1587508371415_alter_table_public_jobs_add_column_production_vars/up.yaml b/hasura/migrations/1587508371415_alter_table_public_jobs_add_column_production_vars/up.yaml deleted file mode 100644 index 78f05a5a0..000000000 --- a/hasura/migrations/1587508371415_alter_table_public_jobs_add_column_production_vars/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "production_vars" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1587508379993_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1587508379993_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 785d7b5d3..000000000 --- a/hasura/migrations/1587508379993_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,254 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1587508379993_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1587508379993_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index f38c14033..000000000 --- a/hasura/migrations/1587508379993_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,255 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1587508390066_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1587508390066_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4364ff937..000000000 --- a/hasura/migrations/1587508390066_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,252 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587508390066_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1587508390066_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index c5748c7d9..000000000 --- a/hasura/migrations/1587508390066_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,253 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587508396891_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1587508396891_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 06e843cbc..000000000 --- a/hasura/migrations/1587508396891_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,254 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587508396891_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1587508396891_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index b7b713a69..000000000 --- a/hasura/migrations/1587508396891_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,255 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587574775829_run_sql_migration/down.yaml b/hasura/migrations/1587574775829_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1587574775829_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1587574775829_run_sql_migration/up.yaml b/hasura/migrations/1587574775829_run_sql_migration/up.yaml deleted file mode 100644 index 2619b9b6c..000000000 --- a/hasura/migrations/1587574775829_run_sql_migration/up.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "create view productionview as \r\nselect j.id ,\r\n - \ j.status ,\r\n j.ro_number ,\r\n j.est_number - \ ,\r\n j.ownr_fn ,\r\n j.ownr_ln ,\r\n - \ j.v_model_yr ,\r\n j.v_model_desc ,\r\n j.clm_no - \ ,\r\n j.v_make_desc ,\r\n j.v_color - \ ,\r\n j.plate_no ,\r\n j.actual_in - \ ,\r\n j.scheduled_completion ,\r\n j.scheduled_delivery - \ ,\r\n j.ins_co_nm ,\r\n j.clm_total ,\r\n - \ j.ownr_ph1 ,\r\n j.special_coverage_policy ,\r\n j.production_vars - \ ,\r\n lab.labhrs, lar.larhrs\r\n from public.jobs j\r\n left - join \r\n (select l.jobid, sum(l.mod_lb_hrs ) labhrs from public.joblines - l where mod_lbr_ty = 'LAB' group by l.jobid ) lab on lab.jobid = j.id \r\n - \ left join (select l2.jobid, sum(l2.mod_lb_hrs ) larhrs from public.joblines - l2 where mod_lbr_ty = 'LAR' group by l2.jobid ) lar on lar.jobid = j.id\r\n - \ where j.inproduction =true;" - type: run_sql -- args: - name: productionview - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1587574953110_create_relationship_bodyshop_public_table_productionview/down.yaml b/hasura/migrations/1587574953110_create_relationship_bodyshop_public_table_productionview/down.yaml deleted file mode 100644 index c8bccabac..000000000 --- a/hasura/migrations/1587574953110_create_relationship_bodyshop_public_table_productionview/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: bodyshop - table: - name: productionview - schema: public - type: drop_relationship diff --git a/hasura/migrations/1587574953110_create_relationship_bodyshop_public_table_productionview/up.yaml b/hasura/migrations/1587574953110_create_relationship_bodyshop_public_table_productionview/up.yaml deleted file mode 100644 index f8844bb39..000000000 --- a/hasura/migrations/1587574953110_create_relationship_bodyshop_public_table_productionview/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - name: bodyshop - table: - name: productionview - schema: public - using: - manual_configuration: - column_mapping: - id: id - remote_table: - name: jobs - schema: public - type: create_object_relationship diff --git a/hasura/migrations/1587575091197_run_sql_migration/down.yaml b/hasura/migrations/1587575091197_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1587575091197_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1587575091197_run_sql_migration/up.yaml b/hasura/migrations/1587575091197_run_sql_migration/up.yaml deleted file mode 100644 index a537dc96a..000000000 --- a/hasura/migrations/1587575091197_run_sql_migration/up.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE VIEW \"public\".\"productionview\" AS \n SELECT j.id,\n - \ j.status,\n j.ro_number,\n j.est_number,\n j.ownr_fn,\n j.ownr_ln,\n - \ j.v_model_yr,\n j.v_model_desc,\n j.clm_no,\n j.v_make_desc,\n - \ j.v_color,\n j.plate_no,\n j.actual_in,\n j.scheduled_completion,\n - \ j.scheduled_delivery,\n j.ins_co_nm,\n j.clm_total,\n j.ownr_ph1,\n - \ j.special_coverage_policy,\n j.production_vars,\n lab.labhrs,\n lar.larhrs,\n - \ j.shopid\n FROM ((jobs j\n LEFT JOIN ( SELECT l.jobid,\n sum(l.mod_lb_hrs) - AS labhrs\n FROM joblines l\n WHERE (l.mod_lbr_ty = 'LAB'::text)\n - \ GROUP BY l.jobid) lab ON ((lab.jobid = j.id)))\n LEFT JOIN ( SELECT - l2.jobid,\n sum(l2.mod_lb_hrs) AS larhrs\n FROM joblines - l2\n WHERE (l2.mod_lbr_ty = 'LAR'::text)\n GROUP BY l2.jobid) - lar ON ((lar.jobid = j.id)))\n WHERE (j.inproduction = true);" - type: run_sql diff --git a/hasura/migrations/1587575103804_drop_relationship_bodyshop_public_table_productionview/down.yaml b/hasura/migrations/1587575103804_drop_relationship_bodyshop_public_table_productionview/down.yaml deleted file mode 100644 index cceca611c..000000000 --- a/hasura/migrations/1587575103804_drop_relationship_bodyshop_public_table_productionview/down.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - name: bodyshop - table: - name: productionview - schema: public - using: - foreign_key_constraint_on: id - type: create_object_relationship diff --git a/hasura/migrations/1587575103804_drop_relationship_bodyshop_public_table_productionview/up.yaml b/hasura/migrations/1587575103804_drop_relationship_bodyshop_public_table_productionview/up.yaml deleted file mode 100644 index c8bccabac..000000000 --- a/hasura/migrations/1587575103804_drop_relationship_bodyshop_public_table_productionview/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: bodyshop - table: - name: productionview - schema: public - type: drop_relationship diff --git a/hasura/migrations/1587575121219_create_relationship_bodyshop_public_table_productionview/down.yaml b/hasura/migrations/1587575121219_create_relationship_bodyshop_public_table_productionview/down.yaml deleted file mode 100644 index c8bccabac..000000000 --- a/hasura/migrations/1587575121219_create_relationship_bodyshop_public_table_productionview/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: bodyshop - table: - name: productionview - schema: public - type: drop_relationship diff --git a/hasura/migrations/1587575121219_create_relationship_bodyshop_public_table_productionview/up.yaml b/hasura/migrations/1587575121219_create_relationship_bodyshop_public_table_productionview/up.yaml deleted file mode 100644 index b91854674..000000000 --- a/hasura/migrations/1587575121219_create_relationship_bodyshop_public_table_productionview/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - name: bodyshop - table: - name: productionview - schema: public - using: - manual_configuration: - column_mapping: - shopid: id - remote_table: - name: bodyshops - schema: public - type: create_object_relationship diff --git a/hasura/migrations/1587575154011_update_permission_user_public_table_productionview/down.yaml b/hasura/migrations/1587575154011_update_permission_user_public_table_productionview/down.yaml deleted file mode 100644 index d2ca2e22f..000000000 --- a/hasura/migrations/1587575154011_update_permission_user_public_table_productionview/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: productionview - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1587575154011_update_permission_user_public_table_productionview/up.yaml b/hasura/migrations/1587575154011_update_permission_user_public_table_productionview/up.yaml deleted file mode 100644 index 197dd8d08..000000000 --- a/hasura/migrations/1587575154011_update_permission_user_public_table_productionview/up.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - id - - status - - ro_number - - est_number - - ownr_fn - - ownr_ln - - v_model_yr - - v_model_desc - - clm_no - - v_make_desc - - v_color - - plate_no - - actual_in - - scheduled_completion - - scheduled_delivery - - ins_co_nm - - clm_total - - ownr_ph1 - - special_coverage_policy - - production_vars - - labhrs - - larhrs - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: productionview - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587662612682_alter_table_public_joblines_add_column_removed/down.yaml b/hasura/migrations/1587662612682_alter_table_public_joblines_add_column_removed/down.yaml deleted file mode 100644 index c7e3cffdb..000000000 --- a/hasura/migrations/1587662612682_alter_table_public_joblines_add_column_removed/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" DROP COLUMN "removed"; - type: run_sql diff --git a/hasura/migrations/1587662612682_alter_table_public_joblines_add_column_removed/up.yaml b/hasura/migrations/1587662612682_alter_table_public_joblines_add_column_removed/up.yaml deleted file mode 100644 index 708dec3bc..000000000 --- a/hasura/migrations/1587662612682_alter_table_public_joblines_add_column_removed/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" ADD COLUMN "removed" boolean NOT NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1587662623164_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1587662623164_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index df8b59464..000000000 --- a/hasura/migrations/1587662623164_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - unq_seq - - line_ind - - line_desc - - part_type - - oem_partno - - est_seq - - db_ref - - line_ref - - tax_part - - db_price - - act_price - - part_qty - - alt_partno - - mod_lbr_ty - - db_hrs - - mod_lb_hrs - - lbr_op - - lbr_amt - - glass_flag - - price_inc - - alt_part_i - - price_j - - cert_part - - alt_co_id - - alt_overrd - - alt_partm - - prt_dsmk_p - - prt_dsmk_m - - lbr_inc - - lbr_hrs_j - - lbr_typ_j - - lbr_op_j - - paint_stg - - paint_tone - - lbr_tax - - misc_amt - - misc_sublt - - misc_tax - - bett_type - - bett_pctg - - bett_amt - - bett_tax - - op_code_desc - - status - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1587662623164_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1587662623164_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index b538e5cd6..000000000 --- a/hasura/migrations/1587662623164_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1587662633919_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1587662633919_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 317c3b0d8..000000000 --- a/hasura/migrations/1587662633919_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - op_code_desc - - part_type - - status - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587662633919_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1587662633919_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 38bb4c509..000000000 --- a/hasura/migrations/1587662633919_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587662641941_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1587662641941_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index a04baffe3..000000000 --- a/hasura/migrations/1587662641941_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - alt_overrd - - alt_part_i - - bett_tax - - cert_part - - glass_flag - - lbr_hrs_j - - lbr_inc - - lbr_op_j - - lbr_tax - - lbr_typ_j - - misc_sublt - - misc_tax - - price_inc - - price_j - - tax_part - - est_seq - - paint_stg - - paint_tone - - part_qty - - unq_seq - - act_price - - bett_amt - - bett_pctg - - db_hrs - - db_price - - lbr_amt - - line_ref - - misc_amt - - mod_lb_hrs - - prt_dsmk_m - - prt_dsmk_p - - alt_co_id - - alt_partm - - alt_partno - - bett_type - - db_ref - - lbr_op - - line_desc - - line_ind - - mod_lbr_ty - - oem_partno - - op_code_desc - - part_type - - status - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587662641941_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1587662641941_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 179d1c4d2..000000000 --- a/hasura/migrations/1587662641941_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587663736545_alter_table_public_joblines_add_column_line_no/down.yaml b/hasura/migrations/1587663736545_alter_table_public_joblines_add_column_line_no/down.yaml deleted file mode 100644 index d5935b182..000000000 --- a/hasura/migrations/1587663736545_alter_table_public_joblines_add_column_line_no/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" DROP COLUMN "line_no"; - type: run_sql diff --git a/hasura/migrations/1587663736545_alter_table_public_joblines_add_column_line_no/up.yaml b/hasura/migrations/1587663736545_alter_table_public_joblines_add_column_line_no/up.yaml deleted file mode 100644 index c1ab9a269..000000000 --- a/hasura/migrations/1587663736545_alter_table_public_joblines_add_column_line_no/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" ADD COLUMN "line_no" integer NULL; - type: run_sql diff --git a/hasura/migrations/1587663746281_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1587663746281_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index b538e5cd6..000000000 --- a/hasura/migrations/1587663746281_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1587663746281_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1587663746281_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 7e1e53880..000000000 --- a/hasura/migrations/1587663746281_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,78 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1587663753304_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1587663753304_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 38bb4c509..000000000 --- a/hasura/migrations/1587663753304_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587663753304_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1587663753304_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index ce9b320bc..000000000 --- a/hasura/migrations/1587663753304_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1587663758715_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1587663758715_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 179d1c4d2..000000000 --- a/hasura/migrations/1587663758715_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1587663758715_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1587663758715_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 9320e3bbc..000000000 --- a/hasura/migrations/1587663758715_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,78 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1588004408193_run_sql_migration/down.yaml b/hasura/migrations/1588004408193_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1588004408193_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1588004408193_run_sql_migration/up.yaml b/hasura/migrations/1588004408193_run_sql_migration/up.yaml deleted file mode 100644 index 553260f5b..000000000 --- a/hasura/migrations/1588004408193_run_sql_migration/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - cascade: true - read_only: false - sql: |- - CREATE OR REPLACE FUNCTION public.search_owner(search text) - RETURNS SETOF owners - LANGUAGE sql - STABLE - AS $function$ - SELECT * - FROM owners - WHERE - search <% (ownr_fn || ' ' || ownr_ln || ' ' || ownr_co_nm) - ORDER BY - similarity(search, (ownr_fn || ' ' || ownr_ln || ' ' || ownr_co_nm)) DESC - LIMIT 5; - $function$; - type: run_sql diff --git a/hasura/migrations/1588004740163_run_sql_migration/down.yaml b/hasura/migrations/1588004740163_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1588004740163_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1588004740163_run_sql_migration/up.yaml b/hasura/migrations/1588004740163_run_sql_migration/up.yaml deleted file mode 100644 index ae81ed8f6..000000000 --- a/hasura/migrations/1588004740163_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - read_only: false - sql: drop index idx_owner_name; - type: run_sql diff --git a/hasura/migrations/1588004759773_run_sql_migration/down.yaml b/hasura/migrations/1588004759773_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1588004759773_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1588004759773_run_sql_migration/up.yaml b/hasura/migrations/1588004759773_run_sql_migration/up.yaml deleted file mode 100644 index 9c1b123b5..000000000 --- a/hasura/migrations/1588004759773_run_sql_migration/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - cascade: true - read_only: false - sql: |- - CREATE INDEX idx_owner_name ON owners USING GIN ((ownr_fn || ' ' || ownr_ln || ' ' || ownr_co_nm) - gin_trgm_ops); - type: run_sql diff --git a/hasura/migrations/1588021481109_run_sql_migration/down.yaml b/hasura/migrations/1588021481109_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1588021481109_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1588021481109_run_sql_migration/up.yaml b/hasura/migrations/1588021481109_run_sql_migration/up.yaml deleted file mode 100644 index b34cb0c10..000000000 --- a/hasura/migrations/1588021481109_run_sql_migration/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE VIEW \"public\".\"productionview\" AS \n SELECT j.id,\n - \ j.status,\n j.ro_number,\n j.est_number,\n j.ownr_fn,\n j.ownr_ln,\n - \ j.v_model_yr,\n j.v_model_desc,\n j.clm_no,\n j.v_make_desc,\n - \ j.v_color,\n j.plate_no,\n j.actual_in,\n j.scheduled_completion,\n - \ j.scheduled_delivery,\n j.ins_co_nm,\n j.clm_total,\n j.ownr_ph1,\n - \ j.special_coverage_policy,\n j.production_vars,\n lab.labhrs,\n lar.larhrs,\n - \ j.shopid,\n parts.*\n FROM ((jobs j\n LEFT JOIN ( SELECT l.jobid,\n - \ sum(l.mod_lb_hrs) AS labhrs\n FROM joblines l\n WHERE - (l.mod_lbr_ty = 'LAB'::text)\n GROUP BY l.jobid) lab ON ((lab.jobid - = j.id)))\n LEFT JOIN ( SELECT l2.jobid,\n sum(l2.mod_lb_hrs) - AS larhrs\n FROM joblines l2\n WHERE (l2.mod_lbr_ty = 'LAR'::text)\n - \ GROUP BY l2.jobid) lar ON ((lar.jobid = j.id)))\n left join ( select - \ l3.jobid, json_agg(l3.status) partcount from joblines l3 group by l3.jobid, - l3.status ) parts on parts.jobid = j.id\n WHERE (j.inproduction = true);" - type: run_sql diff --git a/hasura/migrations/1588021714218_update_permission_user_public_table_productionview/down.yaml b/hasura/migrations/1588021714218_update_permission_user_public_table_productionview/down.yaml deleted file mode 100644 index b828c15b8..000000000 --- a/hasura/migrations/1588021714218_update_permission_user_public_table_productionview/down.yaml +++ /dev/null @@ -1,48 +0,0 @@ -- args: - role: user - table: - name: productionview - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - status - - ro_number - - est_number - - ownr_fn - - ownr_ln - - v_model_yr - - v_model_desc - - clm_no - - v_make_desc - - v_color - - plate_no - - actual_in - - scheduled_completion - - scheduled_delivery - - ins_co_nm - - clm_total - - ownr_ph1 - - special_coverage_policy - - production_vars - - labhrs - - larhrs - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: productionview - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588021714218_update_permission_user_public_table_productionview/up.yaml b/hasura/migrations/1588021714218_update_permission_user_public_table_productionview/up.yaml deleted file mode 100644 index 2e6370f32..000000000 --- a/hasura/migrations/1588021714218_update_permission_user_public_table_productionview/up.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: productionview - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_in - - clm_no - - clm_total - - est_number - - id - - ins_co_nm - - jobid - - labhrs - - larhrs - - ownr_fn - - ownr_ln - - ownr_ph1 - - partcount - - plate_no - - production_vars - - ro_number - - scheduled_completion - - scheduled_delivery - - shopid - - special_coverage_policy - - status - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: productionview - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588023147082_update_permission_user_public_table_productionview/down.yaml b/hasura/migrations/1588023147082_update_permission_user_public_table_productionview/down.yaml deleted file mode 100644 index 2e6370f32..000000000 --- a/hasura/migrations/1588023147082_update_permission_user_public_table_productionview/down.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: productionview - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_in - - clm_no - - clm_total - - est_number - - id - - ins_co_nm - - jobid - - labhrs - - larhrs - - ownr_fn - - ownr_ln - - ownr_ph1 - - partcount - - plate_no - - production_vars - - ro_number - - scheduled_completion - - scheduled_delivery - - shopid - - special_coverage_policy - - status - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: productionview - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588023147082_update_permission_user_public_table_productionview/up.yaml b/hasura/migrations/1588023147082_update_permission_user_public_table_productionview/up.yaml deleted file mode 100644 index dbf40fea5..000000000 --- a/hasura/migrations/1588023147082_update_permission_user_public_table_productionview/up.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - role: user - table: - name: productionview - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_in - - clm_no - - clm_total - - est_number - - id - - ins_co_nm - - jobid - - labhrs - - larhrs - - ownr_fn - - ownr_ln - - ownr_ph1 - - plate_no - - production_vars - - ro_number - - scheduled_completion - - scheduled_delivery - - shopid - - special_coverage_policy - - status - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: productionview - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588023310053_drop_view_public_productionview/down.yaml b/hasura/migrations/1588023310053_drop_view_public_productionview/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1588023310053_drop_view_public_productionview/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1588023310053_drop_view_public_productionview/up.yaml b/hasura/migrations/1588023310053_drop_view_public_productionview/up.yaml deleted file mode 100644 index 6e88a06bd..000000000 --- a/hasura/migrations/1588023310053_drop_view_public_productionview/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP VIEW "public"."productionview"; - type: run_sql diff --git a/hasura/migrations/1588023324274_run_sql_migration/down.yaml b/hasura/migrations/1588023324274_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1588023324274_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1588023324274_run_sql_migration/up.yaml b/hasura/migrations/1588023324274_run_sql_migration/up.yaml deleted file mode 100644 index 087db6700..000000000 --- a/hasura/migrations/1588023324274_run_sql_migration/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE VIEW \"public\".\"productionview\" AS \n SELECT j.id,\n - \ j.status,\n j.ro_number,\n j.est_number,\n j.ownr_fn,\n j.ownr_ln,\n - \ j.v_model_yr,\n j.v_model_desc,\n j.clm_no,\n j.v_make_desc,\n - \ j.v_color,\n j.plate_no,\n j.actual_in,\n j.scheduled_completion,\n - \ j.scheduled_delivery,\n j.ins_co_nm,\n j.clm_total,\n j.ownr_ph1,\n - \ j.special_coverage_policy,\n j.production_vars,\n lab.labhrs,\n lar.larhrs,\n - \ j.shopid,\n parts.partcount\n FROM ((jobs j\n LEFT JOIN ( SELECT - l.jobid,\n sum(l.mod_lb_hrs) AS labhrs\n FROM joblines - l\n WHERE (l.mod_lbr_ty = 'LAB'::text)\n GROUP BY l.jobid) - lab ON ((lab.jobid = j.id)))\n LEFT JOIN ( SELECT l2.jobid,\n sum(l2.mod_lb_hrs) - AS larhrs\n FROM joblines l2\n WHERE (l2.mod_lbr_ty = 'LAR'::text)\n - \ GROUP BY l2.jobid) lar ON ((lar.jobid = j.id)))\n left join ( select - \ l3.jobid, json_agg(l3.status) partcount from joblines l3 group by l3.jobid - ) parts on parts.jobid = j.id\n WHERE (j.inproduction = true);" - type: run_sql -- args: - name: productionview - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1588023349497_create_relationship_bodyshop_public_table_productionview/down.yaml b/hasura/migrations/1588023349497_create_relationship_bodyshop_public_table_productionview/down.yaml deleted file mode 100644 index c8bccabac..000000000 --- a/hasura/migrations/1588023349497_create_relationship_bodyshop_public_table_productionview/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: bodyshop - table: - name: productionview - schema: public - type: drop_relationship diff --git a/hasura/migrations/1588023349497_create_relationship_bodyshop_public_table_productionview/up.yaml b/hasura/migrations/1588023349497_create_relationship_bodyshop_public_table_productionview/up.yaml deleted file mode 100644 index b91854674..000000000 --- a/hasura/migrations/1588023349497_create_relationship_bodyshop_public_table_productionview/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - name: bodyshop - table: - name: productionview - schema: public - using: - manual_configuration: - column_mapping: - shopid: id - remote_table: - name: bodyshops - schema: public - type: create_object_relationship diff --git a/hasura/migrations/1588023375186_update_permission_user_public_table_productionview/down.yaml b/hasura/migrations/1588023375186_update_permission_user_public_table_productionview/down.yaml deleted file mode 100644 index d2ca2e22f..000000000 --- a/hasura/migrations/1588023375186_update_permission_user_public_table_productionview/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: productionview - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1588023375186_update_permission_user_public_table_productionview/up.yaml b/hasura/migrations/1588023375186_update_permission_user_public_table_productionview/up.yaml deleted file mode 100644 index 4b1ca46d8..000000000 --- a/hasura/migrations/1588023375186_update_permission_user_public_table_productionview/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - id - - status - - ro_number - - est_number - - ownr_fn - - ownr_ln - - v_model_yr - - v_model_desc - - clm_no - - v_make_desc - - v_color - - plate_no - - actual_in - - scheduled_completion - - scheduled_delivery - - ins_co_nm - - clm_total - - ownr_ph1 - - special_coverage_policy - - production_vars - - labhrs - - larhrs - - shopid - - partcount - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: productionview - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588355454260_alter_table_public_users_add_column_fcmtokens/down.yaml b/hasura/migrations/1588355454260_alter_table_public_users_add_column_fcmtokens/down.yaml deleted file mode 100644 index fa89d7f1a..000000000 --- a/hasura/migrations/1588355454260_alter_table_public_users_add_column_fcmtokens/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."users" DROP COLUMN "fcmtokens"; - type: run_sql diff --git a/hasura/migrations/1588355454260_alter_table_public_users_add_column_fcmtokens/up.yaml b/hasura/migrations/1588355454260_alter_table_public_users_add_column_fcmtokens/up.yaml deleted file mode 100644 index 309f7df2e..000000000 --- a/hasura/migrations/1588355454260_alter_table_public_users_add_column_fcmtokens/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."users" ADD COLUMN "fcmtokens" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1588355462630_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1588355462630_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 4e6739f81..000000000 --- a/hasura/migrations/1588355462630_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_insert_permission -- args: - permission: - check: {} - columns: - - authid - - email - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: users - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1588355462630_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1588355462630_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index beebfb46a..000000000 --- a/hasura/migrations/1588355462630_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_insert_permission -- args: - permission: - check: {} - columns: - - authid - - email - - fcmtokens - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: users - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1588355471991_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1588355471991_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index bf559d77f..000000000 --- a/hasura/migrations/1588355471991_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - email - - authid - - created_at - - updated_at - computed_fields: [] - filter: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588355471991_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1588355471991_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 044bd7a4b..000000000 --- a/hasura/migrations/1588355471991_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - authid - - email - - fcmtokens - computed_fields: [] - filter: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588355478259_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1588355478259_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 044bd7a4b..000000000 --- a/hasura/migrations/1588355478259_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - authid - - email - - fcmtokens - computed_fields: [] - filter: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588355478259_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1588355478259_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 14839d69a..000000000 --- a/hasura/migrations/1588355478259_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - authid - - created_at - - email - - fcmtokens - - updated_at - computed_fields: [] - filter: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588355488534_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1588355488534_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 88023a450..000000000 --- a/hasura/migrations/1588355488534_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_update_permission -- args: - permission: - columns: - - authid - - email - - created_at - - updated_at - filter: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: users - schema: public - type: create_update_permission diff --git a/hasura/migrations/1588355488534_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1588355488534_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index d4d268e13..000000000 --- a/hasura/migrations/1588355488534_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_update_permission -- args: - permission: - columns: - - authid - - email - - fcmtokens - filter: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: users - schema: public - type: create_update_permission diff --git a/hasura/migrations/1588358447309_alter_table_public_users_alter_column_fcmtokens/down.yaml b/hasura/migrations/1588358447309_alter_table_public_users_alter_column_fcmtokens/down.yaml deleted file mode 100644 index 74651d839..000000000 --- a/hasura/migrations/1588358447309_alter_table_public_users_alter_column_fcmtokens/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."users" ALTER COLUMN "fcmtokens" DROP DEFAULT; - type: run_sql diff --git a/hasura/migrations/1588358447309_alter_table_public_users_alter_column_fcmtokens/up.yaml b/hasura/migrations/1588358447309_alter_table_public_users_alter_column_fcmtokens/up.yaml deleted file mode 100644 index 118c31118..000000000 --- a/hasura/migrations/1588358447309_alter_table_public_users_alter_column_fcmtokens/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."users" ALTER COLUMN "fcmtokens" SET DEFAULT '{}'::jsonb; - type: run_sql diff --git a/hasura/migrations/1588704131761_alter_table_public_invoices_add_column_federal_tax_rate/down.yaml b/hasura/migrations/1588704131761_alter_table_public_invoices_add_column_federal_tax_rate/down.yaml deleted file mode 100644 index 24e6ffc88..000000000 --- a/hasura/migrations/1588704131761_alter_table_public_invoices_add_column_federal_tax_rate/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."invoices" DROP COLUMN "federal_tax_rate"; - type: run_sql diff --git a/hasura/migrations/1588704131761_alter_table_public_invoices_add_column_federal_tax_rate/up.yaml b/hasura/migrations/1588704131761_alter_table_public_invoices_add_column_federal_tax_rate/up.yaml deleted file mode 100644 index 4c06cca2d..000000000 --- a/hasura/migrations/1588704131761_alter_table_public_invoices_add_column_federal_tax_rate/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."invoices" ADD COLUMN "federal_tax_rate" numeric NOT - NULL DEFAULT 0; - type: run_sql diff --git a/hasura/migrations/1588704142534_alter_table_public_invoices_add_column_state_tax_rate/down.yaml b/hasura/migrations/1588704142534_alter_table_public_invoices_add_column_state_tax_rate/down.yaml deleted file mode 100644 index 19059eaab..000000000 --- a/hasura/migrations/1588704142534_alter_table_public_invoices_add_column_state_tax_rate/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."invoices" DROP COLUMN "state_tax_rate"; - type: run_sql diff --git a/hasura/migrations/1588704142534_alter_table_public_invoices_add_column_state_tax_rate/up.yaml b/hasura/migrations/1588704142534_alter_table_public_invoices_add_column_state_tax_rate/up.yaml deleted file mode 100644 index b5ed8aadc..000000000 --- a/hasura/migrations/1588704142534_alter_table_public_invoices_add_column_state_tax_rate/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."invoices" ADD COLUMN "state_tax_rate" numeric NOT NULL - DEFAULT 0; - type: run_sql diff --git a/hasura/migrations/1588704154625_alter_table_public_invoices_add_column_local_tax_rate/down.yaml b/hasura/migrations/1588704154625_alter_table_public_invoices_add_column_local_tax_rate/down.yaml deleted file mode 100644 index 295172295..000000000 --- a/hasura/migrations/1588704154625_alter_table_public_invoices_add_column_local_tax_rate/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."invoices" DROP COLUMN "local_tax_rate"; - type: run_sql diff --git a/hasura/migrations/1588704154625_alter_table_public_invoices_add_column_local_tax_rate/up.yaml b/hasura/migrations/1588704154625_alter_table_public_invoices_add_column_local_tax_rate/up.yaml deleted file mode 100644 index c7fb4cfba..000000000 --- a/hasura/migrations/1588704154625_alter_table_public_invoices_add_column_local_tax_rate/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."invoices" ADD COLUMN "local_tax_rate" numeric NOT NULL - DEFAULT 0; - type: run_sql diff --git a/hasura/migrations/1588704166538_update_permission_user_public_table_invoices/down.yaml b/hasura/migrations/1588704166538_update_permission_user_public_table_invoices/down.yaml deleted file mode 100644 index 0ec004109..000000000 --- a/hasura/migrations/1588704166538_update_permission_user_public_table_invoices/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: invoices - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - vendorid - - jobid - - date - - due_date - - exported - - exported_at - - is_credit_memo - - total - - invoice_number - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoices - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1588704166538_update_permission_user_public_table_invoices/up.yaml b/hasura/migrations/1588704166538_update_permission_user_public_table_invoices/up.yaml deleted file mode 100644 index 687709b1e..000000000 --- a/hasura/migrations/1588704166538_update_permission_user_public_table_invoices/up.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: invoices - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoices - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1588704173695_update_permission_user_public_table_invoices/down.yaml b/hasura/migrations/1588704173695_update_permission_user_public_table_invoices/down.yaml deleted file mode 100644 index d52d9cdc5..000000000 --- a/hasura/migrations/1588704173695_update_permission_user_public_table_invoices/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: invoices - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - exported - - is_credit_memo - - date - - due_date - - total - - invoice_number - - created_at - - exported_at - - updated_at - - id - - jobid - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: invoices - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588704173695_update_permission_user_public_table_invoices/up.yaml b/hasura/migrations/1588704173695_update_permission_user_public_table_invoices/up.yaml deleted file mode 100644 index d4f9086a3..000000000 --- a/hasura/migrations/1588704173695_update_permission_user_public_table_invoices/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: invoices - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: invoices - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588704180439_update_permission_user_public_table_invoices/down.yaml b/hasura/migrations/1588704180439_update_permission_user_public_table_invoices/down.yaml deleted file mode 100644 index 4d4938a0a..000000000 --- a/hasura/migrations/1588704180439_update_permission_user_public_table_invoices/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: invoices - schema: public - type: drop_update_permission -- args: - permission: - columns: - - exported - - is_credit_memo - - date - - due_date - - total - - invoice_number - - created_at - - exported_at - - updated_at - - id - - jobid - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoices - schema: public - type: create_update_permission diff --git a/hasura/migrations/1588704180439_update_permission_user_public_table_invoices/up.yaml b/hasura/migrations/1588704180439_update_permission_user_public_table_invoices/up.yaml deleted file mode 100644 index c1638595a..000000000 --- a/hasura/migrations/1588704180439_update_permission_user_public_table_invoices/up.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: invoices - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoices - schema: public - type: create_update_permission diff --git a/hasura/migrations/1588704900361_alter_table_public_bodyshops_add_column_invoice_tax_rates/down.yaml b/hasura/migrations/1588704900361_alter_table_public_bodyshops_add_column_invoice_tax_rates/down.yaml deleted file mode 100644 index f0754b343..000000000 --- a/hasura/migrations/1588704900361_alter_table_public_bodyshops_add_column_invoice_tax_rates/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "invoice_tax_rates"; - type: run_sql diff --git a/hasura/migrations/1588704900361_alter_table_public_bodyshops_add_column_invoice_tax_rates/up.yaml b/hasura/migrations/1588704900361_alter_table_public_bodyshops_add_column_invoice_tax_rates/up.yaml deleted file mode 100644 index 5592d4d25..000000000 --- a/hasura/migrations/1588704900361_alter_table_public_bodyshops_add_column_invoice_tax_rates/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "invoice_tax_rates" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1588704928185_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1588704928185_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index aac8c63cf..000000000 --- a/hasura/migrations/1588704928185_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588704928185_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1588704928185_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index e047a4088..000000000 --- a/hasura/migrations/1588704928185_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,48 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588704935620_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1588704935620_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index f7578cf44..000000000 --- a/hasura/migrations/1588704935620_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1588704935620_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1588704935620_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 345dd574c..000000000 --- a/hasura/migrations/1588704935620_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1588705546595_alter_table_public_invoicelines_add_column_applicable_taxes/down.yaml b/hasura/migrations/1588705546595_alter_table_public_invoicelines_add_column_applicable_taxes/down.yaml deleted file mode 100644 index ec63d6d9f..000000000 --- a/hasura/migrations/1588705546595_alter_table_public_invoicelines_add_column_applicable_taxes/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."invoicelines" DROP COLUMN "applicable_taxes"; - type: run_sql diff --git a/hasura/migrations/1588705546595_alter_table_public_invoicelines_add_column_applicable_taxes/up.yaml b/hasura/migrations/1588705546595_alter_table_public_invoicelines_add_column_applicable_taxes/up.yaml deleted file mode 100644 index 8facd11e3..000000000 --- a/hasura/migrations/1588705546595_alter_table_public_invoicelines_add_column_applicable_taxes/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."invoicelines" ADD COLUMN "applicable_taxes" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1588705553835_update_permission_user_public_table_invoicelines/down.yaml b/hasura/migrations/1588705553835_update_permission_user_public_table_invoicelines/down.yaml deleted file mode 100644 index 8e91e50c6..000000000 --- a/hasura/migrations/1588705553835_update_permission_user_public_table_invoicelines/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_insert_permission -- args: - permission: - check: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - invoiceid - - line_desc - - actual_price - - actual_cost - - cost_center - - joblineid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoicelines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1588705553835_update_permission_user_public_table_invoicelines/up.yaml b/hasura/migrations/1588705553835_update_permission_user_public_table_invoicelines/up.yaml deleted file mode 100644 index c168c6100..000000000 --- a/hasura/migrations/1588705553835_update_permission_user_public_table_invoicelines/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_insert_permission -- args: - permission: - check: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - invoiceid - - joblineid - - line_desc - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoicelines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1588705558916_update_permission_user_public_table_invoicelines/down.yaml b/hasura/migrations/1588705558916_update_permission_user_public_table_invoicelines/down.yaml deleted file mode 100644 index 871106bbf..000000000 --- a/hasura/migrations/1588705558916_update_permission_user_public_table_invoicelines/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_cost - - actual_price - - cost_center - - line_desc - - created_at - - updated_at - - joblineid - - id - - invoiceid - computed_fields: [] - filter: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: invoicelines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588705558916_update_permission_user_public_table_invoicelines/up.yaml b/hasura/migrations/1588705558916_update_permission_user_public_table_invoicelines/up.yaml deleted file mode 100644 index 1415d9617..000000000 --- a/hasura/migrations/1588705558916_update_permission_user_public_table_invoicelines/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - invoiceid - - joblineid - - line_desc - - updated_at - computed_fields: [] - filter: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: invoicelines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588705564365_update_permission_user_public_table_invoicelines/down.yaml b/hasura/migrations/1588705564365_update_permission_user_public_table_invoicelines/down.yaml deleted file mode 100644 index 07a761b5d..000000000 --- a/hasura/migrations/1588705564365_update_permission_user_public_table_invoicelines/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_cost - - actual_price - - cost_center - - line_desc - - created_at - - updated_at - - joblineid - - id - - invoiceid - filter: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoicelines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1588705564365_update_permission_user_public_table_invoicelines/up.yaml b/hasura/migrations/1588705564365_update_permission_user_public_table_invoicelines/up.yaml deleted file mode 100644 index 5dca3857f..000000000 --- a/hasura/migrations/1588705564365_update_permission_user_public_table_invoicelines/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - invoiceid - - joblineid - - line_desc - - updated_at - filter: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoicelines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1588713434755_alter_table_public_invoicelines_add_column_quantity/down.yaml b/hasura/migrations/1588713434755_alter_table_public_invoicelines_add_column_quantity/down.yaml deleted file mode 100644 index 4db9dac2f..000000000 --- a/hasura/migrations/1588713434755_alter_table_public_invoicelines_add_column_quantity/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."invoicelines" DROP COLUMN "quantity"; - type: run_sql diff --git a/hasura/migrations/1588713434755_alter_table_public_invoicelines_add_column_quantity/up.yaml b/hasura/migrations/1588713434755_alter_table_public_invoicelines_add_column_quantity/up.yaml deleted file mode 100644 index 925355596..000000000 --- a/hasura/migrations/1588713434755_alter_table_public_invoicelines_add_column_quantity/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."invoicelines" ADD COLUMN "quantity" integer NOT NULL - DEFAULT 1; - type: run_sql diff --git a/hasura/migrations/1588713453362_update_permission_user_public_table_invoicelines/down.yaml b/hasura/migrations/1588713453362_update_permission_user_public_table_invoicelines/down.yaml deleted file mode 100644 index c168c6100..000000000 --- a/hasura/migrations/1588713453362_update_permission_user_public_table_invoicelines/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_insert_permission -- args: - permission: - check: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - invoiceid - - joblineid - - line_desc - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoicelines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1588713453362_update_permission_user_public_table_invoicelines/up.yaml b/hasura/migrations/1588713453362_update_permission_user_public_table_invoicelines/up.yaml deleted file mode 100644 index cfdd74ff3..000000000 --- a/hasura/migrations/1588713453362_update_permission_user_public_table_invoicelines/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_insert_permission -- args: - permission: - check: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - invoiceid - - joblineid - - line_desc - - quantity - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoicelines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1588713460636_update_permission_user_public_table_invoicelines/down.yaml b/hasura/migrations/1588713460636_update_permission_user_public_table_invoicelines/down.yaml deleted file mode 100644 index 1415d9617..000000000 --- a/hasura/migrations/1588713460636_update_permission_user_public_table_invoicelines/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - invoiceid - - joblineid - - line_desc - - updated_at - computed_fields: [] - filter: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: invoicelines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588713460636_update_permission_user_public_table_invoicelines/up.yaml b/hasura/migrations/1588713460636_update_permission_user_public_table_invoicelines/up.yaml deleted file mode 100644 index f54972998..000000000 --- a/hasura/migrations/1588713460636_update_permission_user_public_table_invoicelines/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - invoiceid - - joblineid - - line_desc - - quantity - - updated_at - computed_fields: [] - filter: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: invoicelines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588713469291_update_permission_user_public_table_invoicelines/down.yaml b/hasura/migrations/1588713469291_update_permission_user_public_table_invoicelines/down.yaml deleted file mode 100644 index 5dca3857f..000000000 --- a/hasura/migrations/1588713469291_update_permission_user_public_table_invoicelines/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - invoiceid - - joblineid - - line_desc - - updated_at - filter: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoicelines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1588713469291_update_permission_user_public_table_invoicelines/up.yaml b/hasura/migrations/1588713469291_update_permission_user_public_table_invoicelines/up.yaml deleted file mode 100644 index af16d5b8b..000000000 --- a/hasura/migrations/1588713469291_update_permission_user_public_table_invoicelines/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: invoicelines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - invoiceid - - joblineid - - line_desc - - quantity - - updated_at - filter: - invoice: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: invoicelines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1588869001045_run_sql_migration/down.yaml b/hasura/migrations/1588869001045_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1588869001045_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1588869001045_run_sql_migration/up.yaml b/hasura/migrations/1588869001045_run_sql_migration/up.yaml deleted file mode 100644 index 0203370b6..000000000 --- a/hasura/migrations/1588869001045_run_sql_migration/up.yaml +++ /dev/null @@ -1,19 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE VIEW \"public\".\"productionview\" AS \n SELECT j.id,\n - \ j.status,\n j.ro_number,\n j.est_number,\n j.ownr_fn,\n j.ownr_ln,\n - \ j.v_model_yr,\n j.v_model_desc,\n j.clm_no,\n j.v_make_desc,\n - \ j.v_color,\n j.plate_no,\n j.actual_in,\n j.scheduled_completion,\n - \ j.scheduled_delivery,\n j.ins_co_nm,\n j.clm_total,\n j.ownr_ph1,\n - \ j.special_coverage_policy,\n j.production_vars,\n lab.labhrs,\n lar.larhrs,\n - \ j.shopid,\n parts.partcount\n FROM (((jobs j\n LEFT JOIN ( SELECT - l.jobid,\n sum(l.mod_lb_hrs) AS labhrs\n FROM joblines - l\n WHERE (l.mod_lbr_ty = 'LAB'::text)\n GROUP BY l.jobid) - lab ON ((lab.jobid = j.id)))\n LEFT JOIN ( SELECT l2.jobid,\n sum(l2.mod_lb_hrs) - AS larhrs\n FROM joblines l2\n WHERE (l2.mod_lbr_ty = 'LAR'::text)\n - \ GROUP BY l2.jobid) lar ON ((lar.jobid = j.id)))\n LEFT JOIN ( - SELECT l3.jobid,\n json_agg(l3.status) AS partcount\n FROM - joblines l3\n where l3.part_type IS NOT NULL\n GROUP BY l3.jobid) - parts ON ((parts.jobid = j.id)))\n WHERE (j.inproduction = true);" - type: run_sql diff --git a/hasura/migrations/1588963534664_update_permission_user_public_table_productionview/down.yaml b/hasura/migrations/1588963534664_update_permission_user_public_table_productionview/down.yaml deleted file mode 100644 index 149d9a760..000000000 --- a/hasura/migrations/1588963534664_update_permission_user_public_table_productionview/down.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - role: user - table: - name: productionview - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - status - - ro_number - - est_number - - ownr_fn - - ownr_ln - - v_model_yr - - v_model_desc - - clm_no - - v_make_desc - - v_color - - plate_no - - actual_in - - scheduled_completion - - scheduled_delivery - - ins_co_nm - - clm_total - - ownr_ph1 - - special_coverage_policy - - production_vars - - labhrs - - larhrs - - shopid - - partcount - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: productionview - schema: public - type: create_select_permission diff --git a/hasura/migrations/1588963534664_update_permission_user_public_table_productionview/up.yaml b/hasura/migrations/1588963534664_update_permission_user_public_table_productionview/up.yaml deleted file mode 100644 index 846706108..000000000 --- a/hasura/migrations/1588963534664_update_permission_user_public_table_productionview/up.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - role: user - table: - name: productionview - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - id - - status - - ro_number - - est_number - - ownr_fn - - ownr_ln - - v_model_yr - - v_model_desc - - clm_no - - v_make_desc - - v_color - - plate_no - - actual_in - - scheduled_completion - - scheduled_delivery - - ins_co_nm - - clm_total - - ownr_ph1 - - special_coverage_policy - - production_vars - - labhrs - - larhrs - - shopid - - partcount - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: productionview - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589220968554_alter_table_public_bodyshops_add_column_inhousevendorid/down.yaml b/hasura/migrations/1589220968554_alter_table_public_bodyshops_add_column_inhousevendorid/down.yaml deleted file mode 100644 index 7206ea7d4..000000000 --- a/hasura/migrations/1589220968554_alter_table_public_bodyshops_add_column_inhousevendorid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "inhousevendorid"; - type: run_sql diff --git a/hasura/migrations/1589220968554_alter_table_public_bodyshops_add_column_inhousevendorid/up.yaml b/hasura/migrations/1589220968554_alter_table_public_bodyshops_add_column_inhousevendorid/up.yaml deleted file mode 100644 index 4069e563e..000000000 --- a/hasura/migrations/1589220968554_alter_table_public_bodyshops_add_column_inhousevendorid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "inhousevendorid" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1589220979739_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1589220979739_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index e047a4088..000000000 --- a/hasura/migrations/1589220979739_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,48 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589220979739_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1589220979739_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 5cdd042d5..000000000 --- a/hasura/migrations/1589220979739_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589220986849_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1589220986849_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 345dd574c..000000000 --- a/hasura/migrations/1589220986849_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - insurance_vendor_id - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1589220986849_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1589220986849_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 529715952..000000000 --- a/hasura/migrations/1589220986849_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1589225896113_alter_table_public_parts_order_lines_add_column_quantity/down.yaml b/hasura/migrations/1589225896113_alter_table_public_parts_order_lines_add_column_quantity/down.yaml deleted file mode 100644 index ca30c5c80..000000000 --- a/hasura/migrations/1589225896113_alter_table_public_parts_order_lines_add_column_quantity/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_order_lines" DROP COLUMN "quantity"; - type: run_sql diff --git a/hasura/migrations/1589225896113_alter_table_public_parts_order_lines_add_column_quantity/up.yaml b/hasura/migrations/1589225896113_alter_table_public_parts_order_lines_add_column_quantity/up.yaml deleted file mode 100644 index abe92d82f..000000000 --- a/hasura/migrations/1589225896113_alter_table_public_parts_order_lines_add_column_quantity/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_order_lines" ADD COLUMN "quantity" numeric NOT - NULL DEFAULT 1; - type: run_sql diff --git a/hasura/migrations/1589225907303_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1589225907303_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index 484182ba8..000000000 --- a/hasura/migrations/1589225907303_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_insert_permission -- args: - permission: - check: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - orderid - - job_line_id - - line_desc - - oem_partno - - db_price - - act_price - - status - - line_remarks - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1589225907303_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1589225907303_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index dfdecc4bb..000000000 --- a/hasura/migrations/1589225907303_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_insert_permission -- args: - permission: - check: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1589225914182_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1589225914182_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index f147077ae..000000000 --- a/hasura/migrations/1589225914182_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - act_price - - db_price - - line_desc - - line_remarks - - oem_partno - - status - - created_at - - updated_at - - id - - job_line_id - - orderid - computed_fields: [] - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order_lines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589225914182_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1589225914182_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index e057ea23a..000000000 --- a/hasura/migrations/1589225914182_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - act_price - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - computed_fields: [] - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order_lines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589225921325_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1589225921325_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index 84f9e1e6d..000000000 --- a/hasura/migrations/1589225921325_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - db_price - - line_desc - - line_remarks - - oem_partno - - status - - created_at - - updated_at - - id - - job_line_id - - orderid - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1589225921325_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1589225921325_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 6588e2ab3..000000000 --- a/hasura/migrations/1589225921325_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1589302634242_update_permission_user_public_table_templates/down.yaml b/hasura/migrations/1589302634242_update_permission_user_public_table_templates/down.yaml deleted file mode 100644 index f82fe23ab..000000000 --- a/hasura/migrations/1589302634242_update_permission_user_public_table_templates/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: templates - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1589302634242_update_permission_user_public_table_templates/up.yaml b/hasura/migrations/1589302634242_update_permission_user_public_table_templates/up.yaml deleted file mode 100644 index a02ba11ce..000000000 --- a/hasura/migrations/1589302634242_update_permission_user_public_table_templates/up.yaml +++ /dev/null @@ -1,29 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - _or: - - bodyshopid: - _is_null: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - html - - name - - query - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: templates - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1589303851671_update_permission_user_public_table_templates/down.yaml b/hasura/migrations/1589303851671_update_permission_user_public_table_templates/down.yaml deleted file mode 100644 index 6bffc1e0e..000000000 --- a/hasura/migrations/1589303851671_update_permission_user_public_table_templates/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: templates - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1589303851671_update_permission_user_public_table_templates/up.yaml b/hasura/migrations/1589303851671_update_permission_user_public_table_templates/up.yaml deleted file mode 100644 index ea9c5ad70..000000000 --- a/hasura/migrations/1589303851671_update_permission_user_public_table_templates/up.yaml +++ /dev/null @@ -1,19 +0,0 @@ -- args: - permission: - filter: - _or: - - bodyshopid: - _is_null: false - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: templates - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1589307600089_alter_table_public_bodyshops_add_column_intakechecklist/down.yaml b/hasura/migrations/1589307600089_alter_table_public_bodyshops_add_column_intakechecklist/down.yaml deleted file mode 100644 index 5f6a8a89d..000000000 --- a/hasura/migrations/1589307600089_alter_table_public_bodyshops_add_column_intakechecklist/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "intakechecklist"; - type: run_sql diff --git a/hasura/migrations/1589307600089_alter_table_public_bodyshops_add_column_intakechecklist/up.yaml b/hasura/migrations/1589307600089_alter_table_public_bodyshops_add_column_intakechecklist/up.yaml deleted file mode 100644 index 324c622c8..000000000 --- a/hasura/migrations/1589307600089_alter_table_public_bodyshops_add_column_intakechecklist/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "intakechecklist" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1589307611118_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1589307611118_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 5cdd042d5..000000000 --- a/hasura/migrations/1589307611118_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589307611118_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1589307611118_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 24fcc62ed..000000000 --- a/hasura/migrations/1589307611118_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589307625647_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1589307625647_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 529715952..000000000 --- a/hasura/migrations/1589307625647_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1589307625647_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1589307625647_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 477056eb1..000000000 --- a/hasura/migrations/1589307625647_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,48 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1589354344575_alter_table_public_jobs_add_column_intakechecklist/down.yaml b/hasura/migrations/1589354344575_alter_table_public_jobs_add_column_intakechecklist/down.yaml deleted file mode 100644 index 425276ebd..000000000 --- a/hasura/migrations/1589354344575_alter_table_public_jobs_add_column_intakechecklist/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "intakechecklist"; - type: run_sql diff --git a/hasura/migrations/1589354344575_alter_table_public_jobs_add_column_intakechecklist/up.yaml b/hasura/migrations/1589354344575_alter_table_public_jobs_add_column_intakechecklist/up.yaml deleted file mode 100644 index 518e79a63..000000000 --- a/hasura/migrations/1589354344575_alter_table_public_jobs_add_column_intakechecklist/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "intakechecklist" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1589354360622_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1589354360622_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index f38c14033..000000000 --- a/hasura/migrations/1589354360622_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,255 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1589354360622_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1589354360622_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 962088486..000000000 --- a/hasura/migrations/1589354360622_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,256 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1589354371131_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1589354371131_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index c5748c7d9..000000000 --- a/hasura/migrations/1589354371131_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,253 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589354371131_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1589354371131_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 5d889adc3..000000000 --- a/hasura/migrations/1589354371131_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,254 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589354381499_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1589354381499_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index b7b713a69..000000000 --- a/hasura/migrations/1589354381499_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,255 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1589354381499_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1589354381499_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 2cc028154..000000000 --- a/hasura/migrations/1589354381499_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,256 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1589481044730_alter_table_public_parts_orders_add_column_return/down.yaml b/hasura/migrations/1589481044730_alter_table_public_parts_orders_add_column_return/down.yaml deleted file mode 100644 index 3198ebcbb..000000000 --- a/hasura/migrations/1589481044730_alter_table_public_parts_orders_add_column_return/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_orders" DROP COLUMN "return"; - type: run_sql diff --git a/hasura/migrations/1589481044730_alter_table_public_parts_orders_add_column_return/up.yaml b/hasura/migrations/1589481044730_alter_table_public_parts_orders_add_column_return/up.yaml deleted file mode 100644 index 5653ccd3b..000000000 --- a/hasura/migrations/1589481044730_alter_table_public_parts_orders_add_column_return/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_orders" ADD COLUMN "return" boolean NOT NULL - DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1589481062644_update_permission_user_public_table_parts_orders/down.yaml b/hasura/migrations/1589481062644_update_permission_user_public_table_parts_orders/down.yaml deleted file mode 100644 index 8e537f4d3..000000000 --- a/hasura/migrations/1589481062644_update_permission_user_public_table_parts_orders/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: parts_orders - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - deliver_by - - order_date - - order_number - - status - - user_email - - created_at - - updated_at - - id - - jobid - - vendorid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_orders - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1589481062644_update_permission_user_public_table_parts_orders/up.yaml b/hasura/migrations/1589481062644_update_permission_user_public_table_parts_orders/up.yaml deleted file mode 100644 index 28ec7048c..000000000 --- a/hasura/migrations/1589481062644_update_permission_user_public_table_parts_orders/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: parts_orders - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - order_number - - return - - status - - updated_at - - user_email - - vendorid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_orders - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1589481097225_update_permission_user_public_table_parts_orders/down.yaml b/hasura/migrations/1589481097225_update_permission_user_public_table_parts_orders/down.yaml deleted file mode 100644 index 9165bf42c..000000000 --- a/hasura/migrations/1589481097225_update_permission_user_public_table_parts_orders/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: parts_orders - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - deliver_by - - order_date - - order_number - - status - - user_email - - created_at - - updated_at - - id - - jobid - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_orders - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589481097225_update_permission_user_public_table_parts_orders/up.yaml b/hasura/migrations/1589481097225_update_permission_user_public_table_parts_orders/up.yaml deleted file mode 100644 index 92571d4b8..000000000 --- a/hasura/migrations/1589481097225_update_permission_user_public_table_parts_orders/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: parts_orders - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - order_number - - return - - status - - updated_at - - user_email - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_orders - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589491932788_alter_table_public_parts_orders_add_column_returnfrominvoice/down.yaml b/hasura/migrations/1589491932788_alter_table_public_parts_orders_add_column_returnfrominvoice/down.yaml deleted file mode 100644 index 5335afc04..000000000 --- a/hasura/migrations/1589491932788_alter_table_public_parts_orders_add_column_returnfrominvoice/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_orders" DROP COLUMN "returnfrominvoice"; - type: run_sql diff --git a/hasura/migrations/1589491932788_alter_table_public_parts_orders_add_column_returnfrominvoice/up.yaml b/hasura/migrations/1589491932788_alter_table_public_parts_orders_add_column_returnfrominvoice/up.yaml deleted file mode 100644 index 4aecfe94f..000000000 --- a/hasura/migrations/1589491932788_alter_table_public_parts_orders_add_column_returnfrominvoice/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_orders" ADD COLUMN "returnfrominvoice" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1589491953447_set_fk_public_parts_orders_returnfrominvoice/down.yaml b/hasura/migrations/1589491953447_set_fk_public_parts_orders_returnfrominvoice/down.yaml deleted file mode 100644 index e3b0136a4..000000000 --- a/hasura/migrations/1589491953447_set_fk_public_parts_orders_returnfrominvoice/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."parts_orders" drop constraint "parts_orders_returnfrominvoice_fkey"; - type: run_sql diff --git a/hasura/migrations/1589491953447_set_fk_public_parts_orders_returnfrominvoice/up.yaml b/hasura/migrations/1589491953447_set_fk_public_parts_orders_returnfrominvoice/up.yaml deleted file mode 100644 index 6cbd7ae88..000000000 --- a/hasura/migrations/1589491953447_set_fk_public_parts_orders_returnfrominvoice/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."parts_orders" - add constraint "parts_orders_returnfrominvoice_fkey" - foreign key ("returnfrominvoice") - references "public"."invoices" - ("id") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1589491967880_track_all_relationships/down.yaml b/hasura/migrations/1589491967880_track_all_relationships/down.yaml deleted file mode 100644 index b39ac7746..000000000 --- a/hasura/migrations/1589491967880_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: parts_orders - table: - name: invoices - schema: public - type: drop_relationship -- args: - relationship: invoice - table: - name: parts_orders - schema: public - type: drop_relationship diff --git a/hasura/migrations/1589491967880_track_all_relationships/up.yaml b/hasura/migrations/1589491967880_track_all_relationships/up.yaml deleted file mode 100644 index e4de73926..000000000 --- a/hasura/migrations/1589491967880_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: parts_orders - table: - name: invoices - schema: public - using: - foreign_key_constraint_on: - column: returnfrominvoice - table: - name: parts_orders - schema: public - type: create_array_relationship -- args: - name: invoice - table: - name: parts_orders - schema: public - using: - foreign_key_constraint_on: returnfrominvoice - type: create_object_relationship diff --git a/hasura/migrations/1589491993267_update_permission_user_public_table_parts_orders/down.yaml b/hasura/migrations/1589491993267_update_permission_user_public_table_parts_orders/down.yaml deleted file mode 100644 index 28ec7048c..000000000 --- a/hasura/migrations/1589491993267_update_permission_user_public_table_parts_orders/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: parts_orders - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - order_number - - return - - status - - updated_at - - user_email - - vendorid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_orders - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1589491993267_update_permission_user_public_table_parts_orders/up.yaml b/hasura/migrations/1589491993267_update_permission_user_public_table_parts_orders/up.yaml deleted file mode 100644 index c63d56109..000000000 --- a/hasura/migrations/1589491993267_update_permission_user_public_table_parts_orders/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: parts_orders - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - order_number - - return - - returnfrominvoice - - status - - updated_at - - user_email - - vendorid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_orders - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1589492000096_update_permission_user_public_table_parts_orders/down.yaml b/hasura/migrations/1589492000096_update_permission_user_public_table_parts_orders/down.yaml deleted file mode 100644 index 92571d4b8..000000000 --- a/hasura/migrations/1589492000096_update_permission_user_public_table_parts_orders/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: parts_orders - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - order_number - - return - - status - - updated_at - - user_email - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_orders - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589492000096_update_permission_user_public_table_parts_orders/up.yaml b/hasura/migrations/1589492000096_update_permission_user_public_table_parts_orders/up.yaml deleted file mode 100644 index b62aca044..000000000 --- a/hasura/migrations/1589492000096_update_permission_user_public_table_parts_orders/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: parts_orders - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - order_number - - return - - returnfrominvoice - - status - - updated_at - - user_email - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_orders - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589492006320_update_permission_user_public_table_parts_orders/down.yaml b/hasura/migrations/1589492006320_update_permission_user_public_table_parts_orders/down.yaml deleted file mode 100644 index 13b4f14d5..000000000 --- a/hasura/migrations/1589492006320_update_permission_user_public_table_parts_orders/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: parts_orders - schema: public - type: drop_update_permission -- args: - permission: - columns: - - deliver_by - - order_date - - order_number - - status - - user_email - - created_at - - updated_at - - id - - jobid - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_orders - schema: public - type: create_update_permission diff --git a/hasura/migrations/1589492006320_update_permission_user_public_table_parts_orders/up.yaml b/hasura/migrations/1589492006320_update_permission_user_public_table_parts_orders/up.yaml deleted file mode 100644 index e5f4bae5f..000000000 --- a/hasura/migrations/1589492006320_update_permission_user_public_table_parts_orders/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: parts_orders - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - order_number - - returnfrominvoice - - status - - updated_at - - user_email - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: parts_orders - schema: public - type: create_update_permission diff --git a/hasura/migrations/1589499599269_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1589499599269_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 5d889adc3..000000000 --- a/hasura/migrations/1589499599269_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,254 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1589499599269_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1589499599269_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index aa79c3907..000000000 --- a/hasura/migrations/1589499599269_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,254 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590010104868_alter_table_public_jobs_add_column_invoice_allocation/down.yaml b/hasura/migrations/1590010104868_alter_table_public_jobs_add_column_invoice_allocation/down.yaml deleted file mode 100644 index 16b75535c..000000000 --- a/hasura/migrations/1590010104868_alter_table_public_jobs_add_column_invoice_allocation/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "invoice_allocation"; - type: run_sql diff --git a/hasura/migrations/1590010104868_alter_table_public_jobs_add_column_invoice_allocation/up.yaml b/hasura/migrations/1590010104868_alter_table_public_jobs_add_column_invoice_allocation/up.yaml deleted file mode 100644 index c15c2c403..000000000 --- a/hasura/migrations/1590010104868_alter_table_public_jobs_add_column_invoice_allocation/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "invoice_allocation" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1590010117414_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1590010117414_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 962088486..000000000 --- a/hasura/migrations/1590010117414_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,256 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590010117414_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1590010117414_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 0a78e16c2..000000000 --- a/hasura/migrations/1590010117414_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590010125521_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1590010125521_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index aa79c3907..000000000 --- a/hasura/migrations/1590010125521_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,254 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590010125521_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1590010125521_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4e4e0f870..000000000 --- a/hasura/migrations/1590010125521_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,255 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590010134425_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1590010134425_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 2cc028154..000000000 --- a/hasura/migrations/1590010134425_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,256 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590010134425_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1590010134425_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index b15051c7a..000000000 --- a/hasura/migrations/1590010134425_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590169457641_create_table_public_csiinvites/down.yaml b/hasura/migrations/1590169457641_create_table_public_csiinvites/down.yaml deleted file mode 100644 index 1bc1a8a07..000000000 --- a/hasura/migrations/1590169457641_create_table_public_csiinvites/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."csiinvites"; - type: run_sql diff --git a/hasura/migrations/1590169457641_create_table_public_csiinvites/up.yaml b/hasura/migrations/1590169457641_create_table_public_csiinvites/up.yaml deleted file mode 100644 index 336e8372a..000000000 --- a/hasura/migrations/1590169457641_create_table_public_csiinvites/up.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"csiinvites\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"jobid\" uuid NOT NULL, \"valid\" boolean NOT NULL - DEFAULT true, \"relateddata\" jsonb, \"bodyshopid\" uuid NOT NULL, \"validuntil\" - date, PRIMARY KEY (\"id\") , FOREIGN KEY (\"jobid\") REFERENCES \"public\".\"jobs\"(\"id\") - ON UPDATE restrict ON DELETE restrict, FOREIGN KEY (\"bodyshopid\") 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_csiinvites_updated_at\"\nBEFORE - UPDATE ON \"public\".\"csiinvites\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_csiinvites_updated_at\" ON \"public\".\"csiinvites\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';" - type: run_sql -- args: - name: csiinvites - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1590169486927_track_all_relationships/down.yaml b/hasura/migrations/1590169486927_track_all_relationships/down.yaml deleted file mode 100644 index 97efcee36..000000000 --- a/hasura/migrations/1590169486927_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: csiinvites - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: csiinvites - schema: public - type: drop_relationship -- args: - relationship: job - table: - name: csiinvites - schema: public - type: drop_relationship -- args: - relationship: csiinvites - table: - name: jobs - schema: public - type: drop_relationship diff --git a/hasura/migrations/1590169486927_track_all_relationships/up.yaml b/hasura/migrations/1590169486927_track_all_relationships/up.yaml deleted file mode 100644 index 4273ffc16..000000000 --- a/hasura/migrations/1590169486927_track_all_relationships/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - name: csiinvites - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: csiinvites - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: csiinvites - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship -- args: - name: job - table: - name: csiinvites - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship -- args: - name: csiinvites - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: csiinvites - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1590169552540_update_permission_user_public_table_csiinvites/down.yaml b/hasura/migrations/1590169552540_update_permission_user_public_table_csiinvites/down.yaml deleted file mode 100644 index a36e524a6..000000000 --- a/hasura/migrations/1590169552540_update_permission_user_public_table_csiinvites/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: csiinvites - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1590169552540_update_permission_user_public_table_csiinvites/up.yaml b/hasura/migrations/1590169552540_update_permission_user_public_table_csiinvites/up.yaml deleted file mode 100644 index 713d020e1..000000000 --- a/hasura/migrations/1590169552540_update_permission_user_public_table_csiinvites/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - valid - - relateddata - - bodyshopid - - validuntil - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csiinvites - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590169569261_update_permission_user_public_table_csiinvites/down.yaml b/hasura/migrations/1590169569261_update_permission_user_public_table_csiinvites/down.yaml deleted file mode 100644 index 80d0cc5a0..000000000 --- a/hasura/migrations/1590169569261_update_permission_user_public_table_csiinvites/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: csiinvites - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1590169569261_update_permission_user_public_table_csiinvites/up.yaml b/hasura/migrations/1590169569261_update_permission_user_public_table_csiinvites/up.yaml deleted file mode 100644 index 7d4ad8c62..000000000 --- a/hasura/migrations/1590169569261_update_permission_user_public_table_csiinvites/up.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - valid - - validuntil - - relateddata - - created_at - - updated_at - - bodyshopid - - id - - jobid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: csiinvites - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590169577215_update_permission_user_public_table_csiinvites/down.yaml b/hasura/migrations/1590169577215_update_permission_user_public_table_csiinvites/down.yaml deleted file mode 100644 index dbdaaf979..000000000 --- a/hasura/migrations/1590169577215_update_permission_user_public_table_csiinvites/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: csiinvites - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1590169577215_update_permission_user_public_table_csiinvites/up.yaml b/hasura/migrations/1590169577215_update_permission_user_public_table_csiinvites/up.yaml deleted file mode 100644 index b64e64027..000000000 --- a/hasura/migrations/1590169577215_update_permission_user_public_table_csiinvites/up.yaml +++ /dev/null @@ -1,29 +0,0 @@ -- args: - permission: - columns: - - valid - - validuntil - - relateddata - - created_at - - updated_at - - bodyshopid - - id - - jobid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csiinvites - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590169605126_update_permission_anonymous_public_table_csiinvites/down.yaml b/hasura/migrations/1590169605126_update_permission_anonymous_public_table_csiinvites/down.yaml deleted file mode 100644 index 242aad1e8..000000000 --- a/hasura/migrations/1590169605126_update_permission_anonymous_public_table_csiinvites/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: csiinvites - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1590169605126_update_permission_anonymous_public_table_csiinvites/up.yaml b/hasura/migrations/1590169605126_update_permission_anonymous_public_table_csiinvites/up.yaml deleted file mode 100644 index e7d622616..000000000 --- a/hasura/migrations/1590169605126_update_permission_anonymous_public_table_csiinvites/up.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - id - - relateddata - - valid - - validuntil - computed_fields: [] - filter: {} - limit: 1 - role: anonymous - table: - name: csiinvites - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590169665926_rename_table_public_csiinvites/down.yaml b/hasura/migrations/1590169665926_rename_table_public_csiinvites/down.yaml deleted file mode 100644 index c6240a91c..000000000 --- a/hasura/migrations/1590169665926_rename_table_public_csiinvites/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."csi" rename to "csiinvites"; - type: run_sql diff --git a/hasura/migrations/1590169665926_rename_table_public_csiinvites/up.yaml b/hasura/migrations/1590169665926_rename_table_public_csiinvites/up.yaml deleted file mode 100644 index 82cfb93ab..000000000 --- a/hasura/migrations/1590169665926_rename_table_public_csiinvites/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."csiinvites" rename to "csi"; - type: run_sql diff --git a/hasura/migrations/1590169695935_alter_table_public_csi_add_column_response/down.yaml b/hasura/migrations/1590169695935_alter_table_public_csi_add_column_response/down.yaml deleted file mode 100644 index da698f126..000000000 --- a/hasura/migrations/1590169695935_alter_table_public_csi_add_column_response/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."csi" DROP COLUMN "response"; - type: run_sql diff --git a/hasura/migrations/1590169695935_alter_table_public_csi_add_column_response/up.yaml b/hasura/migrations/1590169695935_alter_table_public_csi_add_column_response/up.yaml deleted file mode 100644 index d2d83d131..000000000 --- a/hasura/migrations/1590169695935_alter_table_public_csi_add_column_response/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."csi" ADD COLUMN "response" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1590169707794_update_permission_user_public_table_csi/down.yaml b/hasura/migrations/1590169707794_update_permission_user_public_table_csi/down.yaml deleted file mode 100644 index ae2d88377..000000000 --- a/hasura/migrations/1590169707794_update_permission_user_public_table_csi/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - valid - - relateddata - - bodyshopid - - validuntil - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csi - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590169707794_update_permission_user_public_table_csi/up.yaml b/hasura/migrations/1590169707794_update_permission_user_public_table_csi/up.yaml deleted file mode 100644 index ddd5a4897..000000000 --- a/hasura/migrations/1590169707794_update_permission_user_public_table_csi/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - created_at - - id - - jobid - - relateddata - - response - - updated_at - - valid - - validuntil - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csi - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590169716647_update_permission_user_public_table_csi/down.yaml b/hasura/migrations/1590169716647_update_permission_user_public_table_csi/down.yaml deleted file mode 100644 index a608394fd..000000000 --- a/hasura/migrations/1590169716647_update_permission_user_public_table_csi/down.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - valid - - validuntil - - relateddata - - created_at - - updated_at - - bodyshopid - - id - - jobid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: csi - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590169716647_update_permission_user_public_table_csi/up.yaml b/hasura/migrations/1590169716647_update_permission_user_public_table_csi/up.yaml deleted file mode 100644 index ee974fbb7..000000000 --- a/hasura/migrations/1590169716647_update_permission_user_public_table_csi/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - created_at - - id - - jobid - - relateddata - - response - - updated_at - - valid - - validuntil - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: csi - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590169723269_update_permission_user_public_table_csi/down.yaml b/hasura/migrations/1590169723269_update_permission_user_public_table_csi/down.yaml deleted file mode 100644 index ddd5a4897..000000000 --- a/hasura/migrations/1590169723269_update_permission_user_public_table_csi/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - created_at - - id - - jobid - - relateddata - - response - - updated_at - - valid - - validuntil - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csi - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590169723269_update_permission_user_public_table_csi/up.yaml b/hasura/migrations/1590169723269_update_permission_user_public_table_csi/up.yaml deleted file mode 100644 index 78940bde7..000000000 --- a/hasura/migrations/1590169723269_update_permission_user_public_table_csi/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - created_at - - id - - jobid - - relateddata - - updated_at - - valid - - validuntil - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csi - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590169758310_update_permission_anonymous_public_table_csi/down.yaml b/hasura/migrations/1590169758310_update_permission_anonymous_public_table_csi/down.yaml deleted file mode 100644 index b6dceb83a..000000000 --- a/hasura/migrations/1590169758310_update_permission_anonymous_public_table_csi/down.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - role: anonymous - table: - name: csi - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - relateddata - - valid - - validuntil - computed_fields: [] - filter: {} - limit: 1 - role: anonymous - table: - name: csi - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590169758310_update_permission_anonymous_public_table_csi/up.yaml b/hasura/migrations/1590169758310_update_permission_anonymous_public_table_csi/up.yaml deleted file mode 100644 index 00cf0cd18..000000000 --- a/hasura/migrations/1590169758310_update_permission_anonymous_public_table_csi/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: anonymous - table: - name: csi - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - relateddata - - valid - - validuntil - computed_fields: [] - filter: - valid: - _eq: true - limit: 1 - role: anonymous - table: - name: csi - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590169798330_update_permission_anonymous_public_table_csi/down.yaml b/hasura/migrations/1590169798330_update_permission_anonymous_public_table_csi/down.yaml deleted file mode 100644 index 01176a258..000000000 --- a/hasura/migrations/1590169798330_update_permission_anonymous_public_table_csi/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: csi - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1590169798330_update_permission_anonymous_public_table_csi/up.yaml b/hasura/migrations/1590169798330_update_permission_anonymous_public_table_csi/up.yaml deleted file mode 100644 index 48005bc50..000000000 --- a/hasura/migrations/1590169798330_update_permission_anonymous_public_table_csi/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - columns: - - response - - updated_at - filter: - valid: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: anonymous - table: - name: csi - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590169811190_update_permission_anonymous_public_table_csi/down.yaml b/hasura/migrations/1590169811190_update_permission_anonymous_public_table_csi/down.yaml deleted file mode 100644 index e452fbfbd..000000000 --- a/hasura/migrations/1590169811190_update_permission_anonymous_public_table_csi/down.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - role: anonymous - table: - name: csi - schema: public - type: drop_update_permission -- args: - permission: - columns: - - response - - updated_at - filter: - valid: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: anonymous - table: - name: csi - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590169811190_update_permission_anonymous_public_table_csi/up.yaml b/hasura/migrations/1590169811190_update_permission_anonymous_public_table_csi/up.yaml deleted file mode 100644 index bae48de62..000000000 --- a/hasura/migrations/1590169811190_update_permission_anonymous_public_table_csi/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - role: anonymous - table: - name: csi - schema: public - type: drop_update_permission -- args: - permission: - columns: - - response - filter: - valid: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: anonymous - table: - name: csi - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590172385133_create_table_public_csiquestion/down.yaml b/hasura/migrations/1590172385133_create_table_public_csiquestion/down.yaml deleted file mode 100644 index 8c94fd534..000000000 --- a/hasura/migrations/1590172385133_create_table_public_csiquestion/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."csiquestion"; - type: run_sql diff --git a/hasura/migrations/1590172385133_create_table_public_csiquestion/up.yaml b/hasura/migrations/1590172385133_create_table_public_csiquestion/up.yaml deleted file mode 100644 index cb34a6c6d..000000000 --- a/hasura/migrations/1590172385133_create_table_public_csiquestion/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"csiquestion\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"bodyshopid\" uuid NOT NULL, \"current\" boolean NOT - NULL DEFAULT true, \"config\" jsonb, PRIMARY KEY (\"id\") , FOREIGN KEY (\"bodyshopid\") - 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_csiquestion_updated_at\"\nBEFORE - UPDATE ON \"public\".\"csiquestion\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_csiquestion_updated_at\" ON \"public\".\"csiquestion\" - \nIS 'trigger to set value of column \"updated_at\" to current timestamp on - row update';" - type: run_sql -- args: - name: csiquestion - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1590172409241_alter_table_public_csi_add_column_questionset/down.yaml b/hasura/migrations/1590172409241_alter_table_public_csi_add_column_questionset/down.yaml deleted file mode 100644 index a9b42b626..000000000 --- a/hasura/migrations/1590172409241_alter_table_public_csi_add_column_questionset/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."csi" DROP COLUMN "questionset"; - type: run_sql diff --git a/hasura/migrations/1590172409241_alter_table_public_csi_add_column_questionset/up.yaml b/hasura/migrations/1590172409241_alter_table_public_csi_add_column_questionset/up.yaml deleted file mode 100644 index 620690374..000000000 --- a/hasura/migrations/1590172409241_alter_table_public_csi_add_column_questionset/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."csi" ADD COLUMN "questionset" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1590172429767_rename_table_public_csiquestion/down.yaml b/hasura/migrations/1590172429767_rename_table_public_csiquestion/down.yaml deleted file mode 100644 index 6112e4cdb..000000000 --- a/hasura/migrations/1590172429767_rename_table_public_csiquestion/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."csiquestions" rename to "csiquestion"; - type: run_sql diff --git a/hasura/migrations/1590172429767_rename_table_public_csiquestion/up.yaml b/hasura/migrations/1590172429767_rename_table_public_csiquestion/up.yaml deleted file mode 100644 index fe2b8144e..000000000 --- a/hasura/migrations/1590172429767_rename_table_public_csiquestion/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."csiquestion" rename to "csiquestions"; - type: run_sql diff --git a/hasura/migrations/1590172446694_set_fk_public_csi_questionset/down.yaml b/hasura/migrations/1590172446694_set_fk_public_csi_questionset/down.yaml deleted file mode 100644 index df44ccc4b..000000000 --- a/hasura/migrations/1590172446694_set_fk_public_csi_questionset/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."csi" drop constraint "csi_questionset_fkey"; - type: run_sql diff --git a/hasura/migrations/1590172446694_set_fk_public_csi_questionset/up.yaml b/hasura/migrations/1590172446694_set_fk_public_csi_questionset/up.yaml deleted file mode 100644 index c50b62508..000000000 --- a/hasura/migrations/1590172446694_set_fk_public_csi_questionset/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."csi" - add constraint "csi_questionset_fkey" - foreign key ("questionset") - references "public"."csiquestions" - ("id") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1590172453385_track_all_relationships/down.yaml b/hasura/migrations/1590172453385_track_all_relationships/down.yaml deleted file mode 100644 index cf2f4100a..000000000 --- a/hasura/migrations/1590172453385_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: csiquestions - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: csiquestion - table: - name: csi - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: csiquestions - schema: public - type: drop_relationship -- args: - relationship: csis - table: - name: csiquestions - schema: public - type: drop_relationship diff --git a/hasura/migrations/1590172453385_track_all_relationships/up.yaml b/hasura/migrations/1590172453385_track_all_relationships/up.yaml deleted file mode 100644 index 3a3ec4cee..000000000 --- a/hasura/migrations/1590172453385_track_all_relationships/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - name: csiquestions - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: csiquestions - schema: public - type: create_array_relationship -- args: - name: csiquestion - table: - name: csi - schema: public - using: - foreign_key_constraint_on: questionset - type: create_object_relationship -- args: - name: bodyshop - table: - name: csiquestions - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship -- args: - name: csis - table: - name: csiquestions - schema: public - using: - foreign_key_constraint_on: - column: questionset - table: - name: csi - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1590172555010_update_permission_anonymous_public_table_csiquestions/down.yaml b/hasura/migrations/1590172555010_update_permission_anonymous_public_table_csiquestions/down.yaml deleted file mode 100644 index 7f0a4b721..000000000 --- a/hasura/migrations/1590172555010_update_permission_anonymous_public_table_csiquestions/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: anonymous - table: - name: csiquestions - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1590172555010_update_permission_anonymous_public_table_csiquestions/up.yaml b/hasura/migrations/1590172555010_update_permission_anonymous_public_table_csiquestions/up.yaml deleted file mode 100644 index 1140601b0..000000000 --- a/hasura/migrations/1590172555010_update_permission_anonymous_public_table_csiquestions/up.yaml +++ /dev/null @@ -1,14 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - config - - id - computed_fields: [] - filter: {} - limit: 1 - role: anonymous - table: - name: csiquestions - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590172596611_update_permission_user_public_table_csiquestions/down.yaml b/hasura/migrations/1590172596611_update_permission_user_public_table_csiquestions/down.yaml deleted file mode 100644 index 6f9a069f8..000000000 --- a/hasura/migrations/1590172596611_update_permission_user_public_table_csiquestions/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: csiquestions - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1590172596611_update_permission_user_public_table_csiquestions/up.yaml b/hasura/migrations/1590172596611_update_permission_user_public_table_csiquestions/up.yaml deleted file mode 100644 index 4ea47f1f5..000000000 --- a/hasura/migrations/1590172596611_update_permission_user_public_table_csiquestions/up.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - current - - config - - created_at - - updated_at - - bodyshopid - - id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csiquestions - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590172610009_update_permission_user_public_table_csiquestions/down.yaml b/hasura/migrations/1590172610009_update_permission_user_public_table_csiquestions/down.yaml deleted file mode 100644 index a4e6f5707..000000000 --- a/hasura/migrations/1590172610009_update_permission_user_public_table_csiquestions/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: csiquestions - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1590172610009_update_permission_user_public_table_csiquestions/up.yaml b/hasura/migrations/1590172610009_update_permission_user_public_table_csiquestions/up.yaml deleted file mode 100644 index 1a4308a33..000000000 --- a/hasura/migrations/1590172610009_update_permission_user_public_table_csiquestions/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - current - - config - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: csiquestions - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590172617955_update_permission_user_public_table_csiquestions/down.yaml b/hasura/migrations/1590172617955_update_permission_user_public_table_csiquestions/down.yaml deleted file mode 100644 index c3d5fdecf..000000000 --- a/hasura/migrations/1590172617955_update_permission_user_public_table_csiquestions/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: csiquestions - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1590172617955_update_permission_user_public_table_csiquestions/up.yaml b/hasura/migrations/1590172617955_update_permission_user_public_table_csiquestions/up.yaml deleted file mode 100644 index a5f959d90..000000000 --- a/hasura/migrations/1590172617955_update_permission_user_public_table_csiquestions/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - permission: - columns: - - current - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csiquestions - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590184694200_alter_table_public_csi_add_column_completed/down.yaml b/hasura/migrations/1590184694200_alter_table_public_csi_add_column_completed/down.yaml deleted file mode 100644 index ba51b40ae..000000000 --- a/hasura/migrations/1590184694200_alter_table_public_csi_add_column_completed/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."csi" DROP COLUMN "completed"; - type: run_sql diff --git a/hasura/migrations/1590184694200_alter_table_public_csi_add_column_completed/up.yaml b/hasura/migrations/1590184694200_alter_table_public_csi_add_column_completed/up.yaml deleted file mode 100644 index 98289ecd3..000000000 --- a/hasura/migrations/1590184694200_alter_table_public_csi_add_column_completed/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."csi" ADD COLUMN "completed" timestamptz NULL; - type: run_sql diff --git a/hasura/migrations/1590184702149_alter_table_public_csi_alter_column_completed/down.yaml b/hasura/migrations/1590184702149_alter_table_public_csi_alter_column_completed/down.yaml deleted file mode 100644 index 6b99c635c..000000000 --- a/hasura/migrations/1590184702149_alter_table_public_csi_alter_column_completed/down.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."csi" ALTER COLUMN "completed" TYPE timestamp with time - zone; - type: run_sql -- args: - cascade: false - read_only: false - sql: alter table "public"."csi" rename column "completedon" to "completed"; - type: run_sql diff --git a/hasura/migrations/1590184702149_alter_table_public_csi_alter_column_completed/up.yaml b/hasura/migrations/1590184702149_alter_table_public_csi_alter_column_completed/up.yaml deleted file mode 100644 index b9953727f..000000000 --- a/hasura/migrations/1590184702149_alter_table_public_csi_alter_column_completed/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."csi" ALTER COLUMN "completed" TYPE timestamptz; - type: run_sql -- args: - cascade: false - read_only: false - sql: alter table "public"."csi" rename column "completed" to "completedon"; - type: run_sql diff --git a/hasura/migrations/1590184719915_update_permission_user_public_table_csi/down.yaml b/hasura/migrations/1590184719915_update_permission_user_public_table_csi/down.yaml deleted file mode 100644 index ee974fbb7..000000000 --- a/hasura/migrations/1590184719915_update_permission_user_public_table_csi/down.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - created_at - - id - - jobid - - relateddata - - response - - updated_at - - valid - - validuntil - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: csi - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590184719915_update_permission_user_public_table_csi/up.yaml b/hasura/migrations/1590184719915_update_permission_user_public_table_csi/up.yaml deleted file mode 100644 index a45ce22ba..000000000 --- a/hasura/migrations/1590184719915_update_permission_user_public_table_csi/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - completedon - - created_at - - id - - jobid - - questionset - - relateddata - - response - - updated_at - - valid - - validuntil - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: csi - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590184732654_update_permission_anonymous_public_table_csi/down.yaml b/hasura/migrations/1590184732654_update_permission_anonymous_public_table_csi/down.yaml deleted file mode 100644 index bae48de62..000000000 --- a/hasura/migrations/1590184732654_update_permission_anonymous_public_table_csi/down.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - role: anonymous - table: - name: csi - schema: public - type: drop_update_permission -- args: - permission: - columns: - - response - filter: - valid: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: anonymous - table: - name: csi - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590184732654_update_permission_anonymous_public_table_csi/up.yaml b/hasura/migrations/1590184732654_update_permission_anonymous_public_table_csi/up.yaml deleted file mode 100644 index f12bda76e..000000000 --- a/hasura/migrations/1590184732654_update_permission_anonymous_public_table_csi/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: anonymous - table: - name: csi - schema: public - type: drop_update_permission -- args: - permission: - columns: - - completedon - - response - - valid - filter: - valid: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: anonymous - table: - name: csi - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590698750370_alter_table_public_owners_add_column_accountingid/down.yaml b/hasura/migrations/1590698750370_alter_table_public_owners_add_column_accountingid/down.yaml deleted file mode 100644 index 92c2567cf..000000000 --- a/hasura/migrations/1590698750370_alter_table_public_owners_add_column_accountingid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."owners" DROP COLUMN "accountingid"; - type: run_sql diff --git a/hasura/migrations/1590698750370_alter_table_public_owners_add_column_accountingid/up.yaml b/hasura/migrations/1590698750370_alter_table_public_owners_add_column_accountingid/up.yaml deleted file mode 100644 index 7d129d044..000000000 --- a/hasura/migrations/1590698750370_alter_table_public_owners_add_column_accountingid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."owners" ADD COLUMN "accountingid" text NULL; - type: run_sql diff --git a/hasura/migrations/1590698778968_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1590698778968_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 21addc58a..000000000 --- a/hasura/migrations/1590698778968_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - ownr_fn - - ownr_ln - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ea - - ownr_ph1 - - preferred_contact - - allow_text_message - - shopid - - ownr_ph2 - - ownr_co_nm - - ownr_title - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590698778968_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1590698778968_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 60a6a7f0a..000000000 --- a/hasura/migrations/1590698778968_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - accountingid - - allow_text_message - - created_at - - id - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - shopid - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590698784975_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1590698784975_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 85ab7c994..000000000 --- a/hasura/migrations/1590698784975_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590698784975_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1590698784975_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index fea901502..000000000 --- a/hasura/migrations/1590698784975_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingid - - allow_text_message - - created_at - - id - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - shopid - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590698791753_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1590698791753_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 9609517ec..000000000 --- a/hasura/migrations/1590698791753_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission -- args: - permission: - columns: - - allow_text_message - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590698791753_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1590698791753_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index ed9944e65..000000000 --- a/hasura/migrations/1590698791753_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingid - - allow_text_message - - created_at - - id - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - shopid - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590765528126_run_sql_migration/down.yaml b/hasura/migrations/1590765528126_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1590765528126_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1590765528126_run_sql_migration/up.yaml b/hasura/migrations/1590765528126_run_sql_migration/up.yaml deleted file mode 100644 index 8929a2bce..000000000 --- a/hasura/migrations/1590765528126_run_sql_migration/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE INDEX idx_job_search ON jobs USING GIN ((ownr_fn || ' ' || ownr_ln - || ' ' || ownr_co_nm\r\n|| ' ' || ro_number \r\n|| ' ' || est_number \r\n|| - ' ' || clm_no \r\n|| ' ' || ownr_ph1 \r\n|| ' ' || ownr_ea \r\n|| ' ' || plate_no - )\r\n gin_trgm_ops);" - type: run_sql diff --git a/hasura/migrations/1590765808875_run_sql_migration/down.yaml b/hasura/migrations/1590765808875_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1590765808875_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1590765808875_run_sql_migration/up.yaml b/hasura/migrations/1590765808875_run_sql_migration/up.yaml deleted file mode 100644 index 10e83981e..000000000 --- a/hasura/migrations/1590765808875_run_sql_migration/up.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE\r\nOR REPLACE FUNCTION public.search_jobs(search text) RETURNS SETOF - jobs LANGUAGE sql STABLE AS $function$\r\nSELECT\r\n *\r\nFROM\r\n jobs\r\nWHERE\r\n - \ search <% (ownr_fn || ' ' || ownr_ln || ' ' || ownr_co_nm\r\n|| ' ' || ro_number - \r\n|| ' ' || est_number \r\n|| ' ' || clm_no \r\n|| ' ' || ownr_ph1 \r\n|| - ' ' || ownr_ea \r\n|| ' ' || plate_no)\r\nORDER BY\r\n similarity(\r\n search,\r\n - \ (ownr_fn || ' ' || ownr_ln || ' ' || ownr_co_nm\r\n|| ' ' || ro_number - \r\n|| ' ' || est_number \r\n|| ' ' || clm_no \r\n|| ' ' || ownr_ph1 \r\n|| - ' ' || ownr_ea \r\n|| ' ' || plate_no)\r\n ) DESC\r\n$function$;" - type: run_sql diff --git a/hasura/migrations/1590766570195_run_sql_migration/down.yaml b/hasura/migrations/1590766570195_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1590766570195_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1590766570195_run_sql_migration/up.yaml b/hasura/migrations/1590766570195_run_sql_migration/up.yaml deleted file mode 100644 index d4bc49864..000000000 --- a/hasura/migrations/1590766570195_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - read_only: false - sql: drop index idx_job_search; - type: run_sql diff --git a/hasura/migrations/1590766913775_run_sql_migration/down.yaml b/hasura/migrations/1590766913775_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1590766913775_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1590766913775_run_sql_migration/up.yaml b/hasura/migrations/1590766913775_run_sql_migration/up.yaml deleted file mode 100644 index cb3cc4253..000000000 --- a/hasura/migrations/1590766913775_run_sql_migration/up.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE INDEX idx_jobs_ownrfn ON jobs\r\nUSING GIN (ownr_fn gin_trgm_ops);\r\n\r\nCREATE - INDEX idx_jobs_ownrln ON jobs\r\nUSING GIN (ownr_ln gin_trgm_ops);\r\n\r\nCREATE - INDEX idx_jobs_estnumber ON jobs\r\nUSING GIN (cast (est_number as text) gin_trgm_ops);\r\n\r\nCREATE - INDEX idx_jobs_ronumber ON jobs\r\nUSING GIN (ro_number gin_trgm_ops);\r\n\r\nCREATE - INDEX idx_jobs_clmno ON jobs\r\nUSING GIN (clm_no gin_trgm_ops);\r\n\r\nCREATE - INDEX idx_jobs_plateno ON jobs\r\nUSING GIN (plate_no gin_trgm_ops);\r\n\r\nCREATE - INDEX idx_jobs_vmakedesc ON jobs\r\nUSING GIN (v_make_desc gin_trgm_ops);\r\n\r\nCREATE - INDEX idx_jobs_vmodeldesc ON jobs\r\nUSING GIN (v_model_desc gin_trgm_ops);" - type: run_sql diff --git a/hasura/migrations/1590767016519_run_sql_migration/down.yaml b/hasura/migrations/1590767016519_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1590767016519_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1590767016519_run_sql_migration/up.yaml b/hasura/migrations/1590767016519_run_sql_migration/up.yaml deleted file mode 100644 index d51c130c6..000000000 --- a/hasura/migrations/1590767016519_run_sql_migration/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_jobs(search text)\r\n RETURNS SETOF - jobs\r\n LANGUAGE sql\r\n STABLE\r\nAS $function$\r\nSELECT\r\n *\r\nFROM\r\n - \ jobs\r\nWHERE\r\n search <% (ownr_fn) OR\r\n search <% (ownr_ln) OR\r\n - \ search <% (cast(est_number as text)) OR\r\n search <% (ro_number) OR\r\n - \ search <% (clm_no) OR\r\n search <% (plate_no) OR\r\n search <% (v_make_desc) - OR\r\n search <% (v_model_desc) \r\n\r\n$function$;" - type: run_sql diff --git a/hasura/migrations/1590768879487_run_sql_migration/down.yaml b/hasura/migrations/1590768879487_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1590768879487_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1590768879487_run_sql_migration/up.yaml b/hasura/migrations/1590768879487_run_sql_migration/up.yaml deleted file mode 100644 index b65680f48..000000000 --- a/hasura/migrations/1590768879487_run_sql_migration/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_jobs(search text)\r\n RETURNS SETOF - jobs\r\n LANGUAGE plpgsql\r\n STABLE\r\nAS $function$\r\n\r\nBEGIN\r\n if search - = '' then\r\n return query select * from jobs j ;\r\n else \r\n return - query SELECT\r\n *\r\nFROM\r\n jobs\r\nWHERE\r\n search <% (ownr_fn) OR\r\n - \ search <% (ownr_ln) OR\r\n search <% (cast(est_number as text)) OR\r\n search - <% (ro_number) OR\r\n search <% (clm_no) OR\r\n search <% (plate_no) OR\r\n - \ search <% (v_make_desc) OR\r\n search <% (v_model_desc) ;\r\n end if;\r\n\r\n\tEND\r\n\r\n\r\n$function$;" - type: run_sql diff --git a/hasura/migrations/1590769637626_run_sql_migration/down.yaml b/hasura/migrations/1590769637626_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1590769637626_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1590769637626_run_sql_migration/up.yaml b/hasura/migrations/1590769637626_run_sql_migration/up.yaml deleted file mode 100644 index a5db35a75..000000000 --- a/hasura/migrations/1590769637626_run_sql_migration/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE INDEX idx_owners_ownrfn ON owners\r\nUSING GIN (ownr_fn gin_trgm_ops);\r\n\r\nCREATE - INDEX idx_owners_ownrln ON owners\r\nUSING GIN (ownr_ln gin_trgm_ops);\r\n\r\nCREATE - INDEX idx_owners_estnumber ON owners\r\nUSING GIN (ownr_co_nm gin_trgm_ops);" - type: run_sql diff --git a/hasura/migrations/1590769674755_run_sql_migration/down.yaml b/hasura/migrations/1590769674755_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1590769674755_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1590769674755_run_sql_migration/up.yaml b/hasura/migrations/1590769674755_run_sql_migration/up.yaml deleted file mode 100644 index 044fe69ee..000000000 --- a/hasura/migrations/1590769674755_run_sql_migration/up.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_owner(search text)\r\n RETURNS - SETOF owners\r\n LANGUAGE plpgsql\r\n STABLE\r\nAS $function$\r\n\r\nBEGIN\r\n - \ if search = '' then\r\n return query select * from owners ;\r\n else \r\n - \ return query SELECT\r\n *\r\nFROM\r\n owners\r\nWHERE\r\n search <% (ownr_fn) - OR\r\n search <% (ownr_ln) OR\r\n search <% (ownr_co_nm) ;\r\n end if;\r\n\r\n\tEND\r\n$function$;" - type: run_sql diff --git a/hasura/migrations/1590772155750_update_permission_user_public_table_csi/down.yaml b/hasura/migrations/1590772155750_update_permission_user_public_table_csi/down.yaml deleted file mode 100644 index 78940bde7..000000000 --- a/hasura/migrations/1590772155750_update_permission_user_public_table_csi/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - created_at - - id - - jobid - - relateddata - - updated_at - - valid - - validuntil - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csi - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590772155750_update_permission_user_public_table_csi/up.yaml b/hasura/migrations/1590772155750_update_permission_user_public_table_csi/up.yaml deleted file mode 100644 index a19f5219a..000000000 --- a/hasura/migrations/1590772155750_update_permission_user_public_table_csi/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - created_at - - id - - jobid - - questionset - - relateddata - - updated_at - - valid - - validuntil - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csi - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590772289591_update_permission_user_public_table_csi/down.yaml b/hasura/migrations/1590772289591_update_permission_user_public_table_csi/down.yaml deleted file mode 100644 index bc9bab34b..000000000 --- a/hasura/migrations/1590772289591_update_permission_user_public_table_csi/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_update_permission -- args: - permission: - columns: - - valid - - validuntil - - relateddata - - created_at - - updated_at - - bodyshopid - - id - - jobid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csi - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590772289591_update_permission_user_public_table_csi/up.yaml b/hasura/migrations/1590772289591_update_permission_user_public_table_csi/up.yaml deleted file mode 100644 index 7820d79cc..000000000 --- a/hasura/migrations/1590772289591_update_permission_user_public_table_csi/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - completedon - - created_at - - id - - jobid - - relateddata - - updated_at - - valid - - validuntil - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: csi - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590789133099_alter_table_public_bodyshops_add_column_accountingconfig/down.yaml b/hasura/migrations/1590789133099_alter_table_public_bodyshops_add_column_accountingconfig/down.yaml deleted file mode 100644 index 988d9aa47..000000000 --- a/hasura/migrations/1590789133099_alter_table_public_bodyshops_add_column_accountingconfig/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "accountingconfig"; - type: run_sql diff --git a/hasura/migrations/1590789133099_alter_table_public_bodyshops_add_column_accountingconfig/up.yaml b/hasura/migrations/1590789133099_alter_table_public_bodyshops_add_column_accountingconfig/up.yaml deleted file mode 100644 index 52ad50ed2..000000000 --- a/hasura/migrations/1590789133099_alter_table_public_bodyshops_add_column_accountingconfig/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "accountingconfig" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1590789150309_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1590789150309_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 24fcc62ed..000000000 --- a/hasura/migrations/1590789150309_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590789150309_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1590789150309_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index c7c8f849d..000000000 --- a/hasura/migrations/1590789150309_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,51 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590789163123_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1590789163123_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 477056eb1..000000000 --- a/hasura/migrations/1590789163123_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,48 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590789163123_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1590789163123_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 86c1ba881..000000000 --- a/hasura/migrations/1590789163123_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1590790802468_run_sql_migration/down.yaml b/hasura/migrations/1590790802468_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1590790802468_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1590790802468_run_sql_migration/up.yaml b/hasura/migrations/1590790802468_run_sql_migration/up.yaml deleted file mode 100644 index 44e444fed..000000000 --- a/hasura/migrations/1590790802468_run_sql_migration/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - cascade: true - read_only: false - sql: |- - alter table owners - drop column accountingid; - type: run_sql diff --git a/hasura/migrations/1590790827681_alter_table_public_owners_add_column_accountingid/down.yaml b/hasura/migrations/1590790827681_alter_table_public_owners_add_column_accountingid/down.yaml deleted file mode 100644 index 92c2567cf..000000000 --- a/hasura/migrations/1590790827681_alter_table_public_owners_add_column_accountingid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."owners" DROP COLUMN "accountingid"; - type: run_sql diff --git a/hasura/migrations/1590790827681_alter_table_public_owners_add_column_accountingid/up.yaml b/hasura/migrations/1590790827681_alter_table_public_owners_add_column_accountingid/up.yaml deleted file mode 100644 index 4e7f1d760..000000000 --- a/hasura/migrations/1590790827681_alter_table_public_owners_add_column_accountingid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."owners" ADD COLUMN "accountingid" bigserial NOT NULL; - type: run_sql diff --git a/hasura/migrations/1590790851669_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1590790851669_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 915b657e4..000000000 --- a/hasura/migrations/1590790851669_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1590790851669_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1590790851669_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index ced04216b..000000000 --- a/hasura/migrations/1590790851669_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - ownr_fn - - ownr_ln - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ea - - ownr_ph1 - - preferred_contact - - allow_text_message - - shopid - - ownr_ph2 - - ownr_co_nm - - ownr_title - - accountingid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1590790859209_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1590790859209_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 9f10ffd44..000000000 --- a/hasura/migrations/1590790859209_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1590790859209_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1590790859209_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 7a2479c36..000000000 --- a/hasura/migrations/1590790859209_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - allow_text_message - - accountingid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1590790873577_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1590790873577_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index b94959d43..000000000 --- a/hasura/migrations/1590790873577_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1590790873577_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1590790873577_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index cb8f05bec..000000000 --- a/hasura/migrations/1590790873577_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - permission: - columns: - - allow_text_message - - accountingid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: owners - schema: public - type: create_update_permission diff --git a/hasura/migrations/1591214568316_alter_table_public_bodyshops_add_column_appt_length/down.yaml b/hasura/migrations/1591214568316_alter_table_public_bodyshops_add_column_appt_length/down.yaml deleted file mode 100644 index 4f0ee9f3c..000000000 --- a/hasura/migrations/1591214568316_alter_table_public_bodyshops_add_column_appt_length/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "appt_length"; - type: run_sql diff --git a/hasura/migrations/1591214568316_alter_table_public_bodyshops_add_column_appt_length/up.yaml b/hasura/migrations/1591214568316_alter_table_public_bodyshops_add_column_appt_length/up.yaml deleted file mode 100644 index 4becf570d..000000000 --- a/hasura/migrations/1591214568316_alter_table_public_bodyshops_add_column_appt_length/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "appt_length" integer NOT NULL - DEFAULT 60; - type: run_sql diff --git a/hasura/migrations/1591214578485_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1591214578485_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index c7c8f849d..000000000 --- a/hasura/migrations/1591214578485_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,51 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1591214578485_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1591214578485_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 26ce89aa9..000000000 --- a/hasura/migrations/1591214578485_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,52 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1591214587491_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1591214587491_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 86c1ba881..000000000 --- a/hasura/migrations/1591214587491_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1591214587491_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1591214587491_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 9c3945d54..000000000 --- a/hasura/migrations/1591214587491_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1591292925100_update_permission_user_public_table_csi/down.yaml b/hasura/migrations/1591292925100_update_permission_user_public_table_csi/down.yaml deleted file mode 100644 index a45ce22ba..000000000 --- a/hasura/migrations/1591292925100_update_permission_user_public_table_csi/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - completedon - - created_at - - id - - jobid - - questionset - - relateddata - - response - - updated_at - - valid - - validuntil - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: csi - schema: public - type: create_select_permission diff --git a/hasura/migrations/1591292925100_update_permission_user_public_table_csi/up.yaml b/hasura/migrations/1591292925100_update_permission_user_public_table_csi/up.yaml deleted file mode 100644 index a94a371de..000000000 --- a/hasura/migrations/1591292925100_update_permission_user_public_table_csi/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: csi - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - bodyshopid - - completedon - - created_at - - id - - jobid - - questionset - - relateddata - - response - - updated_at - - valid - - validuntil - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: csi - schema: public - type: create_select_permission diff --git a/hasura/migrations/1591303854947_create_table_public_payments/down.yaml b/hasura/migrations/1591303854947_create_table_public_payments/down.yaml deleted file mode 100644 index b7ad7a0d6..000000000 --- a/hasura/migrations/1591303854947_create_table_public_payments/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."payments"; - type: run_sql diff --git a/hasura/migrations/1591303854947_create_table_public_payments/up.yaml b/hasura/migrations/1591303854947_create_table_public_payments/up.yaml deleted file mode 100644 index cc211749f..000000000 --- a/hasura/migrations/1591303854947_create_table_public_payments/up.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"payments\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"jobid\" uuid NOT NULL, \"amount\" integer NOT NULL, - PRIMARY KEY (\"id\") , FOREIGN KEY (\"jobid\") REFERENCES \"public\".\"jobs\"(\"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_payments_updated_at\"\nBEFORE - UPDATE ON \"public\".\"payments\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_payments_updated_at\" ON \"public\".\"payments\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';" - type: run_sql -- args: - name: payments - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1591303886596_track_all_relationships/down.yaml b/hasura/migrations/1591303886596_track_all_relationships/down.yaml deleted file mode 100644 index 4be842dba..000000000 --- a/hasura/migrations/1591303886596_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: payments - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: job - table: - name: payments - schema: public - type: drop_relationship diff --git a/hasura/migrations/1591303886596_track_all_relationships/up.yaml b/hasura/migrations/1591303886596_track_all_relationships/up.yaml deleted file mode 100644 index dc94463eb..000000000 --- a/hasura/migrations/1591303886596_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: payments - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: payments - schema: public - type: create_array_relationship -- args: - name: job - table: - name: payments - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship diff --git a/hasura/migrations/1591303935525_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1591303935525_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 9830eb5ca..000000000 --- a/hasura/migrations/1591303935525_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1591303935525_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1591303935525_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 9d5cc8103..000000000 --- a/hasura/migrations/1591303935525_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - permission: - allow_upsert: true - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - amount - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1591303943431_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1591303943431_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 5c9a79d99..000000000 --- a/hasura/migrations/1591303943431_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1591303943431_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1591303943431_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 7f855df65..000000000 --- a/hasura/migrations/1591303943431_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - permission: - allow_aggregations: false - columns: - - amount - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1591303949732_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1591303949732_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 631fe8779..000000000 --- a/hasura/migrations/1591303949732_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1591303949732_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1591303949732_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 714a8d9dd..000000000 --- a/hasura/migrations/1591303949732_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- args: - permission: - columns: - - amount - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1591303955052_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1591303955052_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 7e121fe18..000000000 --- a/hasura/migrations/1591303955052_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1591303955052_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1591303955052_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 26cab072d..000000000 --- a/hasura/migrations/1591303955052_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1591310798527_alter_table_public_bodyshops_add_column_stripe_acct_id/down.yaml b/hasura/migrations/1591310798527_alter_table_public_bodyshops_add_column_stripe_acct_id/down.yaml deleted file mode 100644 index 214dc8bcb..000000000 --- a/hasura/migrations/1591310798527_alter_table_public_bodyshops_add_column_stripe_acct_id/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "stripe_acct_id"; - type: run_sql diff --git a/hasura/migrations/1591310798527_alter_table_public_bodyshops_add_column_stripe_acct_id/up.yaml b/hasura/migrations/1591310798527_alter_table_public_bodyshops_add_column_stripe_acct_id/up.yaml deleted file mode 100644 index 0d281d82f..000000000 --- a/hasura/migrations/1591310798527_alter_table_public_bodyshops_add_column_stripe_acct_id/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "stripe_acct_id" text NULL; - type: run_sql diff --git a/hasura/migrations/1591310807506_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1591310807506_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 26ce89aa9..000000000 --- a/hasura/migrations/1591310807506_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,52 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1591310807506_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1591310807506_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index a412d8d21..000000000 --- a/hasura/migrations/1591310807506_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,53 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592257483098_alter_table_public_payments_add_column_transactionid/down.yaml b/hasura/migrations/1592257483098_alter_table_public_payments_add_column_transactionid/down.yaml deleted file mode 100644 index fb9f70b70..000000000 --- a/hasura/migrations/1592257483098_alter_table_public_payments_add_column_transactionid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" DROP COLUMN "transactionid"; - type: run_sql diff --git a/hasura/migrations/1592257483098_alter_table_public_payments_add_column_transactionid/up.yaml b/hasura/migrations/1592257483098_alter_table_public_payments_add_column_transactionid/up.yaml deleted file mode 100644 index 19e4bcce8..000000000 --- a/hasura/migrations/1592257483098_alter_table_public_payments_add_column_transactionid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" ADD COLUMN "transactionid" text NULL; - type: run_sql diff --git a/hasura/migrations/1592257505571_alter_table_public_payments_add_column_memo/down.yaml b/hasura/migrations/1592257505571_alter_table_public_payments_add_column_memo/down.yaml deleted file mode 100644 index b883fea83..000000000 --- a/hasura/migrations/1592257505571_alter_table_public_payments_add_column_memo/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" DROP COLUMN "memo"; - type: run_sql diff --git a/hasura/migrations/1592257505571_alter_table_public_payments_add_column_memo/up.yaml b/hasura/migrations/1592257505571_alter_table_public_payments_add_column_memo/up.yaml deleted file mode 100644 index ff6623a6a..000000000 --- a/hasura/migrations/1592257505571_alter_table_public_payments_add_column_memo/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" ADD COLUMN "memo" text NULL; - type: run_sql diff --git a/hasura/migrations/1592260834130_alter_table_public_payments_alter_column_amount/down.yaml b/hasura/migrations/1592260834130_alter_table_public_payments_alter_column_amount/down.yaml deleted file mode 100644 index 5d140c183..000000000 --- a/hasura/migrations/1592260834130_alter_table_public_payments_alter_column_amount/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" ALTER COLUMN "amount" TYPE integer; - type: run_sql diff --git a/hasura/migrations/1592260834130_alter_table_public_payments_alter_column_amount/up.yaml b/hasura/migrations/1592260834130_alter_table_public_payments_alter_column_amount/up.yaml deleted file mode 100644 index 26f68af02..000000000 --- a/hasura/migrations/1592260834130_alter_table_public_payments_alter_column_amount/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" ALTER COLUMN "amount" TYPE numeric; - type: run_sql diff --git a/hasura/migrations/1592260861278_alter_table_public_payments_add_column_stripeid/down.yaml b/hasura/migrations/1592260861278_alter_table_public_payments_add_column_stripeid/down.yaml deleted file mode 100644 index 6ef7d17b6..000000000 --- a/hasura/migrations/1592260861278_alter_table_public_payments_add_column_stripeid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" DROP COLUMN "stripeid"; - type: run_sql diff --git a/hasura/migrations/1592260861278_alter_table_public_payments_add_column_stripeid/up.yaml b/hasura/migrations/1592260861278_alter_table_public_payments_add_column_stripeid/up.yaml deleted file mode 100644 index 072fbd092..000000000 --- a/hasura/migrations/1592260861278_alter_table_public_payments_add_column_stripeid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" ADD COLUMN "stripeid" text NULL; - type: run_sql diff --git a/hasura/migrations/1592261038745_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1592261038745_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index f68eb0c4b..000000000 --- a/hasura/migrations/1592261038745_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - amount - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1592261038745_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1592261038745_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 5d9f8f5a0..000000000 --- a/hasura/migrations/1592261038745_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - amount - - transactionid - - memo - - stripeid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1592261045012_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1592261045012_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index b5c96d94f..000000000 --- a/hasura/migrations/1592261045012_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,31 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - amount - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592261045012_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1592261045012_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 87b993f56..000000000 --- a/hasura/migrations/1592261045012_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - amount - - memo - - stripeid - - transactionid - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592261051274_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1592261051274_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index daf932de4..000000000 --- a/hasura/migrations/1592261051274_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1592261051274_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1592261051274_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 8bad2eabf..000000000 --- a/hasura/migrations/1592261051274_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - memo - - stripeid - - transactionid - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1592324594982_alter_table_public_payments_add_column_payer/down.yaml b/hasura/migrations/1592324594982_alter_table_public_payments_add_column_payer/down.yaml deleted file mode 100644 index 8ead0dc0d..000000000 --- a/hasura/migrations/1592324594982_alter_table_public_payments_add_column_payer/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" DROP COLUMN "payer"; - type: run_sql diff --git a/hasura/migrations/1592324594982_alter_table_public_payments_add_column_payer/up.yaml b/hasura/migrations/1592324594982_alter_table_public_payments_add_column_payer/up.yaml deleted file mode 100644 index 968dd3294..000000000 --- a/hasura/migrations/1592324594982_alter_table_public_payments_add_column_payer/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" ADD COLUMN "payer" text NULL; - type: run_sql diff --git a/hasura/migrations/1592324603137_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1592324603137_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 5d9f8f5a0..000000000 --- a/hasura/migrations/1592324603137_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - amount - - transactionid - - memo - - stripeid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1592324603137_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1592324603137_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 248a04f37..000000000 --- a/hasura/migrations/1592324603137_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - amount - - created_at - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1592324618856_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1592324618856_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 87b993f56..000000000 --- a/hasura/migrations/1592324618856_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - amount - - memo - - stripeid - - transactionid - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592324618856_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1592324618856_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index d7f198395..000000000 --- a/hasura/migrations/1592324618856_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - amount - - created_at - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592324625348_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1592324625348_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 8bad2eabf..000000000 --- a/hasura/migrations/1592324625348_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - memo - - stripeid - - transactionid - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1592324625348_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1592324625348_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 332aef813..000000000 --- a/hasura/migrations/1592324625348_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1592324679227_run_sql_migration/down.yaml b/hasura/migrations/1592324679227_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1592324679227_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1592324679227_run_sql_migration/up.yaml b/hasura/migrations/1592324679227_run_sql_migration/up.yaml deleted file mode 100644 index 6215879b1..000000000 --- a/hasura/migrations/1592324679227_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - read_only: false - sql: CREATE INDEX idx_payments_payer ON payments USING GIN (payer gin_trgm_ops); - type: run_sql diff --git a/hasura/migrations/1592325045380_run_sql_migration/down.yaml b/hasura/migrations/1592325045380_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1592325045380_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1592325045380_run_sql_migration/up.yaml b/hasura/migrations/1592325045380_run_sql_migration/up.yaml deleted file mode 100644 index 35ecb17d1..000000000 --- a/hasura/migrations/1592325045380_run_sql_migration/up.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_payments(search text)\n RETURNS - SETOF payments\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search - = '' then\n return query select * from payments ;\n else \n return query - SELECT\n *\nFROM\n payments\nWHERE\n search <% (payer) ;\n end if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: search_payments - schema: public - type: track_function diff --git a/hasura/migrations/1592325133932_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1592325133932_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index d7f198395..000000000 --- a/hasura/migrations/1592325133932_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - amount - - created_at - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592325133932_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1592325133932_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 7485e333c..000000000 --- a/hasura/migrations/1592325133932_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - amount - - created_at - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592325262313_run_sql_migration/down.yaml b/hasura/migrations/1592325262313_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1592325262313_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1592325262313_run_sql_migration/up.yaml b/hasura/migrations/1592325262313_run_sql_migration/up.yaml deleted file mode 100644 index 5d464f7e1..000000000 --- a/hasura/migrations/1592325262313_run_sql_migration/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - cascade: true - read_only: false - sql: |- - CREATE INDEX idx_payments_memo ON payments USING GIN (memo gin_trgm_ops); - CREATE INDEX idx_payments_txnid ON payments USING GIN (transactionid gin_trgm_ops); - type: run_sql diff --git a/hasura/migrations/1592325288329_run_sql_migration/down.yaml b/hasura/migrations/1592325288329_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1592325288329_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1592325288329_run_sql_migration/up.yaml b/hasura/migrations/1592325288329_run_sql_migration/up.yaml deleted file mode 100644 index 4439c7f6f..000000000 --- a/hasura/migrations/1592325288329_run_sql_migration/up.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_payments(search text)\n RETURNS - SETOF payments\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search - = '' then\n return query select * from payments ;\n else \n return query - SELECT\n *\nFROM\n payments\nWHERE\n search <% (payer) OR\n search <% (transactionid) - OR\n search <% (memo);\n end if;\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1592325952533_alter_table_public_payments_add_column_exportedat/down.yaml b/hasura/migrations/1592325952533_alter_table_public_payments_add_column_exportedat/down.yaml deleted file mode 100644 index 101187382..000000000 --- a/hasura/migrations/1592325952533_alter_table_public_payments_add_column_exportedat/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" DROP COLUMN "exportedat"; - type: run_sql diff --git a/hasura/migrations/1592325952533_alter_table_public_payments_add_column_exportedat/up.yaml b/hasura/migrations/1592325952533_alter_table_public_payments_add_column_exportedat/up.yaml deleted file mode 100644 index 8d48bae0a..000000000 --- a/hasura/migrations/1592325952533_alter_table_public_payments_add_column_exportedat/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" ADD COLUMN "exportedat" timestamptz NULL; - type: run_sql diff --git a/hasura/migrations/1592325964121_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1592325964121_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 248a04f37..000000000 --- a/hasura/migrations/1592325964121_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - amount - - created_at - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1592325964121_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1592325964121_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 101107d75..000000000 --- a/hasura/migrations/1592325964121_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1592325969484_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1592325969484_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 7485e333c..000000000 --- a/hasura/migrations/1592325969484_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - amount - - created_at - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592325969484_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1592325969484_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index bc5c01b3a..000000000 --- a/hasura/migrations/1592325969484_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592325975305_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1592325975305_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 332aef813..000000000 --- a/hasura/migrations/1592325975305_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1592325975305_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1592325975305_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index ca990d8e4..000000000 --- a/hasura/migrations/1592325975305_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1592338644254_alter_table_public_jobs_add_column_kanbanparent/down.yaml b/hasura/migrations/1592338644254_alter_table_public_jobs_add_column_kanbanparent/down.yaml deleted file mode 100644 index 9fe29b9ce..000000000 --- a/hasura/migrations/1592338644254_alter_table_public_jobs_add_column_kanbanparent/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "kanbanparent"; - type: run_sql diff --git a/hasura/migrations/1592338644254_alter_table_public_jobs_add_column_kanbanparent/up.yaml b/hasura/migrations/1592338644254_alter_table_public_jobs_add_column_kanbanparent/up.yaml deleted file mode 100644 index c95d912b2..000000000 --- a/hasura/migrations/1592338644254_alter_table_public_jobs_add_column_kanbanparent/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "kanbanparent" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1592338664495_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1592338664495_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 0a78e16c2..000000000 --- a/hasura/migrations/1592338664495_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1592338664495_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1592338664495_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 1ca9f0a39..000000000 --- a/hasura/migrations/1592338664495_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1592338672542_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1592338672542_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4e4e0f870..000000000 --- a/hasura/migrations/1592338672542_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,255 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592338672542_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1592338672542_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 26e7035b1..000000000 --- a/hasura/migrations/1592338672542_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,256 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592338681306_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1592338681306_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index b15051c7a..000000000 --- a/hasura/migrations/1592338681306_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1592338681306_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1592338681306_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index dbe7e0f0b..000000000 --- a/hasura/migrations/1592338681306_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - localPresets: - - key: "" - value: "" - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1592338828686_run_sql_migration/down.yaml b/hasura/migrations/1592338828686_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1592338828686_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1592338828686_run_sql_migration/up.yaml b/hasura/migrations/1592338828686_run_sql_migration/up.yaml deleted file mode 100644 index fff1fe20c..000000000 --- a/hasura/migrations/1592338828686_run_sql_migration/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE VIEW \"public\".\"productionview\" AS \n SELECT j.id,\n - \ j.status,\n j.ro_number,\n j.est_number,\n j.ownr_fn,\n j.ownr_ln,\n - \ j.v_model_yr,\n j.v_model_desc,\n j.clm_no,\n j.v_make_desc,\n - \ j.v_color,\n j.plate_no,\n j.actual_in,\n j.scheduled_completion,\n - \ j.scheduled_delivery,\n j.ins_co_nm,\n j.clm_total,\n j.ownr_ph1,\n - \ j.special_coverage_policy,\n j.production_vars,\n lab.labhrs,\n lar.larhrs,\n - \ j.shopid,\n\n parts.partcount, j.kanbanparent\n FROM (((jobs j\n - \ LEFT JOIN ( SELECT l.jobid,\n sum(l.mod_lb_hrs) AS labhrs\n - \ FROM joblines l\n WHERE (l.mod_lbr_ty = 'LAB'::text)\n GROUP - BY l.jobid) lab ON ((lab.jobid = j.id)))\n LEFT JOIN ( SELECT l2.jobid,\n - \ sum(l2.mod_lb_hrs) AS larhrs\n FROM joblines l2\n WHERE - (l2.mod_lbr_ty = 'LAR'::text)\n GROUP BY l2.jobid) lar ON ((lar.jobid - = j.id)))\n LEFT JOIN ( SELECT l3.jobid,\n json_agg(l3.status) - AS partcount\n FROM joblines l3\n WHERE (l3.part_type IS - NOT NULL)\n GROUP BY l3.jobid) parts ON ((parts.jobid = j.id)))\n WHERE - (j.inproduction = true);" - type: run_sql diff --git a/hasura/migrations/1592338856120_update_permission_user_public_table_productionview/down.yaml b/hasura/migrations/1592338856120_update_permission_user_public_table_productionview/down.yaml deleted file mode 100644 index 846706108..000000000 --- a/hasura/migrations/1592338856120_update_permission_user_public_table_productionview/down.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - role: user - table: - name: productionview - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - id - - status - - ro_number - - est_number - - ownr_fn - - ownr_ln - - v_model_yr - - v_model_desc - - clm_no - - v_make_desc - - v_color - - plate_no - - actual_in - - scheduled_completion - - scheduled_delivery - - ins_co_nm - - clm_total - - ownr_ph1 - - special_coverage_policy - - production_vars - - labhrs - - larhrs - - shopid - - partcount - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: productionview - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592338856120_update_permission_user_public_table_productionview/up.yaml b/hasura/migrations/1592338856120_update_permission_user_public_table_productionview/up.yaml deleted file mode 100644 index d79153df4..000000000 --- a/hasura/migrations/1592338856120_update_permission_user_public_table_productionview/up.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: productionview - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_in - - clm_no - - clm_total - - est_number - - id - - ins_co_nm - - kanbanparent - - labhrs - - larhrs - - ownr_fn - - ownr_ln - - ownr_ph1 - - partcount - - plate_no - - production_vars - - ro_number - - scheduled_completion - - scheduled_delivery - - shopid - - special_coverage_policy - - status - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: productionview - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592417299712_drop_view_public_productionview/down.yaml b/hasura/migrations/1592417299712_drop_view_public_productionview/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1592417299712_drop_view_public_productionview/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1592417299712_drop_view_public_productionview/up.yaml b/hasura/migrations/1592417299712_drop_view_public_productionview/up.yaml deleted file mode 100644 index 6e88a06bd..000000000 --- a/hasura/migrations/1592417299712_drop_view_public_productionview/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP VIEW "public"."productionview"; - type: run_sql diff --git a/hasura/migrations/1592417338944_alter_table_public_jobs_alter_column_kanbanparent/down.yaml b/hasura/migrations/1592417338944_alter_table_public_jobs_alter_column_kanbanparent/down.yaml deleted file mode 100644 index 951a77c81..000000000 --- a/hasura/migrations/1592417338944_alter_table_public_jobs_alter_column_kanbanparent/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "kanbanparent" TYPE uuid; - type: run_sql diff --git a/hasura/migrations/1592417338944_alter_table_public_jobs_alter_column_kanbanparent/up.yaml b/hasura/migrations/1592417338944_alter_table_public_jobs_alter_column_kanbanparent/up.yaml deleted file mode 100644 index 952ad7cef..000000000 --- a/hasura/migrations/1592417338944_alter_table_public_jobs_alter_column_kanbanparent/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "kanbanparent" TYPE text; - type: run_sql diff --git a/hasura/migrations/1592417343599_run_sql_migration/down.yaml b/hasura/migrations/1592417343599_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1592417343599_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1592417343599_run_sql_migration/up.yaml b/hasura/migrations/1592417343599_run_sql_migration/up.yaml deleted file mode 100644 index 122c7f6fe..000000000 --- a/hasura/migrations/1592417343599_run_sql_migration/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE VIEW \"public\".\"productionview\" AS \n SELECT j.id,\n - \ j.status,\n j.ro_number,\n j.est_number,\n j.ownr_fn,\n j.ownr_ln,\n - \ j.v_model_yr,\n j.v_model_desc,\n j.clm_no,\n j.v_make_desc,\n - \ j.v_color,\n j.plate_no,\n j.actual_in,\n j.scheduled_completion,\n - \ j.scheduled_delivery,\n j.ins_co_nm,\n j.clm_total,\n j.ownr_ph1,\n - \ j.special_coverage_policy,\n j.production_vars,\n lab.labhrs,\n lar.larhrs,\n - \ j.shopid,\n parts.partcount,\n j.kanbanparent\n FROM (((jobs j\n - \ LEFT JOIN ( SELECT l.jobid,\n sum(l.mod_lb_hrs) AS labhrs\n - \ FROM joblines l\n WHERE (l.mod_lbr_ty = 'LAB'::text)\n GROUP - BY l.jobid) lab ON ((lab.jobid = j.id)))\n LEFT JOIN ( SELECT l2.jobid,\n - \ sum(l2.mod_lb_hrs) AS larhrs\n FROM joblines l2\n WHERE - (l2.mod_lbr_ty = 'LAR'::text)\n GROUP BY l2.jobid) lar ON ((lar.jobid - = j.id)))\n LEFT JOIN ( SELECT l3.jobid,\n json_agg(l3.status) - AS partcount\n FROM joblines l3\n WHERE (l3.part_type IS - NOT NULL)\n GROUP BY l3.jobid) parts ON ((parts.jobid = j.id)))\n WHERE - (j.inproduction = true);" - type: run_sql -- args: - name: productionview - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1592417407401_create_relationship_bodyshop_public_table_productionview/down.yaml b/hasura/migrations/1592417407401_create_relationship_bodyshop_public_table_productionview/down.yaml deleted file mode 100644 index c8bccabac..000000000 --- a/hasura/migrations/1592417407401_create_relationship_bodyshop_public_table_productionview/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: bodyshop - table: - name: productionview - schema: public - type: drop_relationship diff --git a/hasura/migrations/1592417407401_create_relationship_bodyshop_public_table_productionview/up.yaml b/hasura/migrations/1592417407401_create_relationship_bodyshop_public_table_productionview/up.yaml deleted file mode 100644 index b91854674..000000000 --- a/hasura/migrations/1592417407401_create_relationship_bodyshop_public_table_productionview/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - name: bodyshop - table: - name: productionview - schema: public - using: - manual_configuration: - column_mapping: - shopid: id - remote_table: - name: bodyshops - schema: public - type: create_object_relationship diff --git a/hasura/migrations/1592417440460_update_permission_user_public_table_productionview/down.yaml b/hasura/migrations/1592417440460_update_permission_user_public_table_productionview/down.yaml deleted file mode 100644 index d2ca2e22f..000000000 --- a/hasura/migrations/1592417440460_update_permission_user_public_table_productionview/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: productionview - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1592417440460_update_permission_user_public_table_productionview/up.yaml b/hasura/migrations/1592417440460_update_permission_user_public_table_productionview/up.yaml deleted file mode 100644 index ad659002c..000000000 --- a/hasura/migrations/1592417440460_update_permission_user_public_table_productionview/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - permission: - allow_aggregations: true - columns: - - id - - status - - ro_number - - est_number - - ownr_fn - - ownr_ln - - v_model_yr - - v_model_desc - - clm_no - - v_make_desc - - v_color - - plate_no - - actual_in - - scheduled_completion - - scheduled_delivery - - ins_co_nm - - clm_total - - ownr_ph1 - - special_coverage_policy - - production_vars - - labhrs - - larhrs - - shopid - - partcount - - kanbanparent - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: productionview - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592854595888_alter_table_public_bodyshops_add_column_ssbuckets/down.yaml b/hasura/migrations/1592854595888_alter_table_public_bodyshops_add_column_ssbuckets/down.yaml deleted file mode 100644 index 28d9bc4e7..000000000 --- a/hasura/migrations/1592854595888_alter_table_public_bodyshops_add_column_ssbuckets/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "ssbuckets"; - type: run_sql diff --git a/hasura/migrations/1592854595888_alter_table_public_bodyshops_add_column_ssbuckets/up.yaml b/hasura/migrations/1592854595888_alter_table_public_bodyshops_add_column_ssbuckets/up.yaml deleted file mode 100644 index d2bfbe5b2..000000000 --- a/hasura/migrations/1592854595888_alter_table_public_bodyshops_add_column_ssbuckets/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "ssbuckets" jsonb NULL DEFAULT - jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1592854609057_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1592854609057_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index a412d8d21..000000000 --- a/hasura/migrations/1592854609057_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,53 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1592854609057_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1592854609057_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 9b9cc2a17..000000000 --- a/hasura/migrations/1592854609057_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,54 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1593023670525_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1593023670525_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 02ec31b86..000000000 --- a/hasura/migrations/1593023670525_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1593023670525_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1593023670525_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 96048ac73..000000000 --- a/hasura/migrations/1593023670525_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,48 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1593106950595_alter_table_public_appointments_add_column_block/down.yaml b/hasura/migrations/1593106950595_alter_table_public_appointments_add_column_block/down.yaml deleted file mode 100644 index 73f6fb5e0..000000000 --- a/hasura/migrations/1593106950595_alter_table_public_appointments_add_column_block/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."appointments" DROP COLUMN "block"; - type: run_sql diff --git a/hasura/migrations/1593106950595_alter_table_public_appointments_add_column_block/up.yaml b/hasura/migrations/1593106950595_alter_table_public_appointments_add_column_block/up.yaml deleted file mode 100644 index 3daeb9e4c..000000000 --- a/hasura/migrations/1593106950595_alter_table_public_appointments_add_column_block/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."appointments" ADD COLUMN "block" boolean NOT NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1593106965112_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1593106965112_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 7a8708e39..000000000 --- a/hasura/migrations/1593106965112_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - start - - end - - canceled - - arrived - - isintake - - bodyshopid - - title - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1593106965112_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1593106965112_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 395eb2282..000000000 --- a/hasura/migrations/1593106965112_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - arrived - - block - - bodyshopid - - canceled - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1593106971803_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1593106971803_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 1c74631cf..000000000 --- a/hasura/migrations/1593106971803_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - canceled - - isintake - - title - - created_at - - end - - start - - updated_at - - bodyshopid - - id - - jobid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1593106971803_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1593106971803_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 493ba4dcc..000000000 --- a/hasura/migrations/1593106971803_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - block - - bodyshopid - - canceled - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1593106978517_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1593106978517_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 4738d5505..000000000 --- a/hasura/migrations/1593106978517_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - canceled - - isintake - - title - - created_at - - end - - start - - updated_at - - bodyshopid - - id - - jobid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1593106978517_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1593106978517_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index ceb8763aa..000000000 --- a/hasura/migrations/1593106978517_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - block - - bodyshopid - - canceled - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1593188899179_create_table_public_scoreboard/down.yaml b/hasura/migrations/1593188899179_create_table_public_scoreboard/down.yaml deleted file mode 100644 index 1f687f33a..000000000 --- a/hasura/migrations/1593188899179_create_table_public_scoreboard/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."scoreboard"; - type: run_sql diff --git a/hasura/migrations/1593188899179_create_table_public_scoreboard/up.yaml b/hasura/migrations/1593188899179_create_table_public_scoreboard/up.yaml deleted file mode 100644 index 632fd67db..000000000 --- a/hasura/migrations/1593188899179_create_table_public_scoreboard/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: CREATE TABLE "public"."scoreboard"("id" uuid NOT NULL DEFAULT gen_random_uuid(), - "jobid" uuid NOT NULL, "painthrs" numeric NOT NULL DEFAULT 0, "bodyhrs" numeric - NOT NULL DEFAULT 0, "date" date NOT NULL DEFAULT now(), PRIMARY KEY ("id") , - FOREIGN KEY ("jobid") REFERENCES "public"."jobs"("id") ON UPDATE cascade ON - DELETE cascade); - type: run_sql -- args: - name: scoreboard - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1593188907600_track_all_relationships/down.yaml b/hasura/migrations/1593188907600_track_all_relationships/down.yaml deleted file mode 100644 index 96d2abf1a..000000000 --- a/hasura/migrations/1593188907600_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: scoreboards - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: job - table: - name: scoreboard - schema: public - type: drop_relationship diff --git a/hasura/migrations/1593188907600_track_all_relationships/up.yaml b/hasura/migrations/1593188907600_track_all_relationships/up.yaml deleted file mode 100644 index c52da5195..000000000 --- a/hasura/migrations/1593188907600_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: scoreboards - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: scoreboard - schema: public - type: create_array_relationship -- args: - name: job - table: - name: scoreboard - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship diff --git a/hasura/migrations/1593189016662_update_permission_user_public_table_scoreboard/down.yaml b/hasura/migrations/1593189016662_update_permission_user_public_table_scoreboard/down.yaml deleted file mode 100644 index 82df32845..000000000 --- a/hasura/migrations/1593189016662_update_permission_user_public_table_scoreboard/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: scoreboard - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1593189016662_update_permission_user_public_table_scoreboard/up.yaml b/hasura/migrations/1593189016662_update_permission_user_public_table_scoreboard/up.yaml deleted file mode 100644 index 2c510729e..000000000 --- a/hasura/migrations/1593189016662_update_permission_user_public_table_scoreboard/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - permission: - allow_upsert: true - backend_only: false - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - jobid - - painthrs - - bodyhrs - - date - set: {} - role: user - table: - name: scoreboard - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1593189027209_update_permission_user_public_table_scoreboard/down.yaml b/hasura/migrations/1593189027209_update_permission_user_public_table_scoreboard/down.yaml deleted file mode 100644 index c8cb9c8be..000000000 --- a/hasura/migrations/1593189027209_update_permission_user_public_table_scoreboard/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: scoreboard - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1593189027209_update_permission_user_public_table_scoreboard/up.yaml b/hasura/migrations/1593189027209_update_permission_user_public_table_scoreboard/up.yaml deleted file mode 100644 index 2a83db4ed..000000000 --- a/hasura/migrations/1593189027209_update_permission_user_public_table_scoreboard/up.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- args: - permission: - allow_aggregations: true - backend_only: false - columns: - - date - - bodyhrs - - painthrs - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: scoreboard - schema: public - type: create_select_permission diff --git a/hasura/migrations/1593189034065_update_permission_user_public_table_scoreboard/down.yaml b/hasura/migrations/1593189034065_update_permission_user_public_table_scoreboard/down.yaml deleted file mode 100644 index db151710e..000000000 --- a/hasura/migrations/1593189034065_update_permission_user_public_table_scoreboard/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: scoreboard - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1593189034065_update_permission_user_public_table_scoreboard/up.yaml b/hasura/migrations/1593189034065_update_permission_user_public_table_scoreboard/up.yaml deleted file mode 100644 index 6228c75ad..000000000 --- a/hasura/migrations/1593189034065_update_permission_user_public_table_scoreboard/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - permission: - backend_only: false - columns: - - date - - bodyhrs - - painthrs - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: scoreboard - schema: public - type: create_update_permission diff --git a/hasura/migrations/1593189042050_update_permission_user_public_table_scoreboard/down.yaml b/hasura/migrations/1593189042050_update_permission_user_public_table_scoreboard/down.yaml deleted file mode 100644 index ed7f1ec9a..000000000 --- a/hasura/migrations/1593189042050_update_permission_user_public_table_scoreboard/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: scoreboard - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1593189042050_update_permission_user_public_table_scoreboard/up.yaml b/hasura/migrations/1593189042050_update_permission_user_public_table_scoreboard/up.yaml deleted file mode 100644 index 7a0786450..000000000 --- a/hasura/migrations/1593189042050_update_permission_user_public_table_scoreboard/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - permission: - backend_only: false - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: scoreboard - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1593189072315_alter_table_public_bodyshops_add_column_scoreboard_target/down.yaml b/hasura/migrations/1593189072315_alter_table_public_bodyshops_add_column_scoreboard_target/down.yaml deleted file mode 100644 index 35cb79218..000000000 --- a/hasura/migrations/1593189072315_alter_table_public_bodyshops_add_column_scoreboard_target/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "scoreboard_target"; - type: run_sql diff --git a/hasura/migrations/1593189072315_alter_table_public_bodyshops_add_column_scoreboard_target/up.yaml b/hasura/migrations/1593189072315_alter_table_public_bodyshops_add_column_scoreboard_target/up.yaml deleted file mode 100644 index e448b94ad..000000000 --- a/hasura/migrations/1593189072315_alter_table_public_bodyshops_add_column_scoreboard_target/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "scoreboard_target" jsonb NULL - DEFAULT jsonb_build_object(); - type: run_sql diff --git a/hasura/migrations/1593189083426_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1593189083426_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 9b9cc2a17..000000000 --- a/hasura/migrations/1593189083426_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,54 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1593189083426_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1593189083426_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 2ec6f434e..000000000 --- a/hasura/migrations/1593189083426_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,55 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1593189089211_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1593189089211_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 96048ac73..000000000 --- a/hasura/migrations/1593189089211_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,48 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1593189089211_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1593189089211_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 1466f0a71..000000000 --- a/hasura/migrations/1593189089211_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1593465273548_alter_table_public_employees_add_column_pin/down.yaml b/hasura/migrations/1593465273548_alter_table_public_employees_add_column_pin/down.yaml deleted file mode 100644 index 76357445a..000000000 --- a/hasura/migrations/1593465273548_alter_table_public_employees_add_column_pin/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."employees" DROP COLUMN "pin"; - type: run_sql diff --git a/hasura/migrations/1593465273548_alter_table_public_employees_add_column_pin/up.yaml b/hasura/migrations/1593465273548_alter_table_public_employees_add_column_pin/up.yaml deleted file mode 100644 index 17bc8f222..000000000 --- a/hasura/migrations/1593465273548_alter_table_public_employees_add_column_pin/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."employees" ADD COLUMN "pin" text NULL; - type: run_sql diff --git a/hasura/migrations/1593465285886_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1593465285886_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index 23e873812..000000000 --- a/hasura/migrations/1593465285886_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - first_name - - last_name - - employee_number - - shopid - - active - - hire_date - - termination_date - - base_rate - - cost_center - - flat_rate - set: {} - role: user - table: - name: employees - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1593465285886_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1593465285886_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 87a93588c..000000000 --- a/hasura/migrations/1593465285886_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - set: {} - role: user - table: - name: employees - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1593465298025_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1593465298025_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index 5e0722baa..000000000 --- a/hasura/migrations/1593465298025_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - flat_rate - - hire_date - - termination_date - - base_rate - - cost_center - - employee_number - - first_name - - last_name - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: employees - schema: public - type: create_update_permission diff --git a/hasura/migrations/1593465298025_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1593465298025_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index cd16e8032..000000000 --- a/hasura/migrations/1593465298025_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: employees - schema: public - type: create_update_permission diff --git a/hasura/migrations/1593465305783_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1593465305783_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index 56719d451..000000000 --- a/hasura/migrations/1593465305783_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - flat_rate - - hire_date - - termination_date - - base_rate - - cost_center - - employee_number - - first_name - - last_name - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: employees - schema: public - type: create_select_permission diff --git a/hasura/migrations/1593465305783_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1593465305783_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 3c4900c14..000000000 --- a/hasura/migrations/1593465305783_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: employees - schema: public - type: create_select_permission diff --git a/hasura/migrations/1593558171467_alter_table_public_payments_add_column_type/down.yaml b/hasura/migrations/1593558171467_alter_table_public_payments_add_column_type/down.yaml deleted file mode 100644 index 690192386..000000000 --- a/hasura/migrations/1593558171467_alter_table_public_payments_add_column_type/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" DROP COLUMN "type"; - type: run_sql diff --git a/hasura/migrations/1593558171467_alter_table_public_payments_add_column_type/up.yaml b/hasura/migrations/1593558171467_alter_table_public_payments_add_column_type/up.yaml deleted file mode 100644 index 061b0765f..000000000 --- a/hasura/migrations/1593558171467_alter_table_public_payments_add_column_type/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" ADD COLUMN "type" text NULL; - type: run_sql diff --git a/hasura/migrations/1593558184193_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1593558184193_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index c717f4391..000000000 --- a/hasura/migrations/1593558184193_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1593558184193_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1593558184193_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index d048afd30..000000000 --- a/hasura/migrations/1593558184193_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - type - - updated_at - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1593558194216_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1593558194216_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 7e84bd349..000000000 --- a/hasura/migrations/1593558194216_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1593558194216_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1593558194216_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index ffba0de91..000000000 --- a/hasura/migrations/1593558194216_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - type - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1593808978924_alter_table_public_timetickets_alter_column_ciecacode/down.yaml b/hasura/migrations/1593808978924_alter_table_public_timetickets_alter_column_ciecacode/down.yaml deleted file mode 100644 index 322274d86..000000000 --- a/hasura/migrations/1593808978924_alter_table_public_timetickets_alter_column_ciecacode/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."timetickets" ALTER COLUMN "ciecacode" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1593808978924_alter_table_public_timetickets_alter_column_ciecacode/up.yaml b/hasura/migrations/1593808978924_alter_table_public_timetickets_alter_column_ciecacode/up.yaml deleted file mode 100644 index 3e153375e..000000000 --- a/hasura/migrations/1593808978924_alter_table_public_timetickets_alter_column_ciecacode/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."timetickets" ALTER COLUMN "ciecacode" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1593808998661_alter_table_public_timetickets_alter_column_jobid/down.yaml b/hasura/migrations/1593808998661_alter_table_public_timetickets_alter_column_jobid/down.yaml deleted file mode 100644 index 78ed45603..000000000 --- a/hasura/migrations/1593808998661_alter_table_public_timetickets_alter_column_jobid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."timetickets" ALTER COLUMN "jobid" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1593808998661_alter_table_public_timetickets_alter_column_jobid/up.yaml b/hasura/migrations/1593808998661_alter_table_public_timetickets_alter_column_jobid/up.yaml deleted file mode 100644 index be9cca82a..000000000 --- a/hasura/migrations/1593808998661_alter_table_public_timetickets_alter_column_jobid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."timetickets" ALTER COLUMN "jobid" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1594659447638_alter_table_public_bodyshops_add_column_md_referral_sources/down.yaml b/hasura/migrations/1594659447638_alter_table_public_bodyshops_add_column_md_referral_sources/down.yaml deleted file mode 100644 index f79d49113..000000000 --- a/hasura/migrations/1594659447638_alter_table_public_bodyshops_add_column_md_referral_sources/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_referral_sources"; - type: run_sql diff --git a/hasura/migrations/1594659447638_alter_table_public_bodyshops_add_column_md_referral_sources/up.yaml b/hasura/migrations/1594659447638_alter_table_public_bodyshops_add_column_md_referral_sources/up.yaml deleted file mode 100644 index fb4e12981..000000000 --- a/hasura/migrations/1594659447638_alter_table_public_bodyshops_add_column_md_referral_sources/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_referral_sources" jsonb NOT - NULL DEFAULT jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1594659481096_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1594659481096_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 2ec6f434e..000000000 --- a/hasura/migrations/1594659481096_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,55 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594659481096_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1594659481096_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index a356f7c0d..000000000 --- a/hasura/migrations/1594659481096_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,56 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594659492762_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1594659492762_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 1466f0a71..000000000 --- a/hasura/migrations/1594659492762_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,49 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594659492762_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1594659492762_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index e3ade79e8..000000000 --- a/hasura/migrations/1594659492762_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594680139254_run_sql_migration/down.yaml b/hasura/migrations/1594680139254_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1594680139254_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1594680139254_run_sql_migration/up.yaml b/hasura/migrations/1594680139254_run_sql_migration/up.yaml deleted file mode 100644 index 6c88b4996..000000000 --- a/hasura/migrations/1594680139254_run_sql_migration/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - cascade: true - read_only: false - sql: |- - CREATE INDEX idx_vehicles_vin ON vehicles USING GIN (v_vin gin_trgm_ops); - CREATE INDEX idx_vehicles_plateno ON vehicles USING GIN (plate_no gin_trgm_ops); - type: run_sql diff --git a/hasura/migrations/1594680221027_run_sql_migration/down.yaml b/hasura/migrations/1594680221027_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1594680221027_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1594680221027_run_sql_migration/up.yaml b/hasura/migrations/1594680221027_run_sql_migration/up.yaml deleted file mode 100644 index 0750cc6cf..000000000 --- a/hasura/migrations/1594680221027_run_sql_migration/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_vehicles(search text)\n RETURNS - SETOF vehicles\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search - = '' then\n return query select * from vehicles ;\n else \n return query - SELECT\n *\nFROM\n vehicles\nWHERE\n search <% (v_vin) OR\n search <% (plate_no);\n - \ end if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: search_vehicles - schema: public - type: track_function diff --git a/hasura/migrations/1594680369038_update_permission_user_public_table_vehicles/down.yaml b/hasura/migrations/1594680369038_update_permission_user_public_table_vehicles/down.yaml deleted file mode 100644 index bec9ebae2..000000000 --- a/hasura/migrations/1594680369038_update_permission_user_public_table_vehicles/down.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - v_paint_codes - - db_v_code - - plate_no - - plate_st - - trim_color - - v_bstyle - - v_color - - v_cond - - v_engine - - v_makecode - - v_make_desc - - v_mldgcode - - v_model_desc - - v_model_yr - - v_options - - v_prod_dt - - v_stage - - v_tone - - v_trimcode - - v_type - - v_vin - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vehicles - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594680369038_update_permission_user_public_table_vehicles/up.yaml b/hasura/migrations/1594680369038_update_permission_user_public_table_vehicles/up.yaml deleted file mode 100644 index 47038ddc5..000000000 --- a/hasura/migrations/1594680369038_update_permission_user_public_table_vehicles/up.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: vehicles - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - v_paint_codes - - db_v_code - - plate_no - - plate_st - - trim_color - - v_bstyle - - v_color - - v_cond - - v_engine - - v_makecode - - v_make_desc - - v_mldgcode - - v_model_desc - - v_model_yr - - v_options - - v_prod_dt - - v_stage - - v_tone - - v_trimcode - - v_type - - v_vin - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vehicles - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594681018728_run_sql_migration/down.yaml b/hasura/migrations/1594681018728_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1594681018728_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1594681018728_run_sql_migration/up.yaml b/hasura/migrations/1594681018728_run_sql_migration/up.yaml deleted file mode 100644 index 091b48e2a..000000000 --- a/hasura/migrations/1594681018728_run_sql_migration/up.yaml +++ /dev/null @@ -1,19 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE INDEX idx_owners_ownr_fn ON owners USING GIN (ownr_fn gin_trgm_ops);\nCREATE - INDEX idx_owners_ownr_ln ON owners USING GIN (ownr_ln gin_trgm_ops);\nCREATE - INDEX idx_owners_ownr_co_nm ON owners USING GIN (ownr_co_nm gin_trgm_ops);\nCREATE - INDEX idx_owners_ownr_ph1 ON owners USING GIN (ownr_ph1 gin_trgm_ops);\nCREATE - INDEX idx_owners_ownr_addr1 ON owners USING GIN (ownr_addr1 gin_trgm_ops);\n\n\nCREATE - OR REPLACE FUNCTION public.search_owners(search text)\n RETURNS SETOF owners\n - LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search = '' then\n return - query select * from owners ;\n else \n return query SELECT\n *\nFROM\n - \ owners\nWHERE\n search <% (ownr_fn) OR\n search <% (ownr_ln) OR\n search - <% (ownr_co_nm) OR\n search <% (ownr_ph1) OR\n search <% (ownr_addr1);\n end - if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: search_owners - schema: public - type: track_function diff --git a/hasura/migrations/1594681091201_update_permission_user_public_table_owners/down.yaml b/hasura/migrations/1594681091201_update_permission_user_public_table_owners/down.yaml deleted file mode 100644 index 7c2e787be..000000000 --- a/hasura/migrations/1594681091201_update_permission_user_public_table_owners/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - allow_text_message - - accountingid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594681091201_update_permission_user_public_table_owners/up.yaml b/hasura/migrations/1594681091201_update_permission_user_public_table_owners/up.yaml deleted file mode 100644 index 42fd04f2f..000000000 --- a/hasura/migrations/1594681091201_update_permission_user_public_table_owners/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: owners - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - allow_text_message - - accountingid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: owners - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594741283350_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1594741283350_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index bc5c01b3a..000000000 --- a/hasura/migrations/1594741283350_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594741283350_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1594741283350_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index d3263f3f0..000000000 --- a/hasura/migrations/1594741283350_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - type - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594749366397_alter_table_public_users_add_column_dashboardlayout/down.yaml b/hasura/migrations/1594749366397_alter_table_public_users_add_column_dashboardlayout/down.yaml deleted file mode 100644 index 12f0337eb..000000000 --- a/hasura/migrations/1594749366397_alter_table_public_users_add_column_dashboardlayout/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."users" DROP COLUMN "dashboardlayout"; - type: run_sql diff --git a/hasura/migrations/1594749366397_alter_table_public_users_add_column_dashboardlayout/up.yaml b/hasura/migrations/1594749366397_alter_table_public_users_add_column_dashboardlayout/up.yaml deleted file mode 100644 index ae0348fbf..000000000 --- a/hasura/migrations/1594749366397_alter_table_public_users_add_column_dashboardlayout/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."users" ADD COLUMN "dashboardlayout" jsonb NOT NULL - DEFAULT jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1594749387526_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1594749387526_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 14839d69a..000000000 --- a/hasura/migrations/1594749387526_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - authid - - created_at - - email - - fcmtokens - - updated_at - computed_fields: [] - filter: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594749387526_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1594749387526_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 3822a6184..000000000 --- a/hasura/migrations/1594749387526_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - authid - - created_at - - dashboardlayout - - email - - fcmtokens - - updated_at - computed_fields: [] - filter: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594749395552_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1594749395552_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 9c06f74fb..000000000 --- a/hasura/migrations/1594749395552_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_update_permission -- args: - permission: - columns: - - authid - - email - - fcmtokens - filter: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: users - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594749395552_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1594749395552_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index f50ab23e2..000000000 --- a/hasura/migrations/1594749395552_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_update_permission -- args: - permission: - columns: - - authid - - dashboardlayout - - email - - fcmtokens - filter: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: users - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594836040740_update_permission_user_public_table_invoices/down.yaml b/hasura/migrations/1594836040740_update_permission_user_public_table_invoices/down.yaml deleted file mode 100644 index d4f9086a3..000000000 --- a/hasura/migrations/1594836040740_update_permission_user_public_table_invoices/down.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: invoices - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: invoices - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594836040740_update_permission_user_public_table_invoices/up.yaml b/hasura/migrations/1594836040740_update_permission_user_public_table_invoices/up.yaml deleted file mode 100644 index 5e57c7e8f..000000000 --- a/hasura/migrations/1594836040740_update_permission_user_public_table_invoices/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: invoices - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: invoices - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594851818607_alter_table_public_employees_add_column_user_email/down.yaml b/hasura/migrations/1594851818607_alter_table_public_employees_add_column_user_email/down.yaml deleted file mode 100644 index 1dc83f416..000000000 --- a/hasura/migrations/1594851818607_alter_table_public_employees_add_column_user_email/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."employees" DROP COLUMN "user_email"; - type: run_sql diff --git a/hasura/migrations/1594851818607_alter_table_public_employees_add_column_user_email/up.yaml b/hasura/migrations/1594851818607_alter_table_public_employees_add_column_user_email/up.yaml deleted file mode 100644 index 6726affb4..000000000 --- a/hasura/migrations/1594851818607_alter_table_public_employees_add_column_user_email/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."employees" ADD COLUMN "user_email" text NULL UNIQUE; - type: run_sql diff --git a/hasura/migrations/1594851844985_set_fk_public_employees_user_email/down.yaml b/hasura/migrations/1594851844985_set_fk_public_employees_user_email/down.yaml deleted file mode 100644 index 48005327a..000000000 --- a/hasura/migrations/1594851844985_set_fk_public_employees_user_email/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."employees" drop constraint "employees_user_email_fkey"; - type: run_sql diff --git a/hasura/migrations/1594851844985_set_fk_public_employees_user_email/up.yaml b/hasura/migrations/1594851844985_set_fk_public_employees_user_email/up.yaml deleted file mode 100644 index 576e41aee..000000000 --- a/hasura/migrations/1594851844985_set_fk_public_employees_user_email/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."employees" - add constraint "employees_user_email_fkey" - foreign key ("user_email") - references "public"."users" - ("email") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1594851857360_set_fk_public_employees_user_email/down.yaml b/hasura/migrations/1594851857360_set_fk_public_employees_user_email/down.yaml deleted file mode 100644 index c6cbe2afe..000000000 --- a/hasura/migrations/1594851857360_set_fk_public_employees_user_email/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."employees" drop constraint "employees_user_email_fkey", - add constraint "employees_user_email_fkey" - foreign key ("shopid") - references "public"."bodyshops" - ("id") - on update cascade - on delete cascade; - type: run_sql diff --git a/hasura/migrations/1594851857360_set_fk_public_employees_user_email/up.yaml b/hasura/migrations/1594851857360_set_fk_public_employees_user_email/up.yaml deleted file mode 100644 index 1eb438597..000000000 --- a/hasura/migrations/1594851857360_set_fk_public_employees_user_email/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."employees" drop constraint "employees_user_email_fkey", - add constraint "employees_user_email_fkey" - foreign key ("user_email") - references "public"."users" - ("email") on update set null on delete set null; - type: run_sql diff --git a/hasura/migrations/1594851876967_add_relationship_employee_table_public_undefined/down.yaml b/hasura/migrations/1594851876967_add_relationship_employee_table_public_undefined/down.yaml deleted file mode 100644 index 20b527075..000000000 --- a/hasura/migrations/1594851876967_add_relationship_employee_table_public_undefined/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: employee - table: - name: users - schema: public - type: drop_relationship diff --git a/hasura/migrations/1594851876967_add_relationship_employee_table_public_undefined/up.yaml b/hasura/migrations/1594851876967_add_relationship_employee_table_public_undefined/up.yaml deleted file mode 100644 index 8bfb787a2..000000000 --- a/hasura/migrations/1594851876967_add_relationship_employee_table_public_undefined/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - name: employee - table: - name: users - schema: public - using: - manual_configuration: - column_mapping: - email: user_email - remote_table: - name: employees - schema: public - type: create_object_relationship diff --git a/hasura/migrations/1594851879473_add_relationship_user_table_public_undefined/down.yaml b/hasura/migrations/1594851879473_add_relationship_user_table_public_undefined/down.yaml deleted file mode 100644 index 494b1abba..000000000 --- a/hasura/migrations/1594851879473_add_relationship_user_table_public_undefined/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: user - table: - name: employees - schema: public - type: drop_relationship diff --git a/hasura/migrations/1594851879473_add_relationship_user_table_public_undefined/up.yaml b/hasura/migrations/1594851879473_add_relationship_user_table_public_undefined/up.yaml deleted file mode 100644 index fb48d7ff9..000000000 --- a/hasura/migrations/1594851879473_add_relationship_user_table_public_undefined/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - name: user - table: - name: employees - schema: public - using: - foreign_key_constraint_on: user_email - type: create_object_relationship diff --git a/hasura/migrations/1594852259471_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1594852259471_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index 87a93588c..000000000 --- a/hasura/migrations/1594852259471_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - set: {} - role: user - table: - name: employees - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594852259471_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1594852259471_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 71581edc3..000000000 --- a/hasura/migrations/1594852259471_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - - user_email - set: {} - role: user - table: - name: employees - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594852265828_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1594852265828_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index 3c4900c14..000000000 --- a/hasura/migrations/1594852265828_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: employees - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594852265828_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1594852265828_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 8655d5eaf..000000000 --- a/hasura/migrations/1594852265828_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - - user_email - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: employees - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594852271012_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1594852271012_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index cd16e8032..000000000 --- a/hasura/migrations/1594852271012_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: employees - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594852271012_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1594852271012_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index e0859b31d..000000000 --- a/hasura/migrations/1594852271012_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - - user_email - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: employees - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594915350729_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1594915350729_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index bc6e43c69..000000000 --- a/hasura/migrations/1594915350729_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - date - - cost_center - - employeeid - - jobid - - rate - - productivehrs - - actualhrs - - clockon - - clockoff - - ciecacode - set: {} - role: user - table: - name: timetickets - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594915350729_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1594915350729_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index 240ecfad3..000000000 --- a/hasura/migrations/1594915350729_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,29 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_insert_permission -- args: - permission: - check: {} - columns: - - id - - created_at - - updated_at - - date - - cost_center - - employeeid - - jobid - - rate - - productivehrs - - actualhrs - - clockon - - clockoff - - ciecacode - set: {} - role: user - table: - name: timetickets - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594915426388_alter_table_public_timetickets_add_column_bodyshopid/down.yaml b/hasura/migrations/1594915426388_alter_table_public_timetickets_add_column_bodyshopid/down.yaml deleted file mode 100644 index 96c564400..000000000 --- a/hasura/migrations/1594915426388_alter_table_public_timetickets_add_column_bodyshopid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."timetickets" DROP COLUMN "bodyshopid"; - type: run_sql diff --git a/hasura/migrations/1594915426388_alter_table_public_timetickets_add_column_bodyshopid/up.yaml b/hasura/migrations/1594915426388_alter_table_public_timetickets_add_column_bodyshopid/up.yaml deleted file mode 100644 index ee1d6c0ee..000000000 --- a/hasura/migrations/1594915426388_alter_table_public_timetickets_add_column_bodyshopid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."timetickets" ADD COLUMN "bodyshopid" uuid NOT NULL; - type: run_sql diff --git a/hasura/migrations/1594915475076_set_fk_public_timetickets_bodyshopid/down.yaml b/hasura/migrations/1594915475076_set_fk_public_timetickets_bodyshopid/down.yaml deleted file mode 100644 index 0d7986c4a..000000000 --- a/hasura/migrations/1594915475076_set_fk_public_timetickets_bodyshopid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."timetickets" drop constraint "timetickets_bodyshopid_fkey"; - type: run_sql diff --git a/hasura/migrations/1594915475076_set_fk_public_timetickets_bodyshopid/up.yaml b/hasura/migrations/1594915475076_set_fk_public_timetickets_bodyshopid/up.yaml deleted file mode 100644 index 6c8c4e6af..000000000 --- a/hasura/migrations/1594915475076_set_fk_public_timetickets_bodyshopid/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."timetickets" - add constraint "timetickets_bodyshopid_fkey" - foreign key ("bodyshopid") - references "public"."bodyshops" - ("id") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1594915490297_track_all_relationships/down.yaml b/hasura/migrations/1594915490297_track_all_relationships/down.yaml deleted file mode 100644 index 497f44e49..000000000 --- a/hasura/migrations/1594915490297_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: timetickets - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: timetickets - schema: public - type: drop_relationship diff --git a/hasura/migrations/1594915490297_track_all_relationships/up.yaml b/hasura/migrations/1594915490297_track_all_relationships/up.yaml deleted file mode 100644 index 5f3da62f5..000000000 --- a/hasura/migrations/1594915490297_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: timetickets - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: timetickets - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: timetickets - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship diff --git a/hasura/migrations/1594915535846_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1594915535846_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index 240ecfad3..000000000 --- a/hasura/migrations/1594915535846_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,29 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_insert_permission -- args: - permission: - check: {} - columns: - - id - - created_at - - updated_at - - date - - cost_center - - employeeid - - jobid - - rate - - productivehrs - - actualhrs - - clockon - - clockoff - - ciecacode - set: {} - role: user - table: - name: timetickets - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594915535846_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1594915535846_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index 4602bb169..000000000 --- a/hasura/migrations/1594915535846_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - date - - cost_center - - employeeid - - jobid - - rate - - productivehrs - - actualhrs - - clockon - - clockoff - - ciecacode - set: {} - role: user - table: - name: timetickets - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594915560544_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1594915560544_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index 2385c1c75..000000000 --- a/hasura/migrations/1594915560544_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - date - - actualhrs - - productivehrs - - rate - - ciecacode - - cost_center - - clockoff - - clockon - - created_at - - updated_at - - employeeid - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: timetickets - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594915560544_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1594915560544_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index 578083106..000000000 --- a/hasura/migrations/1594915560544_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - productivehrs - - rate - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: timetickets - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594915572129_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1594915572129_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index 4602bb169..000000000 --- a/hasura/migrations/1594915572129_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - date - - cost_center - - employeeid - - jobid - - rate - - productivehrs - - actualhrs - - clockon - - clockoff - - ciecacode - set: {} - role: user - table: - name: timetickets - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594915572129_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1594915572129_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index c1deea7fc..000000000 --- a/hasura/migrations/1594915572129_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - productivehrs - - rate - - updated_at - set: {} - role: user - table: - name: timetickets - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594915585321_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1594915585321_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index 87f016c2f..000000000 --- a/hasura/migrations/1594915585321_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_update_permission -- args: - permission: - columns: - - date - - actualhrs - - productivehrs - - rate - - ciecacode - - cost_center - - clockoff - - clockon - - created_at - - updated_at - - employeeid - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: timetickets - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594915585321_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1594915585321_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index 607a87ce6..000000000 --- a/hasura/migrations/1594915585321_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - productivehrs - - rate - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: timetickets - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594915594328_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1594915594328_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index d6cac164e..000000000 --- a/hasura/migrations/1594915594328_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_delete_permission -- args: - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: timetickets - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1594915594328_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1594915594328_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index c2f88054f..000000000 --- a/hasura/migrations/1594915594328_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,22 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_delete_permission -- args: - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: timetickets - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1594918801030_alter_table_public_timetickets_add_column_memo/down.yaml b/hasura/migrations/1594918801030_alter_table_public_timetickets_add_column_memo/down.yaml deleted file mode 100644 index e2f8bd8a1..000000000 --- a/hasura/migrations/1594918801030_alter_table_public_timetickets_add_column_memo/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."timetickets" DROP COLUMN "memo"; - type: run_sql diff --git a/hasura/migrations/1594918801030_alter_table_public_timetickets_add_column_memo/up.yaml b/hasura/migrations/1594918801030_alter_table_public_timetickets_add_column_memo/up.yaml deleted file mode 100644 index 9fe67874e..000000000 --- a/hasura/migrations/1594918801030_alter_table_public_timetickets_add_column_memo/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."timetickets" ADD COLUMN "memo" text NULL; - type: run_sql diff --git a/hasura/migrations/1594918812708_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1594918812708_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index c1deea7fc..000000000 --- a/hasura/migrations/1594918812708_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - productivehrs - - rate - - updated_at - set: {} - role: user - table: - name: timetickets - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594918812708_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1594918812708_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index 2738367b3..000000000 --- a/hasura/migrations/1594918812708_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - memo - - productivehrs - - rate - - updated_at - set: {} - role: user - table: - name: timetickets - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594918823530_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1594918823530_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index 578083106..000000000 --- a/hasura/migrations/1594918823530_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - productivehrs - - rate - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: timetickets - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594918823530_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1594918823530_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index 9b9382fa6..000000000 --- a/hasura/migrations/1594918823530_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - memo - - productivehrs - - rate - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: timetickets - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594918834840_update_permission_user_public_table_timetickets/down.yaml b/hasura/migrations/1594918834840_update_permission_user_public_table_timetickets/down.yaml deleted file mode 100644 index 607a87ce6..000000000 --- a/hasura/migrations/1594918834840_update_permission_user_public_table_timetickets/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - productivehrs - - rate - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: timetickets - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594918834840_update_permission_user_public_table_timetickets/up.yaml b/hasura/migrations/1594918834840_update_permission_user_public_table_timetickets/up.yaml deleted file mode 100644 index 81b11bf65..000000000 --- a/hasura/migrations/1594918834840_update_permission_user_public_table_timetickets/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: timetickets - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - memo - - productivehrs - - rate - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: timetickets - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594921658592_alter_table_public_jobs_add_column_employee_body/down.yaml b/hasura/migrations/1594921658592_alter_table_public_jobs_add_column_employee_body/down.yaml deleted file mode 100644 index 82630d41b..000000000 --- a/hasura/migrations/1594921658592_alter_table_public_jobs_add_column_employee_body/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "employee_body"; - type: run_sql diff --git a/hasura/migrations/1594921658592_alter_table_public_jobs_add_column_employee_body/up.yaml b/hasura/migrations/1594921658592_alter_table_public_jobs_add_column_employee_body/up.yaml deleted file mode 100644 index 40e980024..000000000 --- a/hasura/migrations/1594921658592_alter_table_public_jobs_add_column_employee_body/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "employee_body" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1594921667947_alter_table_public_jobs_add_column_employee_refinish/down.yaml b/hasura/migrations/1594921667947_alter_table_public_jobs_add_column_employee_refinish/down.yaml deleted file mode 100644 index bb1d0e1b9..000000000 --- a/hasura/migrations/1594921667947_alter_table_public_jobs_add_column_employee_refinish/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "employee_refinish"; - type: run_sql diff --git a/hasura/migrations/1594921667947_alter_table_public_jobs_add_column_employee_refinish/up.yaml b/hasura/migrations/1594921667947_alter_table_public_jobs_add_column_employee_refinish/up.yaml deleted file mode 100644 index cf89fdb9b..000000000 --- a/hasura/migrations/1594921667947_alter_table_public_jobs_add_column_employee_refinish/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "employee_refinish" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1594921687862_set_fk_public_jobs_employee_body/down.yaml b/hasura/migrations/1594921687862_set_fk_public_jobs_employee_body/down.yaml deleted file mode 100644 index d49240e28..000000000 --- a/hasura/migrations/1594921687862_set_fk_public_jobs_employee_body/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."jobs" drop constraint "jobs_employee_body_fkey"; - type: run_sql diff --git a/hasura/migrations/1594921687862_set_fk_public_jobs_employee_body/up.yaml b/hasura/migrations/1594921687862_set_fk_public_jobs_employee_body/up.yaml deleted file mode 100644 index b175a8faa..000000000 --- a/hasura/migrations/1594921687862_set_fk_public_jobs_employee_body/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."jobs" - add constraint "jobs_employee_body_fkey" - foreign key ("employee_body") - references "public"."employees" - ("id") on update set null on delete set null; - type: run_sql diff --git a/hasura/migrations/1594921705289_set_fk_public_jobs_employee_refinish/down.yaml b/hasura/migrations/1594921705289_set_fk_public_jobs_employee_refinish/down.yaml deleted file mode 100644 index 2b23b593c..000000000 --- a/hasura/migrations/1594921705289_set_fk_public_jobs_employee_refinish/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."jobs" drop constraint "jobs_employee_refinish_fkey"; - type: run_sql diff --git a/hasura/migrations/1594921705289_set_fk_public_jobs_employee_refinish/up.yaml b/hasura/migrations/1594921705289_set_fk_public_jobs_employee_refinish/up.yaml deleted file mode 100644 index 6b00138db..000000000 --- a/hasura/migrations/1594921705289_set_fk_public_jobs_employee_refinish/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."jobs" - add constraint "jobs_employee_refinish_fkey" - foreign key ("employee_refinish") - references "public"."employees" - ("id") on update set null on delete set null; - type: run_sql diff --git a/hasura/migrations/1594921899352_track_all_relationships/down.yaml b/hasura/migrations/1594921899352_track_all_relationships/down.yaml deleted file mode 100644 index 448bee39c..000000000 --- a/hasura/migrations/1594921899352_track_all_relationships/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - relationship: employee - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: employeeByEmployeeBody - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: jobs - table: - name: employees - schema: public - type: drop_relationship -- args: - relationship: jobsByEmployeeRefinish - table: - name: employees - schema: public - type: drop_relationship diff --git a/hasura/migrations/1594921899352_track_all_relationships/up.yaml b/hasura/migrations/1594921899352_track_all_relationships/up.yaml deleted file mode 100644 index a5f7a2c41..000000000 --- a/hasura/migrations/1594921899352_track_all_relationships/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - name: employee - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: employee_refinish - type: create_object_relationship -- args: - name: employeeByEmployeeBody - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: employee_body - type: create_object_relationship -- args: - name: jobs - table: - name: employees - schema: public - using: - foreign_key_constraint_on: - column: employee_body - table: - name: jobs - schema: public - type: create_array_relationship -- args: - name: jobsByEmployeeRefinish - table: - name: employees - schema: public - using: - foreign_key_constraint_on: - column: employee_refinish - table: - name: jobs - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1594923683074_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1594923683074_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 8aa9cc00c..000000000 --- a/hasura/migrations/1594923683074_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,255 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594923683074_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1594923683074_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 0178be5a6..000000000 --- a/hasura/migrations/1594923683074_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1594923695014_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1594923695014_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 26e7035b1..000000000 --- a/hasura/migrations/1594923695014_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,256 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594923695014_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1594923695014_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index e157ffd56..000000000 --- a/hasura/migrations/1594923695014_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1594923702147_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1594923702147_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 8d2013ec2..000000000 --- a/hasura/migrations/1594923702147_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,255 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594923702147_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1594923702147_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4e85e20cd..000000000 --- a/hasura/migrations/1594923702147_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1594925500847_rename_relationship_employee_to_employee_refinish_rel_schema_public_table_jobs/down.yaml b/hasura/migrations/1594925500847_rename_relationship_employee_to_employee_refinish_rel_schema_public_table_jobs/down.yaml deleted file mode 100644 index 31423f50b..000000000 --- a/hasura/migrations/1594925500847_rename_relationship_employee_to_employee_refinish_rel_schema_public_table_jobs/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: employee_refinish_rel - new_name: employee - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1594925500847_rename_relationship_employee_to_employee_refinish_rel_schema_public_table_jobs/up.yaml b/hasura/migrations/1594925500847_rename_relationship_employee_to_employee_refinish_rel_schema_public_table_jobs/up.yaml deleted file mode 100644 index 27fa63b3b..000000000 --- a/hasura/migrations/1594925500847_rename_relationship_employee_to_employee_refinish_rel_schema_public_table_jobs/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: employee - new_name: employee_refinish_rel - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1594925511356_rename_relationship_employeeByEmployeeBody_to_employee_body_rel_schema_public_table_jobs/down.yaml b/hasura/migrations/1594925511356_rename_relationship_employeeByEmployeeBody_to_employee_body_rel_schema_public_table_jobs/down.yaml deleted file mode 100644 index 1dcfe0459..000000000 --- a/hasura/migrations/1594925511356_rename_relationship_employeeByEmployeeBody_to_employee_body_rel_schema_public_table_jobs/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: employee_body_rel - new_name: employeeByEmployeeBody - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1594925511356_rename_relationship_employeeByEmployeeBody_to_employee_body_rel_schema_public_table_jobs/up.yaml b/hasura/migrations/1594925511356_rename_relationship_employeeByEmployeeBody_to_employee_body_rel_schema_public_table_jobs/up.yaml deleted file mode 100644 index 74881e299..000000000 --- a/hasura/migrations/1594925511356_rename_relationship_employeeByEmployeeBody_to_employee_body_rel_schema_public_table_jobs/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: employeeByEmployeeBody - new_name: employee_body_rel - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1594932730719_run_sql_migration/down.yaml b/hasura/migrations/1594932730719_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1594932730719_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1594932730719_run_sql_migration/up.yaml b/hasura/migrations/1594932730719_run_sql_migration/up.yaml deleted file mode 100644 index 7bc1377bd..000000000 --- a/hasura/migrations/1594932730719_run_sql_migration/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE VIEW \"public\".\"productionview\" AS \n SELECT j.id,\n - \ j.status,\n j.ro_number,\n j.est_number,\n j.ownr_fn,\n j.ownr_ln,\n - \ j.v_model_yr,\n j.v_model_desc,\n j.clm_no,\n j.v_make_desc,\n - \ j.v_color,\n j.plate_no,\n j.actual_in,\n j.scheduled_completion,\n - \ j.scheduled_delivery,\n j.ins_co_nm,\n j.clm_total,\n j.ownr_ph1,\n - \ j.special_coverage_policy,\n j.production_vars,\n lab.labhrs,\n lar.larhrs,\n - \ j.shopid,\n parts.partcount,\n j.kanbanparent,\n j.employee_body,\n - \ j.employee_refinish\n FROM (((jobs j\n LEFT JOIN ( SELECT l.jobid,\n - \ sum(l.mod_lb_hrs) AS labhrs\n FROM joblines l\n WHERE - (l.mod_lbr_ty = 'LAB'::text)\n GROUP BY l.jobid) lab ON ((lab.jobid - = j.id)))\n LEFT JOIN ( SELECT l2.jobid,\n sum(l2.mod_lb_hrs) - AS larhrs\n FROM joblines l2\n WHERE (l2.mod_lbr_ty = 'LAR'::text)\n - \ GROUP BY l2.jobid) lar ON ((lar.jobid = j.id)))\n LEFT JOIN ( - SELECT l3.jobid,\n json_agg(l3.status) AS partcount\n FROM - joblines l3\n WHERE (l3.part_type IS NOT NULL)\n GROUP BY - l3.jobid) parts ON ((parts.jobid = j.id)))\n WHERE (j.inproduction = true);" - type: run_sql diff --git a/hasura/migrations/1594932762413_create_relationship_employee_refinish_rel_public_table_productionview/down.yaml b/hasura/migrations/1594932762413_create_relationship_employee_refinish_rel_public_table_productionview/down.yaml deleted file mode 100644 index e29526af1..000000000 --- a/hasura/migrations/1594932762413_create_relationship_employee_refinish_rel_public_table_productionview/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: employee_refinish_rel - table: - name: productionview - schema: public - type: drop_relationship diff --git a/hasura/migrations/1594932762413_create_relationship_employee_refinish_rel_public_table_productionview/up.yaml b/hasura/migrations/1594932762413_create_relationship_employee_refinish_rel_public_table_productionview/up.yaml deleted file mode 100644 index 5ee8b08b6..000000000 --- a/hasura/migrations/1594932762413_create_relationship_employee_refinish_rel_public_table_productionview/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - name: employee_refinish_rel - table: - name: productionview - schema: public - using: - manual_configuration: - column_mapping: - employee_refinish: id - remote_table: - name: employees - schema: public - type: create_object_relationship diff --git a/hasura/migrations/1594932786764_create_relationship_employee_body_rel_public_table_productionview/down.yaml b/hasura/migrations/1594932786764_create_relationship_employee_body_rel_public_table_productionview/down.yaml deleted file mode 100644 index 580a35af6..000000000 --- a/hasura/migrations/1594932786764_create_relationship_employee_body_rel_public_table_productionview/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: employee_body_rel - table: - name: productionview - schema: public - type: drop_relationship diff --git a/hasura/migrations/1594932786764_create_relationship_employee_body_rel_public_table_productionview/up.yaml b/hasura/migrations/1594932786764_create_relationship_employee_body_rel_public_table_productionview/up.yaml deleted file mode 100644 index 8a3bbec81..000000000 --- a/hasura/migrations/1594932786764_create_relationship_employee_body_rel_public_table_productionview/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - name: employee_body_rel - table: - name: productionview - schema: public - using: - manual_configuration: - column_mapping: - employee_body: id - remote_table: - name: employees - schema: public - type: create_object_relationship diff --git a/hasura/migrations/1594934537921_drop_function_public_search_owner/down.yaml b/hasura/migrations/1594934537921_drop_function_public_search_owner/down.yaml deleted file mode 100644 index 22e6a5b37..000000000 --- a/hasura/migrations/1594934537921_drop_function_public_search_owner/down.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_owner(search text)\n RETURNS SETOF - owners\n LANGUAGE plpgsql\n STABLE\nAS $function$\r\n\r\nBEGIN\r\n if search - = '' then\r\n return query select * from owners ;\r\n else \r\n return - query SELECT\r\n *\r\nFROM\r\n owners\r\nWHERE\r\n search <% (ownr_fn) OR\r\n - \ search <% (ownr_ln) OR\r\n search <% (ownr_co_nm) ;\r\n end if;\r\n\r\n\tEND\r\n$function$;" - type: run_sql diff --git a/hasura/migrations/1594934537921_drop_function_public_search_owner/up.yaml b/hasura/migrations/1594934537921_drop_function_public_search_owner/up.yaml deleted file mode 100644 index dacf4304c..000000000 --- a/hasura/migrations/1594934537921_drop_function_public_search_owner/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP FUNCTION "public"."search_owner"("pg_catalog"."text"); - type: run_sql diff --git a/hasura/migrations/1595368680511_alter_table_public_bodyshops_add_column_md_messaging_presets/down.yaml b/hasura/migrations/1595368680511_alter_table_public_bodyshops_add_column_md_messaging_presets/down.yaml deleted file mode 100644 index 7181e71eb..000000000 --- a/hasura/migrations/1595368680511_alter_table_public_bodyshops_add_column_md_messaging_presets/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_messaging_presets"; - type: run_sql diff --git a/hasura/migrations/1595368680511_alter_table_public_bodyshops_add_column_md_messaging_presets/up.yaml b/hasura/migrations/1595368680511_alter_table_public_bodyshops_add_column_md_messaging_presets/up.yaml deleted file mode 100644 index 4effad2dc..000000000 --- a/hasura/migrations/1595368680511_alter_table_public_bodyshops_add_column_md_messaging_presets/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_messaging_presets" jsonb - NULL DEFAULT jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1595368689122_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1595368689122_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index a356f7c0d..000000000 --- a/hasura/migrations/1595368689122_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,56 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1595368689122_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1595368689122_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index b0494d6ee..000000000 --- a/hasura/migrations/1595368689122_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,57 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1595370737421_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1595370737421_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index e3ade79e8..000000000 --- a/hasura/migrations/1595370737421_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1595370737421_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1595370737421_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 5702e6737..000000000 --- a/hasura/migrations/1595370737421_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,51 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1595971170482_run_sql_migration/down.yaml b/hasura/migrations/1595971170482_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1595971170482_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1595971170482_run_sql_migration/up.yaml b/hasura/migrations/1595971170482_run_sql_migration/up.yaml deleted file mode 100644 index 12d51c766..000000000 --- a/hasura/migrations/1595971170482_run_sql_migration/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: true - read_only: false - sql: CREATE INDEX idx_invoices_invoicenumber ON invoices USING GIN (invoice_number - gin_trgm_ops); - type: run_sql diff --git a/hasura/migrations/1595971216422_run_sql_migration/down.yaml b/hasura/migrations/1595971216422_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1595971216422_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1595971216422_run_sql_migration/up.yaml b/hasura/migrations/1595971216422_run_sql_migration/up.yaml deleted file mode 100644 index 5e9aff249..000000000 --- a/hasura/migrations/1595971216422_run_sql_migration/up.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_invoices(search text)\n RETURNS - SETOF invoices\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search - = '' then\n return query select * from invoices ;\n else \n return query - SELECT\n *\nFROM\n payments\nWHERE\n search <% (invoice_number);\n end if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: search_invoices - schema: public - type: track_function diff --git a/hasura/migrations/1595973678869_run_sql_migration/down.yaml b/hasura/migrations/1595973678869_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1595973678869_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1595973678869_run_sql_migration/up.yaml b/hasura/migrations/1595973678869_run_sql_migration/up.yaml deleted file mode 100644 index 410506db0..000000000 --- a/hasura/migrations/1595973678869_run_sql_migration/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_invoices(search text)\n RETURNS - SETOF invoices\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search - = '' then\n return query select * from invoices ;\n else \n return query - SELECT\n *\nFROM\n invoices\nWHERE\n search <% (invoice_number);\n end if;\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1595980612052_alter_table_public_cccontracts_add_column_contract_date/down.yaml b/hasura/migrations/1595980612052_alter_table_public_cccontracts_add_column_contract_date/down.yaml deleted file mode 100644 index 128efc232..000000000 --- a/hasura/migrations/1595980612052_alter_table_public_cccontracts_add_column_contract_date/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "contract_date"; - type: run_sql diff --git a/hasura/migrations/1595980612052_alter_table_public_cccontracts_add_column_contract_date/up.yaml b/hasura/migrations/1595980612052_alter_table_public_cccontracts_add_column_contract_date/up.yaml deleted file mode 100644 index 960f6ee10..000000000 --- a/hasura/migrations/1595980612052_alter_table_public_cccontracts_add_column_contract_date/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "contract_date" date NOT NULL - DEFAULT now(); - type: run_sql diff --git a/hasura/migrations/1595980626673_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1595980626673_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index db9b9c2f5..000000000 --- a/hasura/migrations/1595980626673_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,52 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_insert_permission -- args: - permission: - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - agreementnumber - - courtesycarid - - jobid - - status - - start - - scheduledreturn - - actualreturn - - kmstart - - kmend - - driver_dlnumber - - driver_dlexpiry - - driver_dlst - - driver_fn - - driver_ln - - driver_addr1 - - driver_addr2 - - driver_city - - driver_state - - driver_zip - - driver_ph1 - - driver_dob - - cc_num - - cc_expiry - - cc_cardholder - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1595980626673_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1595980626673_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index c1a342491..000000000 --- a/hasura/migrations/1595980626673_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,53 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_insert_permission -- args: - permission: - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actualreturn - - agreementnumber - - cc_cardholder - - cc_expiry - - cc_num - - contract_date - - courtesycarid - - created_at - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - id - - jobid - - kmend - - kmstart - - scheduledreturn - - start - - status - - updated_at - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1595980634440_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1595980634440_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index f9250216f..000000000 --- a/hasura/migrations/1595980634440_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,53 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actualreturn - - driver_dlexpiry - - driver_dob - - scheduledreturn - - start - - agreementnumber - - kmend - - kmstart - - cc_cardholder - - cc_expiry - - cc_num - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlnumber - - driver_dlst - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - status - - created_at - - updated_at - - courtesycarid - - id - - jobid - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1595980634440_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1595980634440_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 4540f23c1..000000000 --- a/hasura/migrations/1595980634440_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,54 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actualreturn - - agreementnumber - - cc_cardholder - - cc_expiry - - cc_num - - contract_date - - courtesycarid - - created_at - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - id - - jobid - - kmend - - kmstart - - scheduledreturn - - start - - status - - updated_at - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1595980641113_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1595980641113_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 8c03f840b..000000000 --- a/hasura/migrations/1595980641113_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,52 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actualreturn - - driver_dlexpiry - - driver_dob - - scheduledreturn - - start - - agreementnumber - - kmend - - kmstart - - cc_cardholder - - cc_expiry - - cc_num - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlnumber - - driver_dlst - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - status - - created_at - - updated_at - - courtesycarid - - id - - jobid - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_update_permission diff --git a/hasura/migrations/1595980641113_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1595980641113_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 940a40c86..000000000 --- a/hasura/migrations/1595980641113_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,53 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actualreturn - - agreementnumber - - cc_cardholder - - cc_expiry - - cc_num - - contract_date - - courtesycarid - - created_at - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - id - - jobid - - kmend - - kmstart - - scheduledreturn - - start - - status - - updated_at - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_update_permission diff --git a/hasura/migrations/1595981259823_alter_table_public_cccontracts_alter_column_scheduledreturn/down.yaml b/hasura/migrations/1595981259823_alter_table_public_cccontracts_alter_column_scheduledreturn/down.yaml deleted file mode 100644 index 587054ea2..000000000 --- a/hasura/migrations/1595981259823_alter_table_public_cccontracts_alter_column_scheduledreturn/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "scheduledreturn" TYPE date; - type: run_sql diff --git a/hasura/migrations/1595981259823_alter_table_public_cccontracts_alter_column_scheduledreturn/up.yaml b/hasura/migrations/1595981259823_alter_table_public_cccontracts_alter_column_scheduledreturn/up.yaml deleted file mode 100644 index d8ac374c6..000000000 --- a/hasura/migrations/1595981259823_alter_table_public_cccontracts_alter_column_scheduledreturn/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "scheduledreturn" TYPE timestamptz; - type: run_sql diff --git a/hasura/migrations/1595981268153_alter_table_public_cccontracts_alter_column_actualreturn/down.yaml b/hasura/migrations/1595981268153_alter_table_public_cccontracts_alter_column_actualreturn/down.yaml deleted file mode 100644 index a0f395fb8..000000000 --- a/hasura/migrations/1595981268153_alter_table_public_cccontracts_alter_column_actualreturn/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "actualreturn" TYPE date; - type: run_sql diff --git a/hasura/migrations/1595981268153_alter_table_public_cccontracts_alter_column_actualreturn/up.yaml b/hasura/migrations/1595981268153_alter_table_public_cccontracts_alter_column_actualreturn/up.yaml deleted file mode 100644 index 113266fb0..000000000 --- a/hasura/migrations/1595981268153_alter_table_public_cccontracts_alter_column_actualreturn/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "actualreturn" TYPE timestamptz; - type: run_sql diff --git a/hasura/migrations/1595981281561_alter_table_public_cccontracts_alter_column_start/down.yaml b/hasura/migrations/1595981281561_alter_table_public_cccontracts_alter_column_start/down.yaml deleted file mode 100644 index 51e31e840..000000000 --- a/hasura/migrations/1595981281561_alter_table_public_cccontracts_alter_column_start/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "start" TYPE date; - type: run_sql diff --git a/hasura/migrations/1595981281561_alter_table_public_cccontracts_alter_column_start/up.yaml b/hasura/migrations/1595981281561_alter_table_public_cccontracts_alter_column_start/up.yaml deleted file mode 100644 index dfc83aeb4..000000000 --- a/hasura/migrations/1595981281561_alter_table_public_cccontracts_alter_column_start/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "start" TYPE timestamptz; - type: run_sql diff --git a/hasura/migrations/1596043759608_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1596043759608_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 4540f23c1..000000000 --- a/hasura/migrations/1596043759608_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,54 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actualreturn - - agreementnumber - - cc_cardholder - - cc_expiry - - cc_num - - contract_date - - courtesycarid - - created_at - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - id - - jobid - - kmend - - kmstart - - scheduledreturn - - start - - status - - updated_at - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596043759608_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1596043759608_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 7c8f665fe..000000000 --- a/hasura/migrations/1596043759608_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,54 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actualreturn - - agreementnumber - - cc_cardholder - - cc_expiry - - cc_num - - contract_date - - courtesycarid - - created_at - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - id - - jobid - - kmend - - kmstart - - scheduledreturn - - start - - status - - updated_at - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596046286851_alter_table_public_cccontracts_add_column_dailyrate/down.yaml b/hasura/migrations/1596046286851_alter_table_public_cccontracts_add_column_dailyrate/down.yaml deleted file mode 100644 index dd1e5b4be..000000000 --- a/hasura/migrations/1596046286851_alter_table_public_cccontracts_add_column_dailyrate/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "dailyrate"; - type: run_sql diff --git a/hasura/migrations/1596046286851_alter_table_public_cccontracts_add_column_dailyrate/up.yaml b/hasura/migrations/1596046286851_alter_table_public_cccontracts_add_column_dailyrate/up.yaml deleted file mode 100644 index 57501317b..000000000 --- a/hasura/migrations/1596046286851_alter_table_public_cccontracts_add_column_dailyrate/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "dailyrate" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1596046305024_alter_table_public_cccontracts_add_column_actax/down.yaml b/hasura/migrations/1596046305024_alter_table_public_cccontracts_add_column_actax/down.yaml deleted file mode 100644 index 2ba091dae..000000000 --- a/hasura/migrations/1596046305024_alter_table_public_cccontracts_add_column_actax/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "actax"; - type: run_sql diff --git a/hasura/migrations/1596046305024_alter_table_public_cccontracts_add_column_actax/up.yaml b/hasura/migrations/1596046305024_alter_table_public_cccontracts_add_column_actax/up.yaml deleted file mode 100644 index bcc852b3e..000000000 --- a/hasura/migrations/1596046305024_alter_table_public_cccontracts_add_column_actax/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "actax" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1596046319740_alter_table_public_cccontracts_add_column_dailyfreekm/down.yaml b/hasura/migrations/1596046319740_alter_table_public_cccontracts_add_column_dailyfreekm/down.yaml deleted file mode 100644 index e84609937..000000000 --- a/hasura/migrations/1596046319740_alter_table_public_cccontracts_add_column_dailyfreekm/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "dailyfreekm"; - type: run_sql diff --git a/hasura/migrations/1596046319740_alter_table_public_cccontracts_add_column_dailyfreekm/up.yaml b/hasura/migrations/1596046319740_alter_table_public_cccontracts_add_column_dailyfreekm/up.yaml deleted file mode 100644 index 3863a4a65..000000000 --- a/hasura/migrations/1596046319740_alter_table_public_cccontracts_add_column_dailyfreekm/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "dailyfreekm" integer NULL; - type: run_sql diff --git a/hasura/migrations/1596046346591_alter_table_public_cccontracts_add_column_refuelcharge/down.yaml b/hasura/migrations/1596046346591_alter_table_public_cccontracts_add_column_refuelcharge/down.yaml deleted file mode 100644 index 1e88ae955..000000000 --- a/hasura/migrations/1596046346591_alter_table_public_cccontracts_add_column_refuelcharge/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "refuelcharge"; - type: run_sql diff --git a/hasura/migrations/1596046346591_alter_table_public_cccontracts_add_column_refuelcharge/up.yaml b/hasura/migrations/1596046346591_alter_table_public_cccontracts_add_column_refuelcharge/up.yaml deleted file mode 100644 index 53cab530d..000000000 --- a/hasura/migrations/1596046346591_alter_table_public_cccontracts_add_column_refuelcharge/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "refuelcharge" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1596046359901_alter_table_public_cccontracts_add_column_excesskmrate/down.yaml b/hasura/migrations/1596046359901_alter_table_public_cccontracts_add_column_excesskmrate/down.yaml deleted file mode 100644 index 39772daee..000000000 --- a/hasura/migrations/1596046359901_alter_table_public_cccontracts_add_column_excesskmrate/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "excesskmrate"; - type: run_sql diff --git a/hasura/migrations/1596046359901_alter_table_public_cccontracts_add_column_excesskmrate/up.yaml b/hasura/migrations/1596046359901_alter_table_public_cccontracts_add_column_excesskmrate/up.yaml deleted file mode 100644 index 9ab273f39..000000000 --- a/hasura/migrations/1596046359901_alter_table_public_cccontracts_add_column_excesskmrate/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "excesskmrate" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1596046371231_alter_table_public_cccontracts_add_column_cleanupcharge/down.yaml b/hasura/migrations/1596046371231_alter_table_public_cccontracts_add_column_cleanupcharge/down.yaml deleted file mode 100644 index ab1f933b8..000000000 --- a/hasura/migrations/1596046371231_alter_table_public_cccontracts_add_column_cleanupcharge/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "cleanupcharge"; - type: run_sql diff --git a/hasura/migrations/1596046371231_alter_table_public_cccontracts_add_column_cleanupcharge/up.yaml b/hasura/migrations/1596046371231_alter_table_public_cccontracts_add_column_cleanupcharge/up.yaml deleted file mode 100644 index 91ea00b95..000000000 --- a/hasura/migrations/1596046371231_alter_table_public_cccontracts_add_column_cleanupcharge/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "cleanupcharge" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1596046651239_alter_table_public_cccontracts_add_column_damangewaiver/down.yaml b/hasura/migrations/1596046651239_alter_table_public_cccontracts_add_column_damangewaiver/down.yaml deleted file mode 100644 index de45fb105..000000000 --- a/hasura/migrations/1596046651239_alter_table_public_cccontracts_add_column_damangewaiver/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "damangewaiver"; - type: run_sql diff --git a/hasura/migrations/1596046651239_alter_table_public_cccontracts_add_column_damangewaiver/up.yaml b/hasura/migrations/1596046651239_alter_table_public_cccontracts_add_column_damangewaiver/up.yaml deleted file mode 100644 index b45cfc7ad..000000000 --- a/hasura/migrations/1596046651239_alter_table_public_cccontracts_add_column_damangewaiver/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "damangewaiver" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1596046679135_alter_table_public_cccontracts_add_column_federaltax/down.yaml b/hasura/migrations/1596046679135_alter_table_public_cccontracts_add_column_federaltax/down.yaml deleted file mode 100644 index 54336543c..000000000 --- a/hasura/migrations/1596046679135_alter_table_public_cccontracts_add_column_federaltax/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "federaltax"; - type: run_sql diff --git a/hasura/migrations/1596046679135_alter_table_public_cccontracts_add_column_federaltax/up.yaml b/hasura/migrations/1596046679135_alter_table_public_cccontracts_add_column_federaltax/up.yaml deleted file mode 100644 index ff80c606c..000000000 --- a/hasura/migrations/1596046679135_alter_table_public_cccontracts_add_column_federaltax/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "federaltax" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1596046689469_alter_table_public_cccontracts_add_column_statetax/down.yaml b/hasura/migrations/1596046689469_alter_table_public_cccontracts_add_column_statetax/down.yaml deleted file mode 100644 index 60a096607..000000000 --- a/hasura/migrations/1596046689469_alter_table_public_cccontracts_add_column_statetax/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "statetax"; - type: run_sql diff --git a/hasura/migrations/1596046689469_alter_table_public_cccontracts_add_column_statetax/up.yaml b/hasura/migrations/1596046689469_alter_table_public_cccontracts_add_column_statetax/up.yaml deleted file mode 100644 index 5437a46af..000000000 --- a/hasura/migrations/1596046689469_alter_table_public_cccontracts_add_column_statetax/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "statetax" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1596046701676_alter_table_public_cccontracts_add_column_localtax/down.yaml b/hasura/migrations/1596046701676_alter_table_public_cccontracts_add_column_localtax/down.yaml deleted file mode 100644 index dc473a6d3..000000000 --- a/hasura/migrations/1596046701676_alter_table_public_cccontracts_add_column_localtax/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "localtax"; - type: run_sql diff --git a/hasura/migrations/1596046701676_alter_table_public_cccontracts_add_column_localtax/up.yaml b/hasura/migrations/1596046701676_alter_table_public_cccontracts_add_column_localtax/up.yaml deleted file mode 100644 index 91eb9ab40..000000000 --- a/hasura/migrations/1596046701676_alter_table_public_cccontracts_add_column_localtax/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "localtax" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1596046750711_alter_table_public_cccontracts_add_column_coverage/down.yaml b/hasura/migrations/1596046750711_alter_table_public_cccontracts_add_column_coverage/down.yaml deleted file mode 100644 index d75e3cf51..000000000 --- a/hasura/migrations/1596046750711_alter_table_public_cccontracts_add_column_coverage/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "coverage"; - type: run_sql diff --git a/hasura/migrations/1596046750711_alter_table_public_cccontracts_add_column_coverage/up.yaml b/hasura/migrations/1596046750711_alter_table_public_cccontracts_add_column_coverage/up.yaml deleted file mode 100644 index ae0caa716..000000000 --- a/hasura/migrations/1596046750711_alter_table_public_cccontracts_add_column_coverage/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "coverage" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1596046794495_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1596046794495_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index c1a342491..000000000 --- a/hasura/migrations/1596046794495_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,53 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_insert_permission -- args: - permission: - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actualreturn - - agreementnumber - - cc_cardholder - - cc_expiry - - cc_num - - contract_date - - courtesycarid - - created_at - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - id - - jobid - - kmend - - kmstart - - scheduledreturn - - start - - status - - updated_at - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1596046794495_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1596046794495_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 1f31599a2..000000000 --- a/hasura/migrations/1596046794495_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,64 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_insert_permission -- args: - permission: - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - agreementnumber - - courtesycarid - - jobid - - status - - start - - scheduledreturn - - actualreturn - - kmstart - - kmend - - driver_dlnumber - - driver_dlexpiry - - driver_dlst - - driver_fn - - driver_ln - - driver_addr1 - - driver_addr2 - - driver_city - - driver_state - - driver_zip - - driver_ph1 - - driver_dob - - cc_num - - cc_expiry - - cc_cardholder - - contract_date - - dailyrate - - actax - - dailyfreekm - - refuelcharge - - excesskmrate - - cleanupcharge - - damangewaiver - - federaltax - - statetax - - localtax - - coverage - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1596046801517_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1596046801517_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 7c8f665fe..000000000 --- a/hasura/migrations/1596046801517_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,54 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actualreturn - - agreementnumber - - cc_cardholder - - cc_expiry - - cc_num - - contract_date - - courtesycarid - - created_at - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - id - - jobid - - kmend - - kmstart - - scheduledreturn - - start - - status - - updated_at - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596046801517_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1596046801517_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 57c62258d..000000000 --- a/hasura/migrations/1596046801517_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,65 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - contract_date - - driver_dlexpiry - - driver_dob - - agreementnumber - - dailyfreekm - - actax - - cleanupcharge - - coverage - - dailyrate - - damangewaiver - - excesskmrate - - federaltax - - kmend - - kmstart - - localtax - - refuelcharge - - statetax - - cc_cardholder - - cc_expiry - - cc_num - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlnumber - - driver_dlst - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - status - - actualreturn - - created_at - - scheduledreturn - - start - - updated_at - - courtesycarid - - id - - jobid - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596046808521_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1596046808521_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 940a40c86..000000000 --- a/hasura/migrations/1596046808521_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,53 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actualreturn - - agreementnumber - - cc_cardholder - - cc_expiry - - cc_num - - contract_date - - courtesycarid - - created_at - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - id - - jobid - - kmend - - kmstart - - scheduledreturn - - start - - status - - updated_at - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596046808521_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1596046808521_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 9af4cf599..000000000 --- a/hasura/migrations/1596046808521_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,64 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_update_permission -- args: - permission: - columns: - - contract_date - - driver_dlexpiry - - driver_dob - - agreementnumber - - dailyfreekm - - actax - - cleanupcharge - - coverage - - dailyrate - - damangewaiver - - excesskmrate - - federaltax - - kmend - - kmstart - - localtax - - refuelcharge - - statetax - - cc_cardholder - - cc_expiry - - cc_num - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlnumber - - driver_dlst - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - status - - actualreturn - - created_at - - scheduledreturn - - start - - updated_at - - courtesycarid - - id - - jobid - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596047154427_alter_table_public_cccontracts_alter_column_damangewaiver/down.yaml b/hasura/migrations/1596047154427_alter_table_public_cccontracts_alter_column_damangewaiver/down.yaml deleted file mode 100644 index 060b8dd59..000000000 --- a/hasura/migrations/1596047154427_alter_table_public_cccontracts_alter_column_damangewaiver/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."cccontracts" rename column "damagewaiver" to "damangewaiver"; - type: run_sql diff --git a/hasura/migrations/1596047154427_alter_table_public_cccontracts_alter_column_damangewaiver/up.yaml b/hasura/migrations/1596047154427_alter_table_public_cccontracts_alter_column_damangewaiver/up.yaml deleted file mode 100644 index e9eb4f677..000000000 --- a/hasura/migrations/1596047154427_alter_table_public_cccontracts_alter_column_damangewaiver/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."cccontracts" rename column "damangewaiver" to "damagewaiver"; - type: run_sql diff --git a/hasura/migrations/1596048774767_alter_table_public_joblines_add_column_notes/down.yaml b/hasura/migrations/1596048774767_alter_table_public_joblines_add_column_notes/down.yaml deleted file mode 100644 index 765a7e089..000000000 --- a/hasura/migrations/1596048774767_alter_table_public_joblines_add_column_notes/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" DROP COLUMN "notes"; - type: run_sql diff --git a/hasura/migrations/1596048774767_alter_table_public_joblines_add_column_notes/up.yaml b/hasura/migrations/1596048774767_alter_table_public_joblines_add_column_notes/up.yaml deleted file mode 100644 index 58f644049..000000000 --- a/hasura/migrations/1596048774767_alter_table_public_joblines_add_column_notes/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" ADD COLUMN "notes" text NULL; - type: run_sql diff --git a/hasura/migrations/1596048785701_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1596048785701_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 2db656081..000000000 --- a/hasura/migrations/1596048785701_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1596048785701_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1596048785701_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index b13a06795..000000000 --- a/hasura/migrations/1596048785701_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1596048860276_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1596048860276_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index ce9b320bc..000000000 --- a/hasura/migrations/1596048860276_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596048860276_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1596048860276_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 30be7464c..000000000 --- a/hasura/migrations/1596048860276_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596048875858_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1596048875858_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index c32212f9d..000000000 --- a/hasura/migrations/1596048875858_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596048875858_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1596048875858_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index bf210013d..000000000 --- a/hasura/migrations/1596048875858_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596147831219_alter_table_public_bodyshops_add_column_speedprint/down.yaml b/hasura/migrations/1596147831219_alter_table_public_bodyshops_add_column_speedprint/down.yaml deleted file mode 100644 index 870334012..000000000 --- a/hasura/migrations/1596147831219_alter_table_public_bodyshops_add_column_speedprint/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "speedprint"; - type: run_sql diff --git a/hasura/migrations/1596147831219_alter_table_public_bodyshops_add_column_speedprint/up.yaml b/hasura/migrations/1596147831219_alter_table_public_bodyshops_add_column_speedprint/up.yaml deleted file mode 100644 index 5c6acea5e..000000000 --- a/hasura/migrations/1596147831219_alter_table_public_bodyshops_add_column_speedprint/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "speedprint" jsonb NULL DEFAULT - jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1596147842820_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1596147842820_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index b0494d6ee..000000000 --- a/hasura/migrations/1596147842820_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,57 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596147842820_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1596147842820_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index f95349392..000000000 --- a/hasura/migrations/1596147842820_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,58 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596147854907_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1596147854907_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 5702e6737..000000000 --- a/hasura/migrations/1596147854907_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,51 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596147854907_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1596147854907_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 04f255254..000000000 --- a/hasura/migrations/1596147854907_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,52 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596214147082_alter_table_public_bodyshops_add_column_md_parts_locations/down.yaml b/hasura/migrations/1596214147082_alter_table_public_bodyshops_add_column_md_parts_locations/down.yaml deleted file mode 100644 index 68180386e..000000000 --- a/hasura/migrations/1596214147082_alter_table_public_bodyshops_add_column_md_parts_locations/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_parts_locations"; - type: run_sql diff --git a/hasura/migrations/1596214147082_alter_table_public_bodyshops_add_column_md_parts_locations/up.yaml b/hasura/migrations/1596214147082_alter_table_public_bodyshops_add_column_md_parts_locations/up.yaml deleted file mode 100644 index 4ccb73a04..000000000 --- a/hasura/migrations/1596214147082_alter_table_public_bodyshops_add_column_md_parts_locations/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_parts_locations" jsonb NULL - DEFAULT jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1596214157786_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1596214157786_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index f95349392..000000000 --- a/hasura/migrations/1596214157786_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,58 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596214157786_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1596214157786_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 06a490337..000000000 --- a/hasura/migrations/1596214157786_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,59 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_parts_locations - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596214165919_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1596214165919_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 04f255254..000000000 --- a/hasura/migrations/1596214165919_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,52 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596214165919_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1596214165919_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index e458aac22..000000000 --- a/hasura/migrations/1596214165919_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,53 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_parts_locations - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596214559217_alter_table_public_joblines_add_column_location/down.yaml b/hasura/migrations/1596214559217_alter_table_public_joblines_add_column_location/down.yaml deleted file mode 100644 index d32e051a0..000000000 --- a/hasura/migrations/1596214559217_alter_table_public_joblines_add_column_location/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" DROP COLUMN "location"; - type: run_sql diff --git a/hasura/migrations/1596214559217_alter_table_public_joblines_add_column_location/up.yaml b/hasura/migrations/1596214559217_alter_table_public_joblines_add_column_location/up.yaml deleted file mode 100644 index b0d5aa00e..000000000 --- a/hasura/migrations/1596214559217_alter_table_public_joblines_add_column_location/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" ADD COLUMN "location" text NULL; - type: run_sql diff --git a/hasura/migrations/1596214571725_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1596214571725_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index b13a06795..000000000 --- a/hasura/migrations/1596214571725_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1596214571725_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1596214571725_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index a73177edf..000000000 --- a/hasura/migrations/1596214571725_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1596214578452_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1596214578452_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 30be7464c..000000000 --- a/hasura/migrations/1596214578452_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596214578452_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1596214578452_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 1ff01e737..000000000 --- a/hasura/migrations/1596214578452_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,78 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596214586798_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1596214586798_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index bf210013d..000000000 --- a/hasura/migrations/1596214586798_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596214586798_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1596214586798_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 0544129c9..000000000 --- a/hasura/migrations/1596214586798_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596225983120_alter_table_public_jobs_add_column_employee_prep/down.yaml b/hasura/migrations/1596225983120_alter_table_public_jobs_add_column_employee_prep/down.yaml deleted file mode 100644 index 00b35af8c..000000000 --- a/hasura/migrations/1596225983120_alter_table_public_jobs_add_column_employee_prep/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "employee_prep"; - type: run_sql diff --git a/hasura/migrations/1596225983120_alter_table_public_jobs_add_column_employee_prep/up.yaml b/hasura/migrations/1596225983120_alter_table_public_jobs_add_column_employee_prep/up.yaml deleted file mode 100644 index 1971d34f6..000000000 --- a/hasura/migrations/1596225983120_alter_table_public_jobs_add_column_employee_prep/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "employee_prep" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1596226073397_set_fk_public_jobs_employee_prep/down.yaml b/hasura/migrations/1596226073397_set_fk_public_jobs_employee_prep/down.yaml deleted file mode 100644 index d6b5a3710..000000000 --- a/hasura/migrations/1596226073397_set_fk_public_jobs_employee_prep/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."jobs" drop constraint "jobs_employee_prep_fkey"; - type: run_sql diff --git a/hasura/migrations/1596226073397_set_fk_public_jobs_employee_prep/up.yaml b/hasura/migrations/1596226073397_set_fk_public_jobs_employee_prep/up.yaml deleted file mode 100644 index f485e6fda..000000000 --- a/hasura/migrations/1596226073397_set_fk_public_jobs_employee_prep/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."jobs" - add constraint "jobs_employee_prep_fkey" - foreign key ("employee_prep") - references "public"."employees" - ("id") on update set null on delete set null; - type: run_sql diff --git a/hasura/migrations/1596226116444_add_relationship_employee_table_public_undefined/down.yaml b/hasura/migrations/1596226116444_add_relationship_employee_table_public_undefined/down.yaml deleted file mode 100644 index 22b33f78d..000000000 --- a/hasura/migrations/1596226116444_add_relationship_employee_table_public_undefined/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: employee - table: - name: jobs - schema: public - type: drop_relationship diff --git a/hasura/migrations/1596226116444_add_relationship_employee_table_public_undefined/up.yaml b/hasura/migrations/1596226116444_add_relationship_employee_table_public_undefined/up.yaml deleted file mode 100644 index 36322aafc..000000000 --- a/hasura/migrations/1596226116444_add_relationship_employee_table_public_undefined/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - name: employee - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: employee_prep - type: create_object_relationship diff --git a/hasura/migrations/1596226119743_add_relationship_jobsByEmployeePrep_table_public_undefined/down.yaml b/hasura/migrations/1596226119743_add_relationship_jobsByEmployeePrep_table_public_undefined/down.yaml deleted file mode 100644 index a39fa7c33..000000000 --- a/hasura/migrations/1596226119743_add_relationship_jobsByEmployeePrep_table_public_undefined/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: jobsByEmployeePrep - table: - name: employees - schema: public - type: drop_relationship diff --git a/hasura/migrations/1596226119743_add_relationship_jobsByEmployeePrep_table_public_undefined/up.yaml b/hasura/migrations/1596226119743_add_relationship_jobsByEmployeePrep_table_public_undefined/up.yaml deleted file mode 100644 index 8a6fe1b21..000000000 --- a/hasura/migrations/1596226119743_add_relationship_jobsByEmployeePrep_table_public_undefined/up.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - name: jobsByEmployeePrep - table: - name: employees - schema: public - using: - foreign_key_constraint_on: - column: employee_prep - table: - name: jobs - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1596226134655_rename_relationship_employee_to_employee_prep_rel_schema_public_table_jobs/down.yaml b/hasura/migrations/1596226134655_rename_relationship_employee_to_employee_prep_rel_schema_public_table_jobs/down.yaml deleted file mode 100644 index 0ef4046b7..000000000 --- a/hasura/migrations/1596226134655_rename_relationship_employee_to_employee_prep_rel_schema_public_table_jobs/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: employee_prep_rel - new_name: employee - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1596226134655_rename_relationship_employee_to_employee_prep_rel_schema_public_table_jobs/up.yaml b/hasura/migrations/1596226134655_rename_relationship_employee_to_employee_prep_rel_schema_public_table_jobs/up.yaml deleted file mode 100644 index 188732d05..000000000 --- a/hasura/migrations/1596226134655_rename_relationship_employee_to_employee_prep_rel_schema_public_table_jobs/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: employee - new_name: employee_prep_rel - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1596226147493_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1596226147493_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 0178be5a6..000000000 --- a/hasura/migrations/1596226147493_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1596226147493_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1596226147493_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index d95c715b5..000000000 --- a/hasura/migrations/1596226147493_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1596226171391_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1596226171391_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index e157ffd56..000000000 --- a/hasura/migrations/1596226171391_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596226171391_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1596226171391_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index fc0bcd2fc..000000000 --- a/hasura/migrations/1596226171391_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,259 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596226179648_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1596226179648_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4e85e20cd..000000000 --- a/hasura/migrations/1596226179648_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596226179648_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1596226179648_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 8cf8a1bfb..000000000 --- a/hasura/migrations/1596226179648_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596466443672_alter_table_public_parts_order_lines_add_column_backordered_on/down.yaml b/hasura/migrations/1596466443672_alter_table_public_parts_order_lines_add_column_backordered_on/down.yaml deleted file mode 100644 index 7e01e0670..000000000 --- a/hasura/migrations/1596466443672_alter_table_public_parts_order_lines_add_column_backordered_on/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_order_lines" DROP COLUMN "backordered_on"; - type: run_sql diff --git a/hasura/migrations/1596466443672_alter_table_public_parts_order_lines_add_column_backordered_on/up.yaml b/hasura/migrations/1596466443672_alter_table_public_parts_order_lines_add_column_backordered_on/up.yaml deleted file mode 100644 index f3226988e..000000000 --- a/hasura/migrations/1596466443672_alter_table_public_parts_order_lines_add_column_backordered_on/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_order_lines" ADD COLUMN "backordered_on" date - NULL; - type: run_sql diff --git a/hasura/migrations/1596466458082_alter_table_public_parts_order_lines_add_column_backordered_eta/down.yaml b/hasura/migrations/1596466458082_alter_table_public_parts_order_lines_add_column_backordered_eta/down.yaml deleted file mode 100644 index 6aaaae41a..000000000 --- a/hasura/migrations/1596466458082_alter_table_public_parts_order_lines_add_column_backordered_eta/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_order_lines" DROP COLUMN "backordered_eta"; - type: run_sql diff --git a/hasura/migrations/1596466458082_alter_table_public_parts_order_lines_add_column_backordered_eta/up.yaml b/hasura/migrations/1596466458082_alter_table_public_parts_order_lines_add_column_backordered_eta/up.yaml deleted file mode 100644 index 984d4cd3e..000000000 --- a/hasura/migrations/1596466458082_alter_table_public_parts_order_lines_add_column_backordered_eta/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_order_lines" ADD COLUMN "backordered_eta" date - NULL; - type: run_sql diff --git a/hasura/migrations/1596466475798_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1596466475798_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index dbac86335..000000000 --- a/hasura/migrations/1596466475798_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_insert_permission -- args: - permission: - check: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1596466475798_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1596466475798_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index f30db5ad8..000000000 --- a/hasura/migrations/1596466475798_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_insert_permission -- args: - permission: - check: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1596466485574_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1596466485574_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index e057ea23a..000000000 --- a/hasura/migrations/1596466485574_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - act_price - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - computed_fields: [] - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order_lines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596466485574_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1596466485574_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 609697074..000000000 --- a/hasura/migrations/1596466485574_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - computed_fields: [] - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order_lines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596466492287_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1596466492287_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index 0e2acf52e..000000000 --- a/hasura/migrations/1596466492287_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596466492287_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1596466492287_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 09f99df03..000000000 --- a/hasura/migrations/1596466492287_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596487312718_drop_view_public_productionview/down.yaml b/hasura/migrations/1596487312718_drop_view_public_productionview/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1596487312718_drop_view_public_productionview/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1596487312718_drop_view_public_productionview/up.yaml b/hasura/migrations/1596487312718_drop_view_public_productionview/up.yaml deleted file mode 100644 index 6e88a06bd..000000000 --- a/hasura/migrations/1596487312718_drop_view_public_productionview/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP VIEW "public"."productionview"; - type: run_sql diff --git a/hasura/migrations/1596561493315_alter_table_public_bodyshops_add_column_md_notes_presets/down.yaml b/hasura/migrations/1596561493315_alter_table_public_bodyshops_add_column_md_notes_presets/down.yaml deleted file mode 100644 index 6df4170c7..000000000 --- a/hasura/migrations/1596561493315_alter_table_public_bodyshops_add_column_md_notes_presets/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_notes_presets"; - type: run_sql diff --git a/hasura/migrations/1596561493315_alter_table_public_bodyshops_add_column_md_notes_presets/up.yaml b/hasura/migrations/1596561493315_alter_table_public_bodyshops_add_column_md_notes_presets/up.yaml deleted file mode 100644 index da28d8713..000000000 --- a/hasura/migrations/1596561493315_alter_table_public_bodyshops_add_column_md_notes_presets/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_notes_presets" jsonb NULL - DEFAULT jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1596561513554_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1596561513554_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 06a490337..000000000 --- a/hasura/migrations/1596561513554_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,59 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_parts_locations - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596561513554_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1596561513554_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 00761bb0f..000000000 --- a/hasura/migrations/1596561513554_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,60 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1596561522463_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1596561522463_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index e458aac22..000000000 --- a/hasura/migrations/1596561522463_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,53 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_order_statuses - - md_parts_locations - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596561522463_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1596561522463_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 172d0cfce..000000000 --- a/hasura/migrations/1596561522463_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,54 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1596645614646_alter_table_public_vendors_alter_column_favorite/down.yaml b/hasura/migrations/1596645614646_alter_table_public_vendors_alter_column_favorite/down.yaml deleted file mode 100644 index 052d77739..000000000 --- a/hasura/migrations/1596645614646_alter_table_public_vendors_alter_column_favorite/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."vendors" ALTER COLUMN "favorite" DROP DEFAULT; - type: run_sql diff --git a/hasura/migrations/1596645614646_alter_table_public_vendors_alter_column_favorite/up.yaml b/hasura/migrations/1596645614646_alter_table_public_vendors_alter_column_favorite/up.yaml deleted file mode 100644 index bf9a9b888..000000000 --- a/hasura/migrations/1596645614646_alter_table_public_vendors_alter_column_favorite/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."vendors" ALTER COLUMN "favorite" SET DEFAULT jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1596730747611_run_sql_migration/down.yaml b/hasura/migrations/1596730747611_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1596730747611_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1596730747611_run_sql_migration/up.yaml b/hasura/migrations/1596730747611_run_sql_migration/up.yaml deleted file mode 100644 index 53a7fdfa3..000000000 --- a/hasura/migrations/1596730747611_run_sql_migration/up.yaml +++ /dev/null @@ -1,14 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.parts_status_by_job_id(jobid uuid)\n RETURNS - SETOF joblines\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if jobid - = '' then\n return query select status ,count(1), part_type from joblines - j group by status, part_type ;\n else \n return query select status ,count(1), - part_type from joblines j where j.jobid =jobid group by status, part_type;\n - \ end if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: parts_status_by_job_id - schema: public - type: track_function diff --git a/hasura/migrations/1596731037543_drop_function_public_parts_status_by_job_id/down.yaml b/hasura/migrations/1596731037543_drop_function_public_parts_status_by_job_id/down.yaml deleted file mode 100644 index 51ec77c06..000000000 --- a/hasura/migrations/1596731037543_drop_function_public_parts_status_by_job_id/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.parts_status_by_job_id(jobid uuid)\n RETURNS - SETOF joblines\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if jobid - = '' then\n return query select status ,count(1), part_type from joblines - j group by status, part_type ;\n else \n return query select status ,count(1), - part_type from joblines j where j.jobid =jobid group by status, part_type;\n - \ end if;\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1596731037543_drop_function_public_parts_status_by_job_id/up.yaml b/hasura/migrations/1596731037543_drop_function_public_parts_status_by_job_id/up.yaml deleted file mode 100644 index cbae152a7..000000000 --- a/hasura/migrations/1596731037543_drop_function_public_parts_status_by_job_id/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP FUNCTION "public"."parts_status_by_job_id"("pg_catalog"."uuid"); - type: run_sql diff --git a/hasura/migrations/1596731045755_run_sql_migration/down.yaml b/hasura/migrations/1596731045755_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1596731045755_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1596731045755_run_sql_migration/up.yaml b/hasura/migrations/1596731045755_run_sql_migration/up.yaml deleted file mode 100644 index a586e30dd..000000000 --- a/hasura/migrations/1596731045755_run_sql_migration/up.yaml +++ /dev/null @@ -1,14 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.parts_status_by_job_id(jobid text)\n RETURNS - SETOF joblines\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if jobid - = '' then\n return query select status ,count(1), part_type from joblines - j group by status, part_type ;\n else \n return query select status ,count(1), - part_type from joblines j where j.jobid =jobid group by status, part_type;\n - \ end if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: parts_status_by_job_id - schema: public - type: track_function diff --git a/hasura/migrations/1596731075703_drop_function_public_parts_status_by_job_id/down.yaml b/hasura/migrations/1596731075703_drop_function_public_parts_status_by_job_id/down.yaml deleted file mode 100644 index 6f0c45314..000000000 --- a/hasura/migrations/1596731075703_drop_function_public_parts_status_by_job_id/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.parts_status_by_job_id(jobid text)\n RETURNS - SETOF joblines\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if jobid - = '' then\n return query select status ,count(1), part_type from joblines - j group by status, part_type ;\n else \n return query select status ,count(1), - part_type from joblines j where j.jobid =jobid group by status, part_type;\n - \ end if;\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1596731075703_drop_function_public_parts_status_by_job_id/up.yaml b/hasura/migrations/1596731075703_drop_function_public_parts_status_by_job_id/up.yaml deleted file mode 100644 index 98fff7d24..000000000 --- a/hasura/migrations/1596731075703_drop_function_public_parts_status_by_job_id/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP FUNCTION "public"."parts_status_by_job_id"("pg_catalog"."text"); - type: run_sql diff --git a/hasura/migrations/1596731097672_run_sql_migration/down.yaml b/hasura/migrations/1596731097672_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1596731097672_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1596731097672_run_sql_migration/up.yaml b/hasura/migrations/1596731097672_run_sql_migration/up.yaml deleted file mode 100644 index 0a659dbd5..000000000 --- a/hasura/migrations/1596731097672_run_sql_migration/up.yaml +++ /dev/null @@ -1,14 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.parts_status_by_job_id(jobIdVar text)\n - RETURNS SETOF joblines\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n - \ if jobIdVar = '' then\n return query select status ,count(1), part_type - from joblines j group by status, part_type ;\n else \n return query select - status ,count(1), part_type from joblines j where j.jobid =jobIdVar group by - status, part_type;\n end if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: parts_status_by_job_id - schema: public - type: track_function diff --git a/hasura/migrations/1596731183831_drop_function_public_parts_status_by_job_id/down.yaml b/hasura/migrations/1596731183831_drop_function_public_parts_status_by_job_id/down.yaml deleted file mode 100644 index 64b09ac53..000000000 --- a/hasura/migrations/1596731183831_drop_function_public_parts_status_by_job_id/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.parts_status_by_job_id(jobidvar text)\n - RETURNS SETOF joblines\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n - \ if jobIdVar = '' then\n return query select status ,count(1), part_type - from joblines j group by status, part_type ;\n else \n return query select - status ,count(1), part_type from joblines j where j.jobid =jobIdVar group by - status, part_type;\n end if;\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1596731183831_drop_function_public_parts_status_by_job_id/up.yaml b/hasura/migrations/1596731183831_drop_function_public_parts_status_by_job_id/up.yaml deleted file mode 100644 index 98fff7d24..000000000 --- a/hasura/migrations/1596731183831_drop_function_public_parts_status_by_job_id/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP FUNCTION "public"."parts_status_by_job_id"("pg_catalog"."text"); - type: run_sql diff --git a/hasura/migrations/1596731190786_run_sql_migration/down.yaml b/hasura/migrations/1596731190786_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1596731190786_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1596731190786_run_sql_migration/up.yaml b/hasura/migrations/1596731190786_run_sql_migration/up.yaml deleted file mode 100644 index 5a4f1b9e4..000000000 --- a/hasura/migrations/1596731190786_run_sql_migration/up.yaml +++ /dev/null @@ -1,14 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.parts_status_by_job_id(jobIdVar uuid)\n - RETURNS SETOF joblines\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n - \ if jobIdVar = '' then\n return query select status ,count(1), part_type - from joblines j group by status, part_type ;\n else \n return query select - status ,count(1), part_type from joblines j where j.jobid =jobIdVar group by - status, part_type;\n end if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: parts_status_by_job_id - schema: public - type: track_function diff --git a/hasura/migrations/1596731313289_run_sql_migration/down.yaml b/hasura/migrations/1596731313289_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1596731313289_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1596731313289_run_sql_migration/up.yaml b/hasura/migrations/1596731313289_run_sql_migration/up.yaml deleted file mode 100644 index 56c08fdc4..000000000 --- a/hasura/migrations/1596731313289_run_sql_migration/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.parts_status_by_job_id(jobidvar uuid)\n - RETURNS SETOF joblines\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n - \ \n return query select status ,count(1), part_type from joblines j where - j.jobid =jobIdVar group by status, part_type;\n\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1596731327292_run_sql_migration/down.yaml b/hasura/migrations/1596731327292_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1596731327292_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1596731327292_run_sql_migration/up.yaml b/hasura/migrations/1596731327292_run_sql_migration/up.yaml deleted file mode 100644 index fb2831454..000000000 --- a/hasura/migrations/1596731327292_run_sql_migration/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.parts_status_by_job_id(jobidvar uuid)\n - RETURNS SETOF joblines\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n - \ \n return query select status ,count(1), part_type from joblines j where - j.jobid =jobidvar group by status, part_type;\n\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1596731474176_drop_function_public_parts_status_by_job_id/down.yaml b/hasura/migrations/1596731474176_drop_function_public_parts_status_by_job_id/down.yaml deleted file mode 100644 index 3676c9dbf..000000000 --- a/hasura/migrations/1596731474176_drop_function_public_parts_status_by_job_id/down.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.parts_status_by_job_id(jobidvar uuid)\n - RETURNS SETOF joblines\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n - \ \n return query select status ,count(1), part_type from joblines j where - j.jobid =jobidvar group by status, part_type;\n\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1596731474176_drop_function_public_parts_status_by_job_id/up.yaml b/hasura/migrations/1596731474176_drop_function_public_parts_status_by_job_id/up.yaml deleted file mode 100644 index cbae152a7..000000000 --- a/hasura/migrations/1596731474176_drop_function_public_parts_status_by_job_id/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP FUNCTION "public"."parts_status_by_job_id"("pg_catalog"."uuid"); - type: run_sql diff --git a/hasura/migrations/1596731602565_run_sql_migration/down.yaml b/hasura/migrations/1596731602565_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1596731602565_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1596731602565_run_sql_migration/up.yaml b/hasura/migrations/1596731602565_run_sql_migration/up.yaml deleted file mode 100644 index f2b2470d6..000000000 --- a/hasura/migrations/1596731602565_run_sql_migration/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: true - read_only: false - sql: create view joblines_stats as select jobid, status ,count(1), part_type - from joblines j group by jobid, status, part_type ; - type: run_sql -- args: - name: joblines_stats - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1596731617912_rename_view_public_joblines_stats/down.yaml b/hasura/migrations/1596731617912_rename_view_public_joblines_stats/down.yaml deleted file mode 100644 index eb7771d97..000000000 --- a/hasura/migrations/1596731617912_rename_view_public_joblines_stats/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter view "public"."joblines_status" rename to "joblines_stats"; - type: run_sql diff --git a/hasura/migrations/1596731617912_rename_view_public_joblines_stats/up.yaml b/hasura/migrations/1596731617912_rename_view_public_joblines_stats/up.yaml deleted file mode 100644 index 9afff91c8..000000000 --- a/hasura/migrations/1596731617912_rename_view_public_joblines_stats/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter view "public"."joblines_stats" rename to "joblines_status"; - type: run_sql diff --git a/hasura/migrations/1596731720387_create_relationship_job_public_table_joblines_status/down.yaml b/hasura/migrations/1596731720387_create_relationship_job_public_table_joblines_status/down.yaml deleted file mode 100644 index 992563b81..000000000 --- a/hasura/migrations/1596731720387_create_relationship_job_public_table_joblines_status/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: job - table: - name: joblines_status - schema: public - type: drop_relationship diff --git a/hasura/migrations/1596731720387_create_relationship_job_public_table_joblines_status/up.yaml b/hasura/migrations/1596731720387_create_relationship_job_public_table_joblines_status/up.yaml deleted file mode 100644 index 800097652..000000000 --- a/hasura/migrations/1596731720387_create_relationship_job_public_table_joblines_status/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - name: job - table: - name: joblines_status - schema: public - using: - manual_configuration: - column_mapping: - jobid: id - remote_table: - name: jobs - schema: public - type: create_object_relationship diff --git a/hasura/migrations/1596731789600_create_relationship_joblines_status_public_table_jobs/down.yaml b/hasura/migrations/1596731789600_create_relationship_joblines_status_public_table_jobs/down.yaml deleted file mode 100644 index 8a1659e18..000000000 --- a/hasura/migrations/1596731789600_create_relationship_joblines_status_public_table_jobs/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - relationship: joblines_status - table: - name: jobs - schema: public - type: drop_relationship diff --git a/hasura/migrations/1596731789600_create_relationship_joblines_status_public_table_jobs/up.yaml b/hasura/migrations/1596731789600_create_relationship_joblines_status_public_table_jobs/up.yaml deleted file mode 100644 index fa8844fa1..000000000 --- a/hasura/migrations/1596731789600_create_relationship_joblines_status_public_table_jobs/up.yaml +++ /dev/null @@ -1,13 +0,0 @@ -- args: - name: joblines_status - table: - name: jobs - schema: public - using: - manual_configuration: - column_mapping: - id: jobid - remote_table: - name: joblines_status - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1596731930213_update_permission_user_public_table_joblines_status/down.yaml b/hasura/migrations/1596731930213_update_permission_user_public_table_joblines_status/down.yaml deleted file mode 100644 index 5e0cc7891..000000000 --- a/hasura/migrations/1596731930213_update_permission_user_public_table_joblines_status/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: joblines_status - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1596731930213_update_permission_user_public_table_joblines_status/up.yaml b/hasura/migrations/1596731930213_update_permission_user_public_table_joblines_status/up.yaml deleted file mode 100644 index a1969f745..000000000 --- a/hasura/migrations/1596731930213_update_permission_user_public_table_joblines_status/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - permission: - allow_aggregations: false - backend_only: false - columns: - - jobid - - status - - count - - part_type - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: joblines_status - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597086476520_alter_table_public_associations_add_column_authlevel/down.yaml b/hasura/migrations/1597086476520_alter_table_public_associations_add_column_authlevel/down.yaml deleted file mode 100644 index 8f5f5718e..000000000 --- a/hasura/migrations/1597086476520_alter_table_public_associations_add_column_authlevel/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."associations" DROP COLUMN "authlevel"; - type: run_sql diff --git a/hasura/migrations/1597086476520_alter_table_public_associations_add_column_authlevel/up.yaml b/hasura/migrations/1597086476520_alter_table_public_associations_add_column_authlevel/up.yaml deleted file mode 100644 index 84d149f7e..000000000 --- a/hasura/migrations/1597086476520_alter_table_public_associations_add_column_authlevel/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."associations" ADD COLUMN "authlevel" integer NOT NULL - DEFAULT 0; - type: run_sql diff --git a/hasura/migrations/1597086494884_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1597086494884_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index c17e5bb8a..000000000 --- a/hasura/migrations/1597086494884_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - id - - shopid - - useremail - - active - computed_fields: [] - filter: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597086494884_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1597086494884_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index 015c4e179..000000000 --- a/hasura/migrations/1597086494884_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - authlevel - - id - - shopid - - useremail - computed_fields: [] - filter: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597101073656_alter_table_public_bodyshops_add_column_md_rbac/down.yaml b/hasura/migrations/1597101073656_alter_table_public_bodyshops_add_column_md_rbac/down.yaml deleted file mode 100644 index b8211a7cb..000000000 --- a/hasura/migrations/1597101073656_alter_table_public_bodyshops_add_column_md_rbac/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_rbac"; - type: run_sql diff --git a/hasura/migrations/1597101073656_alter_table_public_bodyshops_add_column_md_rbac/up.yaml b/hasura/migrations/1597101073656_alter_table_public_bodyshops_add_column_md_rbac/up.yaml deleted file mode 100644 index d5331b8e5..000000000 --- a/hasura/migrations/1597101073656_alter_table_public_bodyshops_add_column_md_rbac/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_rbac" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1597101084487_alter_table_public_bodyshops_alter_column_md_notes_presets/down.yaml b/hasura/migrations/1597101084487_alter_table_public_bodyshops_alter_column_md_notes_presets/down.yaml deleted file mode 100644 index b3f79f8ab..000000000 --- a/hasura/migrations/1597101084487_alter_table_public_bodyshops_alter_column_md_notes_presets/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ALTER COLUMN "md_notes_presets" DROP NOT - NULL; - type: run_sql diff --git a/hasura/migrations/1597101084487_alter_table_public_bodyshops_alter_column_md_notes_presets/up.yaml b/hasura/migrations/1597101084487_alter_table_public_bodyshops_alter_column_md_notes_presets/up.yaml deleted file mode 100644 index b178e1e87..000000000 --- a/hasura/migrations/1597101084487_alter_table_public_bodyshops_alter_column_md_notes_presets/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ALTER COLUMN "md_notes_presets" SET NOT - NULL; - type: run_sql diff --git a/hasura/migrations/1597101096084_alter_table_public_bodyshops_alter_column_md_messaging_presets/down.yaml b/hasura/migrations/1597101096084_alter_table_public_bodyshops_alter_column_md_messaging_presets/down.yaml deleted file mode 100644 index adbb75c64..000000000 --- a/hasura/migrations/1597101096084_alter_table_public_bodyshops_alter_column_md_messaging_presets/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ALTER COLUMN "md_messaging_presets" DROP - NOT NULL; - type: run_sql diff --git a/hasura/migrations/1597101096084_alter_table_public_bodyshops_alter_column_md_messaging_presets/up.yaml b/hasura/migrations/1597101096084_alter_table_public_bodyshops_alter_column_md_messaging_presets/up.yaml deleted file mode 100644 index f734acf1d..000000000 --- a/hasura/migrations/1597101096084_alter_table_public_bodyshops_alter_column_md_messaging_presets/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ALTER COLUMN "md_messaging_presets" SET - NOT NULL; - type: run_sql diff --git a/hasura/migrations/1597101103779_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1597101103779_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 00761bb0f..000000000 --- a/hasura/migrations/1597101103779_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,60 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597101103779_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1597101103779_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 66dc3a4da..000000000 --- a/hasura/migrations/1597101103779_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,61 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597101110854_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1597101110854_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 172d0cfce..000000000 --- a/hasura/migrations/1597101110854_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,54 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597101110854_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1597101110854_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 2d3b1252f..000000000 --- a/hasura/migrations/1597101110854_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,55 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597428970612_alter_table_public_templates_add_column_jsontemplate/down.yaml b/hasura/migrations/1597428970612_alter_table_public_templates_add_column_jsontemplate/down.yaml deleted file mode 100644 index dfa8706ce..000000000 --- a/hasura/migrations/1597428970612_alter_table_public_templates_add_column_jsontemplate/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."templates" DROP COLUMN "jsontemplate"; - type: run_sql diff --git a/hasura/migrations/1597428970612_alter_table_public_templates_add_column_jsontemplate/up.yaml b/hasura/migrations/1597428970612_alter_table_public_templates_add_column_jsontemplate/up.yaml deleted file mode 100644 index 5ec8d4dd2..000000000 --- a/hasura/migrations/1597428970612_alter_table_public_templates_add_column_jsontemplate/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."templates" ADD COLUMN "jsontemplate" jsonb NULL DEFAULT - jsonb_build_object(); - type: run_sql diff --git a/hasura/migrations/1597428983824_update_permission_user_public_table_templates/down.yaml b/hasura/migrations/1597428983824_update_permission_user_public_table_templates/down.yaml deleted file mode 100644 index a70f1aae7..000000000 --- a/hasura/migrations/1597428983824_update_permission_user_public_table_templates/down.yaml +++ /dev/null @@ -1,31 +0,0 @@ -- args: - role: user - table: - name: templates - schema: public - type: drop_insert_permission -- args: - permission: - check: - _or: - - bodyshopid: - _is_null: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - html - - name - - query - set: {} - role: user - table: - name: templates - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1597428983824_update_permission_user_public_table_templates/up.yaml b/hasura/migrations/1597428983824_update_permission_user_public_table_templates/up.yaml deleted file mode 100644 index 029afd466..000000000 --- a/hasura/migrations/1597428983824_update_permission_user_public_table_templates/up.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- args: - role: user - table: - name: templates - schema: public - type: drop_insert_permission -- args: - permission: - check: - _or: - - bodyshopid: - _is_null: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - html - - jsontemplate - - name - - query - set: {} - role: user - table: - name: templates - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1597428991518_update_permission_user_public_table_templates/down.yaml b/hasura/migrations/1597428991518_update_permission_user_public_table_templates/down.yaml deleted file mode 100644 index 70a94c9a6..000000000 --- a/hasura/migrations/1597428991518_update_permission_user_public_table_templates/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: templates - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - html - - name - - query - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - _or: - - bodyshopid: - _is_null: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: templates - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597428991518_update_permission_user_public_table_templates/up.yaml b/hasura/migrations/1597428991518_update_permission_user_public_table_templates/up.yaml deleted file mode 100644 index c50c223b2..000000000 --- a/hasura/migrations/1597428991518_update_permission_user_public_table_templates/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: templates - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - created_at - - html - - id - - jsontemplate - - name - - query - - updated_at - computed_fields: [] - filter: - _or: - - bodyshopid: - _is_null: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: templates - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597428999933_update_permission_user_public_table_templates/down.yaml b/hasura/migrations/1597428999933_update_permission_user_public_table_templates/down.yaml deleted file mode 100644 index c97f49641..000000000 --- a/hasura/migrations/1597428999933_update_permission_user_public_table_templates/down.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: templates - schema: public - type: drop_update_permission -- args: - permission: - columns: - - html - - name - - query - - created_at - - updated_at - - bodyshopid - - id - filter: - _or: - - bodyshopid: - _is_null: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: templates - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597428999933_update_permission_user_public_table_templates/up.yaml b/hasura/migrations/1597428999933_update_permission_user_public_table_templates/up.yaml deleted file mode 100644 index 4b636cbd9..000000000 --- a/hasura/migrations/1597428999933_update_permission_user_public_table_templates/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: templates - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - created_at - - html - - id - - jsontemplate - - name - - query - - updated_at - filter: - _or: - - bodyshopid: - _is_null: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: templates - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597681392700_alter_table_public_bodyshops_add_column_prodtargethrs/down.yaml b/hasura/migrations/1597681392700_alter_table_public_bodyshops_add_column_prodtargethrs/down.yaml deleted file mode 100644 index d1002d052..000000000 --- a/hasura/migrations/1597681392700_alter_table_public_bodyshops_add_column_prodtargethrs/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "prodtargethrs"; - type: run_sql diff --git a/hasura/migrations/1597681392700_alter_table_public_bodyshops_add_column_prodtargethrs/up.yaml b/hasura/migrations/1597681392700_alter_table_public_bodyshops_add_column_prodtargethrs/up.yaml deleted file mode 100644 index 3bc131951..000000000 --- a/hasura/migrations/1597681392700_alter_table_public_bodyshops_add_column_prodtargethrs/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "prodtargethrs" numeric NOT NULL - DEFAULT 1; - type: run_sql diff --git a/hasura/migrations/1597681402689_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1597681402689_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 66dc3a4da..000000000 --- a/hasura/migrations/1597681402689_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,61 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597681402689_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1597681402689_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 715668e1d..000000000 --- a/hasura/migrations/1597681402689_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,62 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597681427500_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1597681427500_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 2d3b1252f..000000000 --- a/hasura/migrations/1597681427500_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,55 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597681427500_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1597681427500_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 42dbb2e30..000000000 --- a/hasura/migrations/1597681427500_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,56 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597686736155_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1597686736155_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index d95c715b5..000000000 --- a/hasura/migrations/1597686736155_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1597686736155_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1597686736155_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 8c91c13a8..000000000 --- a/hasura/migrations/1597686736155_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1597686746605_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1597686746605_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index fc0bcd2fc..000000000 --- a/hasura/migrations/1597686746605_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,259 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597686746605_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1597686746605_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 9b31ff1aa..000000000 --- a/hasura/migrations/1597686746605_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597686758732_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1597686758732_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 8cf8a1bfb..000000000 --- a/hasura/migrations/1597686758732_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - statusid - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597686758732_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1597686758732_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index f8c3ef292..000000000 --- a/hasura/migrations/1597686758732_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597686775898_alter_table_public_jobs_drop_column_statusid/down.yaml b/hasura/migrations/1597686775898_alter_table_public_jobs_drop_column_statusid/down.yaml deleted file mode 100644 index 1cff06224..000000000 --- a/hasura/migrations/1597686775898_alter_table_public_jobs_drop_column_statusid/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "statusid" uuid; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "statusid" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1597686775898_alter_table_public_jobs_drop_column_statusid/up.yaml b/hasura/migrations/1597686775898_alter_table_public_jobs_drop_column_statusid/up.yaml deleted file mode 100644 index 7344568f6..000000000 --- a/hasura/migrations/1597686775898_alter_table_public_jobs_drop_column_statusid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "statusid" CASCADE; - type: run_sql diff --git a/hasura/migrations/1597777830351_alter_table_public_jobs_add_column_tax_registration_number/down.yaml b/hasura/migrations/1597777830351_alter_table_public_jobs_add_column_tax_registration_number/down.yaml deleted file mode 100644 index 206e5c90e..000000000 --- a/hasura/migrations/1597777830351_alter_table_public_jobs_add_column_tax_registration_number/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "tax_registration_number"; - type: run_sql diff --git a/hasura/migrations/1597777830351_alter_table_public_jobs_add_column_tax_registration_number/up.yaml b/hasura/migrations/1597777830351_alter_table_public_jobs_add_column_tax_registration_number/up.yaml deleted file mode 100644 index 0b7ab3c17..000000000 --- a/hasura/migrations/1597777830351_alter_table_public_jobs_add_column_tax_registration_number/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "tax_registration_number" text NULL; - type: run_sql diff --git a/hasura/migrations/1597777848218_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1597777848218_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 8c91c13a8..000000000 --- a/hasura/migrations/1597777848218_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1597777848218_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1597777848218_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 9b8fc8048..000000000 --- a/hasura/migrations/1597777848218_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1597777863211_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1597777863211_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 9b31ff1aa..000000000 --- a/hasura/migrations/1597777863211_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597777863211_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1597777863211_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 24da5a9c0..000000000 --- a/hasura/migrations/1597777863211_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,259 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597777876008_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1597777876008_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index f8c3ef292..000000000 --- a/hasura/migrations/1597777876008_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,257 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597777876008_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1597777876008_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 757c2697c..000000000 --- a/hasura/migrations/1597777876008_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597779262877_alter_table_public_jobs_add_column_class/down.yaml b/hasura/migrations/1597779262877_alter_table_public_jobs_add_column_class/down.yaml deleted file mode 100644 index bb968e2b9..000000000 --- a/hasura/migrations/1597779262877_alter_table_public_jobs_add_column_class/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "class"; - type: run_sql diff --git a/hasura/migrations/1597779262877_alter_table_public_jobs_add_column_class/up.yaml b/hasura/migrations/1597779262877_alter_table_public_jobs_add_column_class/up.yaml deleted file mode 100644 index ee34154f1..000000000 --- a/hasura/migrations/1597779262877_alter_table_public_jobs_add_column_class/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "class" text NULL; - type: run_sql diff --git a/hasura/migrations/1597779499987_alter_table_public_jobs_add_column_category/down.yaml b/hasura/migrations/1597779499987_alter_table_public_jobs_add_column_category/down.yaml deleted file mode 100644 index c93ff384b..000000000 --- a/hasura/migrations/1597779499987_alter_table_public_jobs_add_column_category/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "category"; - type: run_sql diff --git a/hasura/migrations/1597779499987_alter_table_public_jobs_add_column_category/up.yaml b/hasura/migrations/1597779499987_alter_table_public_jobs_add_column_category/up.yaml deleted file mode 100644 index 62af969a2..000000000 --- a/hasura/migrations/1597779499987_alter_table_public_jobs_add_column_category/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "category" text NULL; - type: run_sql diff --git a/hasura/migrations/1597779720123_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1597779720123_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 9b8fc8048..000000000 --- a/hasura/migrations/1597779720123_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1597779720123_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1597779720123_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 9a4fd9c0e..000000000 --- a/hasura/migrations/1597779720123_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,260 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1597779769450_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1597779769450_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 24da5a9c0..000000000 --- a/hasura/migrations/1597779769450_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,259 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597779769450_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1597779769450_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 0100f9fe3..000000000 --- a/hasura/migrations/1597779769450_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597779780370_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1597779780370_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 757c2697c..000000000 --- a/hasura/migrations/1597779780370_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,258 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - cieca_stl - - cieca_ttl - - ciecaid - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597779780370_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1597779780370_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index d13ee33a1..000000000 --- a/hasura/migrations/1597779780370_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,260 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597854452477_alter_table_public_bodyshops_add_column_md_classes/down.yaml b/hasura/migrations/1597854452477_alter_table_public_bodyshops_add_column_md_classes/down.yaml deleted file mode 100644 index ab2c7f9e4..000000000 --- a/hasura/migrations/1597854452477_alter_table_public_bodyshops_add_column_md_classes/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_classes"; - type: run_sql diff --git a/hasura/migrations/1597854452477_alter_table_public_bodyshops_add_column_md_classes/up.yaml b/hasura/migrations/1597854452477_alter_table_public_bodyshops_add_column_md_classes/up.yaml deleted file mode 100644 index 9fce3f75f..000000000 --- a/hasura/migrations/1597854452477_alter_table_public_bodyshops_add_column_md_classes/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_classes" jsonb NULL DEFAULT - jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1597854464958_alter_table_public_bodyshops_add_column_md_categories/down.yaml b/hasura/migrations/1597854464958_alter_table_public_bodyshops_add_column_md_categories/down.yaml deleted file mode 100644 index 377bdd5c5..000000000 --- a/hasura/migrations/1597854464958_alter_table_public_bodyshops_add_column_md_categories/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_categories"; - type: run_sql diff --git a/hasura/migrations/1597854464958_alter_table_public_bodyshops_add_column_md_categories/up.yaml b/hasura/migrations/1597854464958_alter_table_public_bodyshops_add_column_md_categories/up.yaml deleted file mode 100644 index f00a0bca7..000000000 --- a/hasura/migrations/1597854464958_alter_table_public_bodyshops_add_column_md_categories/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_categories" jsonb NULL DEFAULT - jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1597854487005_alter_table_public_bodyshops_add_column_md_ins_cos/down.yaml b/hasura/migrations/1597854487005_alter_table_public_bodyshops_add_column_md_ins_cos/down.yaml deleted file mode 100644 index 529d79f74..000000000 --- a/hasura/migrations/1597854487005_alter_table_public_bodyshops_add_column_md_ins_cos/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_ins_cos"; - type: run_sql diff --git a/hasura/migrations/1597854487005_alter_table_public_bodyshops_add_column_md_ins_cos/up.yaml b/hasura/migrations/1597854487005_alter_table_public_bodyshops_add_column_md_ins_cos/up.yaml deleted file mode 100644 index 0b048abd1..000000000 --- a/hasura/migrations/1597854487005_alter_table_public_bodyshops_add_column_md_ins_cos/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_ins_cos" jsonb NULL DEFAULT - jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1597854499320_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1597854499320_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 715668e1d..000000000 --- a/hasura/migrations/1597854499320_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,62 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597854499320_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1597854499320_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index f4a8dafa8..000000000 --- a/hasura/migrations/1597854499320_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,65 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597854509708_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1597854509708_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 42dbb2e30..000000000 --- a/hasura/migrations/1597854509708_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,56 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597854509708_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1597854509708_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index cd9607890..000000000 --- a/hasura/migrations/1597854509708_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,59 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597856801481_alter_table_public_bodyshops_add_column_enforce_class/down.yaml b/hasura/migrations/1597856801481_alter_table_public_bodyshops_add_column_enforce_class/down.yaml deleted file mode 100644 index 7c71d8b6b..000000000 --- a/hasura/migrations/1597856801481_alter_table_public_bodyshops_add_column_enforce_class/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "enforce_class"; - type: run_sql diff --git a/hasura/migrations/1597856801481_alter_table_public_bodyshops_add_column_enforce_class/up.yaml b/hasura/migrations/1597856801481_alter_table_public_bodyshops_add_column_enforce_class/up.yaml deleted file mode 100644 index 8d0391a7d..000000000 --- a/hasura/migrations/1597856801481_alter_table_public_bodyshops_add_column_enforce_class/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "enforce_class" bool NOT NULL - DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1597856850558_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1597856850558_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index f4a8dafa8..000000000 --- a/hasura/migrations/1597856850558_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,65 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597856850558_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1597856850558_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index ed6ba8e94..000000000 --- a/hasura/migrations/1597856850558_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,66 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1597856859918_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1597856859918_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index cd9607890..000000000 --- a/hasura/migrations/1597856859918_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,59 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597856859918_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1597856859918_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 4614d8cf1..000000000 --- a/hasura/migrations/1597856859918_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,60 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597946820994_alter_table_public_available_jobs_add_unique_clm_no_bodyshopid/down.yaml b/hasura/migrations/1597946820994_alter_table_public_available_jobs_add_unique_clm_no_bodyshopid/down.yaml deleted file mode 100644 index e8fa788db..000000000 --- a/hasura/migrations/1597946820994_alter_table_public_available_jobs_add_unique_clm_no_bodyshopid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."available_jobs" drop constraint "available_jobs_clm_no_bodyshopid_key"; - type: run_sql diff --git a/hasura/migrations/1597946820994_alter_table_public_available_jobs_add_unique_clm_no_bodyshopid/up.yaml b/hasura/migrations/1597946820994_alter_table_public_available_jobs_add_unique_clm_no_bodyshopid/up.yaml deleted file mode 100644 index 8882889c9..000000000 --- a/hasura/migrations/1597946820994_alter_table_public_available_jobs_add_unique_clm_no_bodyshopid/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."available_jobs" add constraint "available_jobs_clm_no_bodyshopid_key" - unique ("clm_no", "bodyshopid"); - type: run_sql diff --git a/hasura/migrations/1597955468157_update_permission_user_public_table_available_jobs/down.yaml b/hasura/migrations/1597955468157_update_permission_user_public_table_available_jobs/down.yaml deleted file mode 100644 index 90b0105b5..000000000 --- a/hasura/migrations/1597955468157_update_permission_user_public_table_available_jobs/down.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: available_jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1597955468157_update_permission_user_public_table_available_jobs/up.yaml b/hasura/migrations/1597955468157_update_permission_user_public_table_available_jobs/up.yaml deleted file mode 100644 index ea3838750..000000000 --- a/hasura/migrations/1597955468157_update_permission_user_public_table_available_jobs/up.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - cieca_id - - clm_amt - - est_data - - issupplement - - ownr_name - - source_system - - supplement_number - - uploaded_by - - vehicle_info - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: available_jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1598482210998_run_sql_migration/down.yaml b/hasura/migrations/1598482210998_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1598482210998_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1598482210998_run_sql_migration/up.yaml b/hasura/migrations/1598482210998_run_sql_migration/up.yaml deleted file mode 100644 index 8dad8e1da..000000000 --- a/hasura/migrations/1598482210998_run_sql_migration/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_jobs(search text)\n RETURNS SETOF - jobs\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search = '' then\n - \ return query select * from jobs j ;\n else \n return query SELECT\n - \ *\nFROM\n jobs\nWHERE\nsearch = id OR\n search <% (ownr_fn) OR\n search - <% (ownr_ln) OR\n search <% (cast(est_number as text)) OR\n search <% (ro_number) - OR\n search <% (clm_no) OR\n search <% (plate_no) OR\n search <% (v_make_desc) - OR\n search <% (v_model_desc) ;\n end if;\n\n\tEND\n\n\n$function$;" - type: run_sql diff --git a/hasura/migrations/1598482371598_run_sql_migration/down.yaml b/hasura/migrations/1598482371598_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1598482371598_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1598482371598_run_sql_migration/up.yaml b/hasura/migrations/1598482371598_run_sql_migration/up.yaml deleted file mode 100644 index b8a797748..000000000 --- a/hasura/migrations/1598482371598_run_sql_migration/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_jobs(search text)\n RETURNS SETOF - jobs\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search = '' then\n - \ return query select * from jobs j ;\n else \n return query SELECT\n - \ *\nFROM\n jobs\nWHERE\nUUID(search) = id OR\n search <% (ownr_fn) OR\n search - <% (ownr_ln) OR\n search <% (cast(est_number as text)) OR\n search <% (ro_number) - OR\n search <% (clm_no) OR\n search <% (plate_no) OR\n search <% (v_make_desc) - OR\n search <% (v_model_desc) ;\n end if;\n\n\tEND\n\n\n$function$;" - type: run_sql diff --git a/hasura/migrations/1598482569425_run_sql_migration/down.yaml b/hasura/migrations/1598482569425_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1598482569425_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1598482569425_run_sql_migration/up.yaml b/hasura/migrations/1598482569425_run_sql_migration/up.yaml deleted file mode 100644 index 6abdbb7e0..000000000 --- a/hasura/migrations/1598482569425_run_sql_migration/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_jobs(search text)\n RETURNS SETOF - jobs\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search = '' then\n - \ return query select * from jobs j ;\n else \n return query SELECT\n - \ *\nFROM\n jobs\nWHERE\n search <% (ownr_fn) OR\n search <% (ownr_ln) OR\n - \ search <% (cast(est_number as text)) OR\n search <% (ro_number) OR\n search - <% (clm_no) OR\n search <% (plate_no) OR\n search <% (v_make_desc) OR\n search - <% (v_model_desc) ;\n end if;\n\n\tEND\n\n\n$function$;" - type: run_sql diff --git a/hasura/migrations/1598568175188_run_sql_migration/down.yaml b/hasura/migrations/1598568175188_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1598568175188_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1598568175188_run_sql_migration/up.yaml b/hasura/migrations/1598568175188_run_sql_migration/up.yaml deleted file mode 100644 index 7f90cb120..000000000 --- a/hasura/migrations/1598568175188_run_sql_migration/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE VIEW \"public\".\"joblines_status\" AS \n SELECT j.jobid,\n - \ j.status,\n count(1) AS count,\n j.part_type\n FROM joblines j\n - \ where j.part_type is not null\n GROUP BY j.jobid, j.status, j.part_type\n - \ ;" - type: run_sql diff --git a/hasura/migrations/1598568298727_run_sql_migration/down.yaml b/hasura/migrations/1598568298727_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1598568298727_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1598568298727_run_sql_migration/up.yaml b/hasura/migrations/1598568298727_run_sql_migration/up.yaml deleted file mode 100644 index 7f90cb120..000000000 --- a/hasura/migrations/1598568298727_run_sql_migration/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE VIEW \"public\".\"joblines_status\" AS \n SELECT j.jobid,\n - \ j.status,\n count(1) AS count,\n j.part_type\n FROM joblines j\n - \ where j.part_type is not null\n GROUP BY j.jobid, j.status, j.part_type\n - \ ;" - type: run_sql diff --git a/hasura/migrations/1598568331134_run_sql_migration/down.yaml b/hasura/migrations/1598568331134_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1598568331134_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1598568331134_run_sql_migration/up.yaml b/hasura/migrations/1598568331134_run_sql_migration/up.yaml deleted file mode 100644 index 0ed3a7e15..000000000 --- a/hasura/migrations/1598568331134_run_sql_migration/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE VIEW \"public\".\"joblines_status\" AS \n SELECT j.jobid,\n - \ j.status,\n count(1) AS count,\n j.part_type\n FROM joblines j\n - \ where j.part_type is not null and j.part_type <> 'PAE'\n GROUP BY j.jobid, - j.status, j.part_type\n ;" - type: run_sql diff --git a/hasura/migrations/1598634176882_run_sql_migration/down.yaml b/hasura/migrations/1598634176882_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1598634176882_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1598634176882_run_sql_migration/up.yaml b/hasura/migrations/1598634176882_run_sql_migration/up.yaml deleted file mode 100644 index 612eac420..000000000 --- a/hasura/migrations/1598634176882_run_sql_migration/up.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION update_conversation_on_message()\nRETURNS TRIGGER - AS $$\nBEGIN\n UPDATE conversations SET last_updated = now() WHERE id = NEW.\"conversationid\";\n - \ RETURN NEW; \nEND;\n$$ language 'plpgsql';\n\nDROP TRIGGER IF EXISTS trigger_update_conversation_on_message - ON messages;\nCREATE TRIGGER trigger_update_conversation_on_message AFTER INSERT - ON messages FOR EACH ROW EXECUTE PROCEDURE update_conversation_on_message();" - type: run_sql diff --git a/hasura/migrations/1598634335411_run_sql_migration/down.yaml b/hasura/migrations/1598634335411_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1598634335411_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1598634335411_run_sql_migration/up.yaml b/hasura/migrations/1598634335411_run_sql_migration/up.yaml deleted file mode 100644 index 699642c6c..000000000 --- a/hasura/migrations/1598634335411_run_sql_migration/up.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION update_conversation_on_message()\nRETURNS TRIGGER - AS $$\nBEGIN\n UPDATE conversations SET updated_at = now() WHERE id = NEW.\"conversationid\";\n - \ RETURN NEW; \nEND;\n$$ language 'plpgsql';\n\nDROP TRIGGER IF EXISTS trigger_update_conversation_on_message - ON messages;\nCREATE TRIGGER trigger_update_conversation_on_message AFTER INSERT - ON messages FOR EACH ROW EXECUTE PROCEDURE update_conversation_on_message();" - type: run_sql diff --git a/hasura/migrations/1598979671763_alter_table_public_bodyshops_add_column_md_labor_rates/down.yaml b/hasura/migrations/1598979671763_alter_table_public_bodyshops_add_column_md_labor_rates/down.yaml deleted file mode 100644 index 99415521b..000000000 --- a/hasura/migrations/1598979671763_alter_table_public_bodyshops_add_column_md_labor_rates/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_labor_rates"; - type: run_sql diff --git a/hasura/migrations/1598979671763_alter_table_public_bodyshops_add_column_md_labor_rates/up.yaml b/hasura/migrations/1598979671763_alter_table_public_bodyshops_add_column_md_labor_rates/up.yaml deleted file mode 100644 index f37b888c4..000000000 --- a/hasura/migrations/1598979671763_alter_table_public_bodyshops_add_column_md_labor_rates/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_labor_rates" jsonb NULL DEFAULT - jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1598979718946_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1598979718946_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index ed6ba8e94..000000000 --- a/hasura/migrations/1598979718946_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,66 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1598979718946_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1598979718946_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index c97de2201..000000000 --- a/hasura/migrations/1598979718946_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1598979729004_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1598979729004_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 4614d8cf1..000000000 --- a/hasura/migrations/1598979729004_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,60 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1598979729004_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1598979729004_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index dbe772302..000000000 --- a/hasura/migrations/1598979729004_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,61 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1599070077725_alter_table_public_bodyshops_add_column_deliverchecklist/down.yaml b/hasura/migrations/1599070077725_alter_table_public_bodyshops_add_column_deliverchecklist/down.yaml deleted file mode 100644 index 157903bad..000000000 --- a/hasura/migrations/1599070077725_alter_table_public_bodyshops_add_column_deliverchecklist/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "deliverchecklist"; - type: run_sql diff --git a/hasura/migrations/1599070077725_alter_table_public_bodyshops_add_column_deliverchecklist/up.yaml b/hasura/migrations/1599070077725_alter_table_public_bodyshops_add_column_deliverchecklist/up.yaml deleted file mode 100644 index f4b48eb8f..000000000 --- a/hasura/migrations/1599070077725_alter_table_public_bodyshops_add_column_deliverchecklist/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "deliverchecklist" jsonb NULL - DEFAULT jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1599070090963_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1599070090963_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index c97de2201..000000000 --- a/hasura/migrations/1599070090963_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1599070090963_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1599070090963_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index d75d8f04b..000000000 --- a/hasura/migrations/1599070090963_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,68 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1599070101319_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1599070101319_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index dbe772302..000000000 --- a/hasura/migrations/1599070101319_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,61 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1599070101319_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1599070101319_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 7356653c8..000000000 --- a/hasura/migrations/1599070101319_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,62 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1599070194014_alter_table_public_jobs_add_column_deliverchecklist/down.yaml b/hasura/migrations/1599070194014_alter_table_public_jobs_add_column_deliverchecklist/down.yaml deleted file mode 100644 index eef6c573c..000000000 --- a/hasura/migrations/1599070194014_alter_table_public_jobs_add_column_deliverchecklist/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "deliverchecklist"; - type: run_sql diff --git a/hasura/migrations/1599070194014_alter_table_public_jobs_add_column_deliverchecklist/up.yaml b/hasura/migrations/1599070194014_alter_table_public_jobs_add_column_deliverchecklist/up.yaml deleted file mode 100644 index 080ec5b7c..000000000 --- a/hasura/migrations/1599070194014_alter_table_public_jobs_add_column_deliverchecklist/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "deliverchecklist" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1599070210260_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1599070210260_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 9a4fd9c0e..000000000 --- a/hasura/migrations/1599070210260_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,260 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1599070210260_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1599070210260_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 48b29d7b4..000000000 --- a/hasura/migrations/1599070210260_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1599070220118_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1599070220118_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 0100f9fe3..000000000 --- a/hasura/migrations/1599070220118_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1599070220118_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1599070220118_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 3d3f8da44..000000000 --- a/hasura/migrations/1599070220118_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1599070232908_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1599070232908_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index d13ee33a1..000000000 --- a/hasura/migrations/1599070232908_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,260 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1599070232908_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1599070232908_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index c810ff9b8..000000000 --- a/hasura/migrations/1599070232908_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_atp - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1599070694592_alter_table_public_bodyshops_alter_column_deliverchecklist/down.yaml b/hasura/migrations/1599070694592_alter_table_public_bodyshops_alter_column_deliverchecklist/down.yaml deleted file mode 100644 index 930bde449..000000000 --- a/hasura/migrations/1599070694592_alter_table_public_bodyshops_alter_column_deliverchecklist/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."bodyshops" ALTER COLUMN "deliverchecklist" SET - DEFAULT jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1599070694592_alter_table_public_bodyshops_alter_column_deliverchecklist/up.yaml b/hasura/migrations/1599070694592_alter_table_public_bodyshops_alter_column_deliverchecklist/up.yaml deleted file mode 100644 index ffb397cf1..000000000 --- a/hasura/migrations/1599070694592_alter_table_public_bodyshops_alter_column_deliverchecklist/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ALTER COLUMN "deliverchecklist" DROP DEFAULT; - type: run_sql diff --git a/hasura/migrations/1599071908436_alter_table_public_bodyshops_alter_column_deliverchecklist/down.yaml b/hasura/migrations/1599071908436_alter_table_public_bodyshops_alter_column_deliverchecklist/down.yaml deleted file mode 100644 index a0efec89f..000000000 --- a/hasura/migrations/1599071908436_alter_table_public_bodyshops_alter_column_deliverchecklist/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."bodyshops" ALTER COLUMN "deliverchecklist" DROP - DEFAULT; - type: run_sql diff --git a/hasura/migrations/1599071908436_alter_table_public_bodyshops_alter_column_deliverchecklist/up.yaml b/hasura/migrations/1599071908436_alter_table_public_bodyshops_alter_column_deliverchecklist/up.yaml deleted file mode 100644 index f211b306c..000000000 --- a/hasura/migrations/1599071908436_alter_table_public_bodyshops_alter_column_deliverchecklist/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."bodyshops" ALTER COLUMN "deliverchecklist" SET - DEFAULT jsonb_build_object(); - type: run_sql diff --git a/hasura/migrations/1599071927183_alter_table_public_bodyshops_alter_column_intakechecklist/down.yaml b/hasura/migrations/1599071927183_alter_table_public_bodyshops_alter_column_intakechecklist/down.yaml deleted file mode 100644 index 4c60bf7fa..000000000 --- a/hasura/migrations/1599071927183_alter_table_public_bodyshops_alter_column_intakechecklist/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."bodyshops" ALTER COLUMN "intakechecklist" DROP - DEFAULT; - type: run_sql diff --git a/hasura/migrations/1599071927183_alter_table_public_bodyshops_alter_column_intakechecklist/up.yaml b/hasura/migrations/1599071927183_alter_table_public_bodyshops_alter_column_intakechecklist/up.yaml deleted file mode 100644 index bb8e80e56..000000000 --- a/hasura/migrations/1599071927183_alter_table_public_bodyshops_alter_column_intakechecklist/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."bodyshops" ALTER COLUMN "intakechecklist" SET - DEFAULT jsonb_build_object(); - type: run_sql diff --git a/hasura/migrations/1599681810108_alter_table_public_jobs_alter_column_rate_atp/down.yaml b/hasura/migrations/1599681810108_alter_table_public_jobs_alter_column_rate_atp/down.yaml deleted file mode 100644 index 4f83b18be..000000000 --- a/hasura/migrations/1599681810108_alter_table_public_jobs_alter_column_rate_atp/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."jobs" rename column "rate_ats" to "rate_atp"; - type: run_sql diff --git a/hasura/migrations/1599681810108_alter_table_public_jobs_alter_column_rate_atp/up.yaml b/hasura/migrations/1599681810108_alter_table_public_jobs_alter_column_rate_atp/up.yaml deleted file mode 100644 index 2f3acf47a..000000000 --- a/hasura/migrations/1599681810108_alter_table_public_jobs_alter_column_rate_atp/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."jobs" rename column "rate_atp" to "rate_ats"; - type: run_sql diff --git a/hasura/migrations/1599685044433_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1599685044433_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index de19515aa..000000000 --- a/hasura/migrations/1599685044433_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_ats - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1599685044433_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1599685044433_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index fb5509933..000000000 --- a/hasura/migrations/1599685044433_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,260 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1599685058705_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1599685058705_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index e866fce4c..000000000 --- a/hasura/migrations/1599685058705_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_ats - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1599685058705_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1599685058705_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 1eea00449..000000000 --- a/hasura/migrations/1599685058705_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1599685070271_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1599685070271_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 0efe18412..000000000 --- a/hasura/migrations/1599685070271_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_ats - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1599685070271_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1599685070271_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 5fb88af70..000000000 --- a/hasura/migrations/1599685070271_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,260 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1599685084979_alter_table_public_jobs_drop_column_rate_ats/down.yaml b/hasura/migrations/1599685084979_alter_table_public_jobs_drop_column_rate_ats/down.yaml deleted file mode 100644 index 726cc3f11..000000000 --- a/hasura/migrations/1599685084979_alter_table_public_jobs_drop_column_rate_ats/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "rate_ats" numeric; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "rate_ats" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1599685084979_alter_table_public_jobs_drop_column_rate_ats/up.yaml b/hasura/migrations/1599685084979_alter_table_public_jobs_drop_column_rate_ats/up.yaml deleted file mode 100644 index 8a2e3f1e8..000000000 --- a/hasura/migrations/1599685084979_alter_table_public_jobs_drop_column_rate_ats/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "rate_ats" CASCADE; - type: run_sql diff --git a/hasura/migrations/1599692038231_alter_table_public_jobs_add_column_tax_shop_mat_rt/down.yaml b/hasura/migrations/1599692038231_alter_table_public_jobs_add_column_tax_shop_mat_rt/down.yaml deleted file mode 100644 index a2cd969e0..000000000 --- a/hasura/migrations/1599692038231_alter_table_public_jobs_add_column_tax_shop_mat_rt/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "tax_shop_mat_rt"; - type: run_sql diff --git a/hasura/migrations/1599692038231_alter_table_public_jobs_add_column_tax_shop_mat_rt/up.yaml b/hasura/migrations/1599692038231_alter_table_public_jobs_add_column_tax_shop_mat_rt/up.yaml deleted file mode 100644 index b8753826f..000000000 --- a/hasura/migrations/1599692038231_alter_table_public_jobs_add_column_tax_shop_mat_rt/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "tax_shop_mat_rt" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1599692310270_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1599692310270_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index fb5509933..000000000 --- a/hasura/migrations/1599692310270_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,260 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1599692310270_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1599692310270_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 2e778f53c..000000000 --- a/hasura/migrations/1599692310270_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1599692321158_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1599692321158_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 1eea00449..000000000 --- a/hasura/migrations/1599692321158_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1599692321158_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1599692321158_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index f0fa8af7a..000000000 --- a/hasura/migrations/1599692321158_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1599692329335_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1599692329335_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 5fb88af70..000000000 --- a/hasura/migrations/1599692329335_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,260 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1599692329335_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1599692329335_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index f12bd10ee..000000000 --- a/hasura/migrations/1599692329335_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600106009309_alter_table_public_joblines_add_column_profitcenter_labor/down.yaml b/hasura/migrations/1600106009309_alter_table_public_joblines_add_column_profitcenter_labor/down.yaml deleted file mode 100644 index 3c8f10178..000000000 --- a/hasura/migrations/1600106009309_alter_table_public_joblines_add_column_profitcenter_labor/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" DROP COLUMN "profitcenter_labor"; - type: run_sql diff --git a/hasura/migrations/1600106009309_alter_table_public_joblines_add_column_profitcenter_labor/up.yaml b/hasura/migrations/1600106009309_alter_table_public_joblines_add_column_profitcenter_labor/up.yaml deleted file mode 100644 index a92fac8e1..000000000 --- a/hasura/migrations/1600106009309_alter_table_public_joblines_add_column_profitcenter_labor/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" ADD COLUMN "profitcenter_labor" text NULL; - type: run_sql diff --git a/hasura/migrations/1600106018973_alter_table_public_joblines_add_column_profitcenter_part/down.yaml b/hasura/migrations/1600106018973_alter_table_public_joblines_add_column_profitcenter_part/down.yaml deleted file mode 100644 index 6abc5e066..000000000 --- a/hasura/migrations/1600106018973_alter_table_public_joblines_add_column_profitcenter_part/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" DROP COLUMN "profitcenter_part"; - type: run_sql diff --git a/hasura/migrations/1600106018973_alter_table_public_joblines_add_column_profitcenter_part/up.yaml b/hasura/migrations/1600106018973_alter_table_public_joblines_add_column_profitcenter_part/up.yaml deleted file mode 100644 index 748d9eeed..000000000 --- a/hasura/migrations/1600106018973_alter_table_public_joblines_add_column_profitcenter_part/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" ADD COLUMN "profitcenter_part" text NULL; - type: run_sql diff --git a/hasura/migrations/1600106247186_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1600106247186_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index a73177edf..000000000 --- a/hasura/migrations/1600106247186_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600106247186_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1600106247186_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 7dc50463b..000000000 --- a/hasura/migrations/1600106247186_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,79 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600106254802_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1600106254802_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 1ff01e737..000000000 --- a/hasura/migrations/1600106254802_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,78 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600106254802_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1600106254802_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 0a0fcd317..000000000 --- a/hasura/migrations/1600106254802_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600106261415_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1600106261415_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 0544129c9..000000000 --- a/hasura/migrations/1600106261415_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600106261415_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1600106261415_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 4e8d4b05b..000000000 --- a/hasura/migrations/1600106261415_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,79 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600292860390_alter_table_public_bodyshops_add_column_phone/down.yaml b/hasura/migrations/1600292860390_alter_table_public_bodyshops_add_column_phone/down.yaml deleted file mode 100644 index 8a0144258..000000000 --- a/hasura/migrations/1600292860390_alter_table_public_bodyshops_add_column_phone/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "phone"; - type: run_sql diff --git a/hasura/migrations/1600292860390_alter_table_public_bodyshops_add_column_phone/up.yaml b/hasura/migrations/1600292860390_alter_table_public_bodyshops_add_column_phone/up.yaml deleted file mode 100644 index f350101ee..000000000 --- a/hasura/migrations/1600292860390_alter_table_public_bodyshops_add_column_phone/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "phone" text NULL; - type: run_sql diff --git a/hasura/migrations/1600292870975_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1600292870975_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index d75d8f04b..000000000 --- a/hasura/migrations/1600292870975_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,68 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600292870975_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1600292870975_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 710967d55..000000000 --- a/hasura/migrations/1600292870975_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,69 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600292878940_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1600292878940_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 7356653c8..000000000 --- a/hasura/migrations/1600292878940_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,62 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600292878940_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1600292878940_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index c426f836c..000000000 --- a/hasura/migrations/1600292878940_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,63 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600294031854_alter_table_public_bodyshops_add_column_target_touchtime/down.yaml b/hasura/migrations/1600294031854_alter_table_public_bodyshops_add_column_target_touchtime/down.yaml deleted file mode 100644 index c1dc0c088..000000000 --- a/hasura/migrations/1600294031854_alter_table_public_bodyshops_add_column_target_touchtime/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "target_touchtime"; - type: run_sql diff --git a/hasura/migrations/1600294031854_alter_table_public_bodyshops_add_column_target_touchtime/up.yaml b/hasura/migrations/1600294031854_alter_table_public_bodyshops_add_column_target_touchtime/up.yaml deleted file mode 100644 index 5c79aa321..000000000 --- a/hasura/migrations/1600294031854_alter_table_public_bodyshops_add_column_target_touchtime/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "target_touchtime" numeric NULL - DEFAULT 3.5; - type: run_sql diff --git a/hasura/migrations/1600294058257_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1600294058257_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 710967d55..000000000 --- a/hasura/migrations/1600294058257_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,69 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600294058257_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1600294058257_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 5d6d531ea..000000000 --- a/hasura/migrations/1600294058257_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,70 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600294065934_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1600294065934_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index c426f836c..000000000 --- a/hasura/migrations/1600294065934_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,63 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600294065934_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1600294065934_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index ad197ec93..000000000 --- a/hasura/migrations/1600294065934_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,64 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - invoice_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600811731481_run_sql_migration/down.yaml b/hasura/migrations/1600811731481_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1600811731481_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1600811731481_run_sql_migration/up.yaml b/hasura/migrations/1600811731481_run_sql_migration/up.yaml deleted file mode 100644 index 5db204c48..000000000 --- a/hasura/migrations/1600811731481_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - read_only: false - sql: DROP FUNCTION IF EXISTS search_invoices; - type: run_sql diff --git a/hasura/migrations/1600811750963_rename_table_public_invoices/down.yaml b/hasura/migrations/1600811750963_rename_table_public_invoices/down.yaml deleted file mode 100644 index 625e90326..000000000 --- a/hasura/migrations/1600811750963_rename_table_public_invoices/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."bills" rename to "invoices"; - type: run_sql diff --git a/hasura/migrations/1600811750963_rename_table_public_invoices/up.yaml b/hasura/migrations/1600811750963_rename_table_public_invoices/up.yaml deleted file mode 100644 index 26218296f..000000000 --- a/hasura/migrations/1600811750963_rename_table_public_invoices/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."invoices" rename to "bills"; - type: run_sql diff --git a/hasura/migrations/1600811831857_rename_table_public_invoicelines/down.yaml b/hasura/migrations/1600811831857_rename_table_public_invoicelines/down.yaml deleted file mode 100644 index 931570651..000000000 --- a/hasura/migrations/1600811831857_rename_table_public_invoicelines/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."billlines" rename to "invoicelines"; - type: run_sql diff --git a/hasura/migrations/1600811831857_rename_table_public_invoicelines/up.yaml b/hasura/migrations/1600811831857_rename_table_public_invoicelines/up.yaml deleted file mode 100644 index 0ec970572..000000000 --- a/hasura/migrations/1600811831857_rename_table_public_invoicelines/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."invoicelines" rename to "billlines"; - type: run_sql diff --git a/hasura/migrations/1600811849946_alter_table_public_billlines_alter_column_invoiceid/down.yaml b/hasura/migrations/1600811849946_alter_table_public_billlines_alter_column_invoiceid/down.yaml deleted file mode 100644 index ba988be2a..000000000 --- a/hasura/migrations/1600811849946_alter_table_public_billlines_alter_column_invoiceid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."billlines" rename column "billid" to "invoiceid"; - type: run_sql diff --git a/hasura/migrations/1600811849946_alter_table_public_billlines_alter_column_invoiceid/up.yaml b/hasura/migrations/1600811849946_alter_table_public_billlines_alter_column_invoiceid/up.yaml deleted file mode 100644 index d30c5b176..000000000 --- a/hasura/migrations/1600811849946_alter_table_public_billlines_alter_column_invoiceid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."billlines" rename column "invoiceid" to "billid"; - type: run_sql diff --git a/hasura/migrations/1600811863089_rename_relationship_invoice_to_bill_schema_public_table_billlines/down.yaml b/hasura/migrations/1600811863089_rename_relationship_invoice_to_bill_schema_public_table_billlines/down.yaml deleted file mode 100644 index bcab8a422..000000000 --- a/hasura/migrations/1600811863089_rename_relationship_invoice_to_bill_schema_public_table_billlines/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: bill - new_name: invoice - table: - name: billlines - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600811863089_rename_relationship_invoice_to_bill_schema_public_table_billlines/up.yaml b/hasura/migrations/1600811863089_rename_relationship_invoice_to_bill_schema_public_table_billlines/up.yaml deleted file mode 100644 index e38c9eaed..000000000 --- a/hasura/migrations/1600811863089_rename_relationship_invoice_to_bill_schema_public_table_billlines/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: invoice - new_name: bill - table: - name: billlines - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600811909350_rename_relationship_invoice_to_bill_schema_public_table_jobs/down.yaml b/hasura/migrations/1600811909350_rename_relationship_invoice_to_bill_schema_public_table_jobs/down.yaml deleted file mode 100644 index 380c6beb8..000000000 --- a/hasura/migrations/1600811909350_rename_relationship_invoice_to_bill_schema_public_table_jobs/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: bill - new_name: invoice - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600811909350_rename_relationship_invoice_to_bill_schema_public_table_jobs/up.yaml b/hasura/migrations/1600811909350_rename_relationship_invoice_to_bill_schema_public_table_jobs/up.yaml deleted file mode 100644 index c4b86b008..000000000 --- a/hasura/migrations/1600811909350_rename_relationship_invoice_to_bill_schema_public_table_jobs/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: invoice - new_name: bill - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600811937441_rename_relationship_invoices_to_bills_schema_public_table_jobs/down.yaml b/hasura/migrations/1600811937441_rename_relationship_invoices_to_bills_schema_public_table_jobs/down.yaml deleted file mode 100644 index b52fbbc9a..000000000 --- a/hasura/migrations/1600811937441_rename_relationship_invoices_to_bills_schema_public_table_jobs/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: bills - new_name: invoices - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600811937441_rename_relationship_invoices_to_bills_schema_public_table_jobs/up.yaml b/hasura/migrations/1600811937441_rename_relationship_invoices_to_bills_schema_public_table_jobs/up.yaml deleted file mode 100644 index fb9de59c5..000000000 --- a/hasura/migrations/1600811937441_rename_relationship_invoices_to_bills_schema_public_table_jobs/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: invoices - new_name: bills - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600811997732_rename_relationship_invoice_to_bill_schema_public_table_documents/down.yaml b/hasura/migrations/1600811997732_rename_relationship_invoice_to_bill_schema_public_table_documents/down.yaml deleted file mode 100644 index 0f322f8e2..000000000 --- a/hasura/migrations/1600811997732_rename_relationship_invoice_to_bill_schema_public_table_documents/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: bill - new_name: invoice - table: - name: documents - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600811997732_rename_relationship_invoice_to_bill_schema_public_table_documents/up.yaml b/hasura/migrations/1600811997732_rename_relationship_invoice_to_bill_schema_public_table_documents/up.yaml deleted file mode 100644 index 908879fc7..000000000 --- a/hasura/migrations/1600811997732_rename_relationship_invoice_to_bill_schema_public_table_documents/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: invoice - new_name: bill - table: - name: documents - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600812038329_rename_relationship_invoice_to_bill_schema_public_table_parts_orders/down.yaml b/hasura/migrations/1600812038329_rename_relationship_invoice_to_bill_schema_public_table_parts_orders/down.yaml deleted file mode 100644 index ea5a7b867..000000000 --- a/hasura/migrations/1600812038329_rename_relationship_invoice_to_bill_schema_public_table_parts_orders/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: bill - new_name: invoice - table: - name: parts_orders - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600812038329_rename_relationship_invoice_to_bill_schema_public_table_parts_orders/up.yaml b/hasura/migrations/1600812038329_rename_relationship_invoice_to_bill_schema_public_table_parts_orders/up.yaml deleted file mode 100644 index 986c4a450..000000000 --- a/hasura/migrations/1600812038329_rename_relationship_invoice_to_bill_schema_public_table_parts_orders/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: invoice - new_name: bill - table: - name: parts_orders - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600812079500_run_sql_migration/down.yaml b/hasura/migrations/1600812079500_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1600812079500_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1600812079500_run_sql_migration/up.yaml b/hasura/migrations/1600812079500_run_sql_migration/up.yaml deleted file mode 100644 index cb3a18586..000000000 --- a/hasura/migrations/1600812079500_run_sql_migration/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_bills(search text)\n RETURNS SETOF - bills\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search = '' - then\n return query select * from bills ;\n else \n return query SELECT\n - \ *\nFROM\n bills\nWHERE\n search <% (invoice_number);\n end if;\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1600813433790_rename_relationship_invoicelines_to_billlines_schema_public_table_bills/down.yaml b/hasura/migrations/1600813433790_rename_relationship_invoicelines_to_billlines_schema_public_table_bills/down.yaml deleted file mode 100644 index 3d57da3c3..000000000 --- a/hasura/migrations/1600813433790_rename_relationship_invoicelines_to_billlines_schema_public_table_bills/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: billlines - new_name: invoicelines - table: - name: bills - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600813433790_rename_relationship_invoicelines_to_billlines_schema_public_table_bills/up.yaml b/hasura/migrations/1600813433790_rename_relationship_invoicelines_to_billlines_schema_public_table_bills/up.yaml deleted file mode 100644 index 0fe85775f..000000000 --- a/hasura/migrations/1600813433790_rename_relationship_invoicelines_to_billlines_schema_public_table_bills/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: invoicelines - new_name: billlines - table: - name: bills - schema: public - type: rename_relationship diff --git a/hasura/migrations/1600814306056_run_sql_migration/down.yaml b/hasura/migrations/1600814306056_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1600814306056_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1600814306056_run_sql_migration/up.yaml b/hasura/migrations/1600814306056_run_sql_migration/up.yaml deleted file mode 100644 index cb3a18586..000000000 --- a/hasura/migrations/1600814306056_run_sql_migration/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_bills(search text)\n RETURNS SETOF - bills\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search = '' - then\n return query select * from bills ;\n else \n return query SELECT\n - \ *\nFROM\n bills\nWHERE\n search <% (invoice_number);\n end if;\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1600814334466_run_sql_migration/down.yaml b/hasura/migrations/1600814334466_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1600814334466_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1600814334466_run_sql_migration/up.yaml b/hasura/migrations/1600814334466_run_sql_migration/up.yaml deleted file mode 100644 index 3f9cf967b..000000000 --- a/hasura/migrations/1600814334466_run_sql_migration/up.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_bills(search text)\n RETURNS SETOF - bills\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search = '' - then\n return query select * from bills ;\n else \n return query SELECT\n - \ *\nFROM\n bills\nWHERE\n search <% (invoice_number);\n end if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: search_bills - schema: public - type: track_function diff --git a/hasura/migrations/1600815693417_alter_table_public_documents_alter_column_invoiceid/down.yaml b/hasura/migrations/1600815693417_alter_table_public_documents_alter_column_invoiceid/down.yaml deleted file mode 100644 index c3f28ea91..000000000 --- a/hasura/migrations/1600815693417_alter_table_public_documents_alter_column_invoiceid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."documents" rename column "billid" to "invoiceid"; - type: run_sql diff --git a/hasura/migrations/1600815693417_alter_table_public_documents_alter_column_invoiceid/up.yaml b/hasura/migrations/1600815693417_alter_table_public_documents_alter_column_invoiceid/up.yaml deleted file mode 100644 index 4b3cc9bd6..000000000 --- a/hasura/migrations/1600815693417_alter_table_public_documents_alter_column_invoiceid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."documents" rename column "invoiceid" to "billid"; - type: run_sql diff --git a/hasura/migrations/1600818909881_alter_table_public_bodyshops_alter_column_invoice_tax_rates/down.yaml b/hasura/migrations/1600818909881_alter_table_public_bodyshops_alter_column_invoice_tax_rates/down.yaml deleted file mode 100644 index f25ed43bb..000000000 --- a/hasura/migrations/1600818909881_alter_table_public_bodyshops_alter_column_invoice_tax_rates/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."bodyshops" rename column "bill_tax_rates" to "invoice_tax_rates"; - type: run_sql diff --git a/hasura/migrations/1600818909881_alter_table_public_bodyshops_alter_column_invoice_tax_rates/up.yaml b/hasura/migrations/1600818909881_alter_table_public_bodyshops_alter_column_invoice_tax_rates/up.yaml deleted file mode 100644 index 30d8889c3..000000000 --- a/hasura/migrations/1600818909881_alter_table_public_bodyshops_alter_column_invoice_tax_rates/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."bodyshops" rename column "invoice_tax_rates" to "bill_tax_rates"; - type: run_sql diff --git a/hasura/migrations/1600878473457_alter_table_public_appointments_add_column_color/down.yaml b/hasura/migrations/1600878473457_alter_table_public_appointments_add_column_color/down.yaml deleted file mode 100644 index 9b542b85b..000000000 --- a/hasura/migrations/1600878473457_alter_table_public_appointments_add_column_color/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."appointments" DROP COLUMN "color"; - type: run_sql diff --git a/hasura/migrations/1600878473457_alter_table_public_appointments_add_column_color/up.yaml b/hasura/migrations/1600878473457_alter_table_public_appointments_add_column_color/up.yaml deleted file mode 100644 index 49c013814..000000000 --- a/hasura/migrations/1600878473457_alter_table_public_appointments_add_column_color/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."appointments" ADD COLUMN "color" text NULL; - type: run_sql diff --git a/hasura/migrations/1600878486095_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1600878486095_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 395eb2282..000000000 --- a/hasura/migrations/1600878486095_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - arrived - - block - - bodyshopid - - canceled - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600878486095_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1600878486095_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 6ede145d6..000000000 --- a/hasura/migrations/1600878486095_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600878494450_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1600878494450_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 493ba4dcc..000000000 --- a/hasura/migrations/1600878494450_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - block - - bodyshopid - - canceled - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600878494450_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1600878494450_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 049d91b6a..000000000 --- a/hasura/migrations/1600878494450_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600878500075_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1600878500075_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index ceb8763aa..000000000 --- a/hasura/migrations/1600878500075_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - block - - bodyshopid - - canceled - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600878500075_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1600878500075_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 68d734d03..000000000 --- a/hasura/migrations/1600878500075_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600880138974_alter_table_public_bodyshops_add_column_appt_colors/down.yaml b/hasura/migrations/1600880138974_alter_table_public_bodyshops_add_column_appt_colors/down.yaml deleted file mode 100644 index 8e3e479b3..000000000 --- a/hasura/migrations/1600880138974_alter_table_public_bodyshops_add_column_appt_colors/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "appt_colors"; - type: run_sql diff --git a/hasura/migrations/1600880138974_alter_table_public_bodyshops_add_column_appt_colors/up.yaml b/hasura/migrations/1600880138974_alter_table_public_bodyshops_add_column_appt_colors/up.yaml deleted file mode 100644 index b652f4729..000000000 --- a/hasura/migrations/1600880138974_alter_table_public_bodyshops_add_column_appt_colors/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "appt_colors" jsonb NULL DEFAULT - jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1600880847605_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1600880847605_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index a4430067b..000000000 --- a/hasura/migrations/1600880847605_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,70 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - bill_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600880847605_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1600880847605_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 86a8318df..000000000 --- a/hasura/migrations/1600880847605_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,71 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600880860765_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1600880860765_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index ad8fc3ab8..000000000 --- a/hasura/migrations/1600880860765_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,64 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_length - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - bill_tax_rates - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600880860765_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1600880860765_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 7774e363d..000000000 --- a/hasura/migrations/1600880860765_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,65 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600886386385_alter_table_public_jobs_add_column_queued_for_parts/down.yaml b/hasura/migrations/1600886386385_alter_table_public_jobs_add_column_queued_for_parts/down.yaml deleted file mode 100644 index ea47af312..000000000 --- a/hasura/migrations/1600886386385_alter_table_public_jobs_add_column_queued_for_parts/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "queued_for_parts"; - type: run_sql diff --git a/hasura/migrations/1600886386385_alter_table_public_jobs_add_column_queued_for_parts/up.yaml b/hasura/migrations/1600886386385_alter_table_public_jobs_add_column_queued_for_parts/up.yaml deleted file mode 100644 index 1ae3b3c38..000000000 --- a/hasura/migrations/1600886386385_alter_table_public_jobs_add_column_queued_for_parts/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "queued_for_parts" boolean NOT NULL - DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1600886399615_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1600886399615_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 2e778f53c..000000000 --- a/hasura/migrations/1600886399615_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600886399615_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1600886399615_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index cdbd11983..000000000 --- a/hasura/migrations/1600886399615_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600886414066_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1600886414066_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index f0fa8af7a..000000000 --- a/hasura/migrations/1600886414066_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600886414066_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1600886414066_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 74279b915..000000000 --- a/hasura/migrations/1600886414066_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600886423573_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1600886423573_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index f12bd10ee..000000000 --- a/hasura/migrations/1600886423573_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,261 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600886423573_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1600886423573_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 8c644d008..000000000 --- a/hasura/migrations/1600886423573_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600980645878_alter_table_public_jobs_add_column_ca_gst_registrant/down.yaml b/hasura/migrations/1600980645878_alter_table_public_jobs_add_column_ca_gst_registrant/down.yaml deleted file mode 100644 index a0c9a715f..000000000 --- a/hasura/migrations/1600980645878_alter_table_public_jobs_add_column_ca_gst_registrant/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "ca_gst_registrant"; - type: run_sql diff --git a/hasura/migrations/1600980645878_alter_table_public_jobs_add_column_ca_gst_registrant/up.yaml b/hasura/migrations/1600980645878_alter_table_public_jobs_add_column_ca_gst_registrant/up.yaml deleted file mode 100644 index fbaf0e519..000000000 --- a/hasura/migrations/1600980645878_alter_table_public_jobs_add_column_ca_gst_registrant/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "ca_gst_registrant" bool NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1600980661887_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1600980661887_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index cdbd11983..000000000 --- a/hasura/migrations/1600980661887_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600980661887_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1600980661887_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4f506a48c..000000000 --- a/hasura/migrations/1600980661887_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600980673046_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1600980673046_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 74279b915..000000000 --- a/hasura/migrations/1600980673046_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600980673046_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1600980673046_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 9ddd0ef2c..000000000 --- a/hasura/migrations/1600980673046_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,264 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600980681641_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1600980681641_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 8c644d008..000000000 --- a/hasura/migrations/1600980681641_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600980681641_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1600980681641_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 4736ad435..000000000 --- a/hasura/migrations/1600980681641_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600986243351_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1600986243351_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4f506a48c..000000000 --- a/hasura/migrations/1600986243351_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600986243351_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1600986243351_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index fef841c46..000000000 --- a/hasura/migrations/1600986243351_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600986262894_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1600986262894_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index fef841c46..000000000 --- a/hasura/migrations/1600986262894_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600986262894_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1600986262894_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 6aac1b887..000000000 --- a/hasura/migrations/1600986262894_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1600986270946_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1600986270946_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 9ddd0ef2c..000000000 --- a/hasura/migrations/1600986270946_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,264 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600986270946_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1600986270946_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index e0264031c..000000000 --- a/hasura/migrations/1600986270946_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1600986285430_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1600986285430_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 4736ad435..000000000 --- a/hasura/migrations/1600986285430_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_payable - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600986285430_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1600986285430_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 244d65f4a..000000000 --- a/hasura/migrations/1600986285430_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1600986351568_alter_table_public_jobs_drop_column_federal_tax_payable/down.yaml b/hasura/migrations/1600986351568_alter_table_public_jobs_drop_column_federal_tax_payable/down.yaml deleted file mode 100644 index f562ab36c..000000000 --- a/hasura/migrations/1600986351568_alter_table_public_jobs_drop_column_federal_tax_payable/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "federal_tax_payable" numeric; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "federal_tax_payable" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1600986351568_alter_table_public_jobs_drop_column_federal_tax_payable/up.yaml b/hasura/migrations/1600986351568_alter_table_public_jobs_drop_column_federal_tax_payable/up.yaml deleted file mode 100644 index ffbc0e0bd..000000000 --- a/hasura/migrations/1600986351568_alter_table_public_jobs_drop_column_federal_tax_payable/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "federal_tax_payable" CASCADE; - type: run_sql diff --git a/hasura/migrations/1601394864653_alter_table_public_joblines_add_column_sublet_ignored/down.yaml b/hasura/migrations/1601394864653_alter_table_public_joblines_add_column_sublet_ignored/down.yaml deleted file mode 100644 index 68309bfe5..000000000 --- a/hasura/migrations/1601394864653_alter_table_public_joblines_add_column_sublet_ignored/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" DROP COLUMN "sublet_ignored"; - type: run_sql diff --git a/hasura/migrations/1601394864653_alter_table_public_joblines_add_column_sublet_ignored/up.yaml b/hasura/migrations/1601394864653_alter_table_public_joblines_add_column_sublet_ignored/up.yaml deleted file mode 100644 index e91df7c2e..000000000 --- a/hasura/migrations/1601394864653_alter_table_public_joblines_add_column_sublet_ignored/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" ADD COLUMN "sublet_ignored" bool NOT NULL - DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1601394877870_alter_table_public_joblines_add_column_sublet_completed/down.yaml b/hasura/migrations/1601394877870_alter_table_public_joblines_add_column_sublet_completed/down.yaml deleted file mode 100644 index facc7bfdb..000000000 --- a/hasura/migrations/1601394877870_alter_table_public_joblines_add_column_sublet_completed/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" DROP COLUMN "sublet_completed"; - type: run_sql diff --git a/hasura/migrations/1601394877870_alter_table_public_joblines_add_column_sublet_completed/up.yaml b/hasura/migrations/1601394877870_alter_table_public_joblines_add_column_sublet_completed/up.yaml deleted file mode 100644 index fc4fa5250..000000000 --- a/hasura/migrations/1601394877870_alter_table_public_joblines_add_column_sublet_completed/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" ADD COLUMN "sublet_completed" bool NOT NULL - DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1601394888768_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1601394888768_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 7dc50463b..000000000 --- a/hasura/migrations/1601394888768_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,79 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1601394888768_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1601394888768_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index ff9ac5fde..000000000 --- a/hasura/migrations/1601394888768_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,81 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1601394897792_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1601394897792_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 0a0fcd317..000000000 --- a/hasura/migrations/1601394897792_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1601394897792_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1601394897792_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 5c724e8f3..000000000 --- a/hasura/migrations/1601394897792_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,82 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1601394905183_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1601394905183_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 4e8d4b05b..000000000 --- a/hasura/migrations/1601394905183_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,79 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1601394905183_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1601394905183_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 288f51729..000000000 --- a/hasura/migrations/1601394905183_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,81 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1601400921029_alter_table_public_appointments_add_column_alt_transport/down.yaml b/hasura/migrations/1601400921029_alter_table_public_appointments_add_column_alt_transport/down.yaml deleted file mode 100644 index 03b05d199..000000000 --- a/hasura/migrations/1601400921029_alter_table_public_appointments_add_column_alt_transport/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."appointments" DROP COLUMN "alt_transport"; - type: run_sql diff --git a/hasura/migrations/1601400921029_alter_table_public_appointments_add_column_alt_transport/up.yaml b/hasura/migrations/1601400921029_alter_table_public_appointments_add_column_alt_transport/up.yaml deleted file mode 100644 index d09f0a610..000000000 --- a/hasura/migrations/1601400921029_alter_table_public_appointments_add_column_alt_transport/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."appointments" ADD COLUMN "alt_transport" text NULL; - type: run_sql diff --git a/hasura/migrations/1601400929812_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1601400929812_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 6ede145d6..000000000 --- a/hasura/migrations/1601400929812_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1601400929812_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1601400929812_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index f3d0a358e..000000000 --- a/hasura/migrations/1601400929812_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - alt_transport - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1601400937507_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1601400937507_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 049d91b6a..000000000 --- a/hasura/migrations/1601400937507_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1601400937507_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1601400937507_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index e87257348..000000000 --- a/hasura/migrations/1601400937507_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - alt_transport - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1601400944178_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1601400944178_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 68d734d03..000000000 --- a/hasura/migrations/1601400944178_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1601400944178_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1601400944178_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 0b3797e50..000000000 --- a/hasura/migrations/1601400944178_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - alt_transport - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1601401615051_alter_table_public_bodyshops_add_column_appt_alt_transport/down.yaml b/hasura/migrations/1601401615051_alter_table_public_bodyshops_add_column_appt_alt_transport/down.yaml deleted file mode 100644 index c67f58702..000000000 --- a/hasura/migrations/1601401615051_alter_table_public_bodyshops_add_column_appt_alt_transport/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "appt_alt_transport"; - type: run_sql diff --git a/hasura/migrations/1601401615051_alter_table_public_bodyshops_add_column_appt_alt_transport/up.yaml b/hasura/migrations/1601401615051_alter_table_public_bodyshops_add_column_appt_alt_transport/up.yaml deleted file mode 100644 index 7a0696323..000000000 --- a/hasura/migrations/1601401615051_alter_table_public_bodyshops_add_column_appt_alt_transport/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "appt_alt_transport" jsonb NULL - DEFAULT jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1601401627582_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1601401627582_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 86a8318df..000000000 --- a/hasura/migrations/1601401627582_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,71 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1601401627582_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1601401627582_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 2b690bd5e..000000000 --- a/hasura/migrations/1601401627582_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,72 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1601401633544_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1601401633544_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 7774e363d..000000000 --- a/hasura/migrations/1601401633544_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,65 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1601401633544_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1601401633544_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 49004b66e..000000000 --- a/hasura/migrations/1601401633544_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,66 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1601917532118_run_sql_migration/down.yaml b/hasura/migrations/1601917532118_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1601917532118_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1601917532118_run_sql_migration/up.yaml b/hasura/migrations/1601917532118_run_sql_migration/up.yaml deleted file mode 100644 index 2bc705db9..000000000 --- a/hasura/migrations/1601917532118_run_sql_migration/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - cascade: true - read_only: false - sql: |- - CREATE OR REPLACE FUNCTION public.search_jobs(search text) RETURNS SETOF jobs LANGUAGE plpgsql STABLE AS $function$ BEGIN if search = '' then return query - select * - from jobs j; - else return query - SELECT * - FROM jobs j2 - WHERE ro_number ILIKE '%' || search || '%' - OR (cast(est_number as text)) ILIKE '%' || search || '%' - or ownr_fn ILIKE '%' || search || '%' - or ownr_ln ILIKE '%' || search || '%' - or ownr_co_nm ILIKE '%' || search || '%' - or clm_no ILIKE '%' || search || '%' - or v_make_desc ILIKE '%' || search || '%' - or v_model_desc ILIKE '%' || search || '%' - OR plate_no ILIKE '%' || search || '%' - ORDER BY ro_number ILIKE '%' || search || '%' - OR NULL, - (cast(est_number as text)) ILIKE '%' || search || '%' - OR NULL, - ownr_ln ILIKE '%' || search || '%' - OR null, - ownr_co_nm ILIKE '%' || search || '%' - OR NULL, - ownr_fn ILIKE '%' || search || '%' - OR NULL, - clm_no ILIKE '%' || search || '%' - OR NULL, - v_make_desc ILIKE '%' || search || '%' - OR NULL, - v_model_desc ILIKE '%' || search || '%' - OR NULL, - plate_no ILIKE '%' || search || '%' - OR NULL; - end if; - END $function$; - type: run_sql diff --git a/hasura/migrations/1601918477756_run_sql_migration/down.yaml b/hasura/migrations/1601918477756_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1601918477756_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1601918477756_run_sql_migration/up.yaml b/hasura/migrations/1601918477756_run_sql_migration/up.yaml deleted file mode 100644 index c7e841dff..000000000 --- a/hasura/migrations/1601918477756_run_sql_migration/up.yaml +++ /dev/null @@ -1,14 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_vehicles(search text)\n RETURNS - SETOF vehicles\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search - = '' then\n return query select * from vehicles ;\n else \n return query - \n \n \n\n SELECT *\nFROM vehicles\nWHERE v_vin ILIKE '%' || search - || '%'\n or plate_no ILIKE '%' || search || '%'\n or v_make_desc ILIKE - '%' || search || '%'\n or v_model_desc ILIKE '%' || search || '%'\n \n - \ ORDER BY v_vin ILIKE '%' || search || '%'\n OR NULL,\n plate_no ILIKE - '%' || search || '%'\n OR NULL,\n v_model_desc ILIKE '%' || search - || '%'\n OR NULL,\n v_make_desc ILIKE '%' || search || '%'\n OR null;\n\n\n\n\n\n\n\n - \ end if;\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1601928069594_alter_table_public_available_jobs_add_column_ins_co_nm/down.yaml b/hasura/migrations/1601928069594_alter_table_public_available_jobs_add_column_ins_co_nm/down.yaml deleted file mode 100644 index 9ba3b36da..000000000 --- a/hasura/migrations/1601928069594_alter_table_public_available_jobs_add_column_ins_co_nm/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."available_jobs" DROP COLUMN "ins_co_nm"; - type: run_sql diff --git a/hasura/migrations/1601928069594_alter_table_public_available_jobs_add_column_ins_co_nm/up.yaml b/hasura/migrations/1601928069594_alter_table_public_available_jobs_add_column_ins_co_nm/up.yaml deleted file mode 100644 index 50a3d33c8..000000000 --- a/hasura/migrations/1601928069594_alter_table_public_available_jobs_add_column_ins_co_nm/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."available_jobs" ADD COLUMN "ins_co_nm" text NULL; - type: run_sql diff --git a/hasura/migrations/1601928079284_update_permission_user_public_table_available_jobs/down.yaml b/hasura/migrations/1601928079284_update_permission_user_public_table_available_jobs/down.yaml deleted file mode 100644 index 7d4619ec6..000000000 --- a/hasura/migrations/1601928079284_update_permission_user_public_table_available_jobs/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - uploaded_by - - cieca_id - - bodyshopid - - est_data - - issupplement - - jobid - - supplement_number - - ownr_name - - vehicle_info - - clm_amt - - clm_no - - source_system - set: {} - role: user - table: - name: available_jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1601928079284_update_permission_user_public_table_available_jobs/up.yaml b/hasura/migrations/1601928079284_update_permission_user_public_table_available_jobs/up.yaml deleted file mode 100644 index c9e93cebd..000000000 --- a/hasura/migrations/1601928079284_update_permission_user_public_table_available_jobs/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - cieca_id - - clm_amt - - clm_no - - created_at - - est_data - - id - - ins_co_nm - - issupplement - - jobid - - ownr_name - - source_system - - supplement_number - - updated_at - - uploaded_by - - vehicle_info - set: {} - role: user - table: - name: available_jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1601928094828_update_permission_user_public_table_available_jobs/down.yaml b/hasura/migrations/1601928094828_update_permission_user_public_table_available_jobs/down.yaml deleted file mode 100644 index e27919805..000000000 --- a/hasura/migrations/1601928094828_update_permission_user_public_table_available_jobs/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - issupplement - - supplement_number - - est_data - - clm_amt - - cieca_id - - clm_no - - ownr_name - - source_system - - uploaded_by - - vehicle_info - - created_at - - updated_at - - bodyshopid - - id - - jobid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: available_jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1601928094828_update_permission_user_public_table_available_jobs/up.yaml b/hasura/migrations/1601928094828_update_permission_user_public_table_available_jobs/up.yaml deleted file mode 100644 index 19f6031a3..000000000 --- a/hasura/migrations/1601928094828_update_permission_user_public_table_available_jobs/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - cieca_id - - clm_amt - - clm_no - - created_at - - est_data - - id - - ins_co_nm - - issupplement - - jobid - - ownr_name - - source_system - - supplement_number - - updated_at - - uploaded_by - - vehicle_info - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: available_jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1601928115551_update_permission_user_public_table_available_jobs/down.yaml b/hasura/migrations/1601928115551_update_permission_user_public_table_available_jobs/down.yaml deleted file mode 100644 index ea3838750..000000000 --- a/hasura/migrations/1601928115551_update_permission_user_public_table_available_jobs/down.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - cieca_id - - clm_amt - - est_data - - issupplement - - ownr_name - - source_system - - supplement_number - - uploaded_by - - vehicle_info - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: available_jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1601928115551_update_permission_user_public_table_available_jobs/up.yaml b/hasura/migrations/1601928115551_update_permission_user_public_table_available_jobs/up.yaml deleted file mode 100644 index d4293e24d..000000000 --- a/hasura/migrations/1601928115551_update_permission_user_public_table_available_jobs/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: available_jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - cieca_id - - clm_amt - - est_data - - ins_co_nm - - issupplement - - ownr_name - - source_system - - supplement_number - - uploaded_by - - vehicle_info - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: available_jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1601941700206_alter_table_public_vendors_drop_column_display_name/down.yaml b/hasura/migrations/1601941700206_alter_table_public_vendors_drop_column_display_name/down.yaml deleted file mode 100644 index 291ea9573..000000000 --- a/hasura/migrations/1601941700206_alter_table_public_vendors_drop_column_display_name/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ADD COLUMN "display_name" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "display_name" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1601941700206_alter_table_public_vendors_drop_column_display_name/up.yaml b/hasura/migrations/1601941700206_alter_table_public_vendors_drop_column_display_name/up.yaml deleted file mode 100644 index a5cdda1f4..000000000 --- a/hasura/migrations/1601941700206_alter_table_public_vendors_drop_column_display_name/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - read_only: false - sql: ALTER TABLE "public"."vendors" DROP COLUMN "display_name" CASCADE; - type: run_sql diff --git a/hasura/migrations/1602196074485_alter_table_public_bodyshops_add_column_schedule_start_time/down.yaml b/hasura/migrations/1602196074485_alter_table_public_bodyshops_add_column_schedule_start_time/down.yaml deleted file mode 100644 index b88e99456..000000000 --- a/hasura/migrations/1602196074485_alter_table_public_bodyshops_add_column_schedule_start_time/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "schedule_start_time"; - type: run_sql diff --git a/hasura/migrations/1602196074485_alter_table_public_bodyshops_add_column_schedule_start_time/up.yaml b/hasura/migrations/1602196074485_alter_table_public_bodyshops_add_column_schedule_start_time/up.yaml deleted file mode 100644 index 5eaf4970d..000000000 --- a/hasura/migrations/1602196074485_alter_table_public_bodyshops_add_column_schedule_start_time/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "schedule_start_time" timestamptz - NULL; - type: run_sql diff --git a/hasura/migrations/1602196087643_alter_table_public_bodyshops_add_column_schedule_end_time/down.yaml b/hasura/migrations/1602196087643_alter_table_public_bodyshops_add_column_schedule_end_time/down.yaml deleted file mode 100644 index ae46e6567..000000000 --- a/hasura/migrations/1602196087643_alter_table_public_bodyshops_add_column_schedule_end_time/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "schedule_end_time"; - type: run_sql diff --git a/hasura/migrations/1602196087643_alter_table_public_bodyshops_add_column_schedule_end_time/up.yaml b/hasura/migrations/1602196087643_alter_table_public_bodyshops_add_column_schedule_end_time/up.yaml deleted file mode 100644 index 3d06fe40f..000000000 --- a/hasura/migrations/1602196087643_alter_table_public_bodyshops_add_column_schedule_end_time/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "schedule_end_time" timestamptz - NULL; - type: run_sql diff --git a/hasura/migrations/1602196105066_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1602196105066_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 2b690bd5e..000000000 --- a/hasura/migrations/1602196105066_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,72 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1602196105066_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1602196105066_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index b595b5e10..000000000 --- a/hasura/migrations/1602196105066_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1602196112070_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1602196112070_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 49004b66e..000000000 --- a/hasura/migrations/1602196112070_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,66 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1602196112070_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1602196112070_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 660df165c..000000000 --- a/hasura/migrations/1602196112070_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,68 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1606890436428_alter_table_public_vendors_add_column_phone/down.yaml b/hasura/migrations/1606890436428_alter_table_public_vendors_add_column_phone/down.yaml deleted file mode 100644 index 676f81302..000000000 --- a/hasura/migrations/1606890436428_alter_table_public_vendors_add_column_phone/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" DROP COLUMN "phone"; - type: run_sql diff --git a/hasura/migrations/1606890436428_alter_table_public_vendors_add_column_phone/up.yaml b/hasura/migrations/1606890436428_alter_table_public_vendors_add_column_phone/up.yaml deleted file mode 100644 index 98a36109d..000000000 --- a/hasura/migrations/1606890436428_alter_table_public_vendors_add_column_phone/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ADD COLUMN "phone" text NULL; - type: run_sql diff --git a/hasura/migrations/1606890446033_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1606890446033_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 11e8160ff..000000000 --- a/hasura/migrations/1606890446033_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - favorite - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1606890446033_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1606890446033_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 30c7bca5d..000000000 --- a/hasura/migrations/1606890446033_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - due_date - - favorite - - discount - - prompt_discount - - city - - cost_center - - country - - email - - name - - phone - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1606890454484_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1606890454484_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index d9771b352..000000000 --- a/hasura/migrations/1606890454484_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - favorite - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1606890454484_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1606890454484_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index b8a37c4c9..000000000 --- a/hasura/migrations/1606890454484_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1606890462598_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1606890462598_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 99f8aa3ff..000000000 --- a/hasura/migrations/1606890462598_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - favorite - - id - - name - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1606890462598_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1606890462598_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 822072290..000000000 --- a/hasura/migrations/1606890462598_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1606960912111_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1606960912111_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 8b1ee9353..000000000 --- a/hasura/migrations/1606960912111_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - due_date - - favorite - - discount - - prompt_discount - - city - - cost_center - - country - - display_name - - email - - name - - phone - - state - - street1 - - street2 - - taxid - - terms - - zip - - created_at - - updated_at - - bodyshopid - - id - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1606960912111_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1606960912111_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 88c33a532..000000000 --- a/hasura/migrations/1606960912111_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1606960921681_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1606960921681_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 203bf00fb..000000000 --- a/hasura/migrations/1606960921681_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - favorite - - id - - name - - phone - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1606960921681_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1606960921681_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index b8a37c4c9..000000000 --- a/hasura/migrations/1606960921681_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1606960929621_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1606960929621_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index b84d17fba..000000000 --- a/hasura/migrations/1606960929621_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - display_name - - due_date - - email - - favorite - - id - - name - - phone - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1606960929621_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1606960929621_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 822072290..000000000 --- a/hasura/migrations/1606960929621_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1607529216657_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1607529216657_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 13f08fc80..000000000 --- a/hasura/migrations/1607529216657_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,64 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_insert_permission -- args: - permission: - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - agreementnumber - - courtesycarid - - jobid - - status - - start - - scheduledreturn - - actualreturn - - kmstart - - kmend - - driver_dlnumber - - driver_dlexpiry - - driver_dlst - - driver_fn - - driver_ln - - driver_addr1 - - driver_addr2 - - driver_city - - driver_state - - driver_zip - - driver_ph1 - - driver_dob - - cc_num - - cc_expiry - - cc_cardholder - - contract_date - - dailyrate - - actax - - dailyfreekm - - refuelcharge - - excesskmrate - - cleanupcharge - - damagewaiver - - federaltax - - statetax - - localtax - - coverage - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1607529216657_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1607529216657_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 5ee00e237..000000000 --- a/hasura/migrations/1607529216657_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,61 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_insert_permission -- args: - permission: - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1607529229183_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1607529229183_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index a75a006db..000000000 --- a/hasura/migrations/1607529229183_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,65 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - contract_date - - driver_dlexpiry - - driver_dob - - agreementnumber - - dailyfreekm - - actax - - cleanupcharge - - coverage - - dailyrate - - damagewaiver - - excesskmrate - - federaltax - - kmend - - kmstart - - localtax - - refuelcharge - - statetax - - cc_cardholder - - cc_expiry - - cc_num - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlnumber - - driver_dlst - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - status - - actualreturn - - created_at - - scheduledreturn - - start - - updated_at - - courtesycarid - - id - - jobid - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1607529229183_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1607529229183_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 9bed1820c..000000000 --- a/hasura/migrations/1607529229183_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,62 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1607529236512_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1607529236512_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 686a39ac4..000000000 --- a/hasura/migrations/1607529236512_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,64 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_update_permission -- args: - permission: - columns: - - contract_date - - driver_dlexpiry - - driver_dob - - agreementnumber - - dailyfreekm - - actax - - cleanupcharge - - coverage - - dailyrate - - damagewaiver - - excesskmrate - - federaltax - - kmend - - kmstart - - localtax - - refuelcharge - - statetax - - cc_cardholder - - cc_expiry - - cc_num - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlnumber - - driver_dlst - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - status - - actualreturn - - created_at - - scheduledreturn - - start - - updated_at - - courtesycarid - - id - - jobid - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_update_permission diff --git a/hasura/migrations/1607529236512_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1607529236512_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index d270cf269..000000000 --- a/hasura/migrations/1607529236512_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,61 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_update_permission diff --git a/hasura/migrations/1607529251767_alter_table_public_cccontracts_drop_column_cc_num/down.yaml b/hasura/migrations/1607529251767_alter_table_public_cccontracts_drop_column_cc_num/down.yaml deleted file mode 100644 index 309ec5470..000000000 --- a/hasura/migrations/1607529251767_alter_table_public_cccontracts_drop_column_cc_num/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "cc_num" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "cc_num" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1607529251767_alter_table_public_cccontracts_drop_column_cc_num/up.yaml b/hasura/migrations/1607529251767_alter_table_public_cccontracts_drop_column_cc_num/up.yaml deleted file mode 100644 index 76ba89d71..000000000 --- a/hasura/migrations/1607529251767_alter_table_public_cccontracts_drop_column_cc_num/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "cc_num" CASCADE; - type: run_sql diff --git a/hasura/migrations/1607529263054_alter_table_public_cccontracts_drop_column_cc_expiry/down.yaml b/hasura/migrations/1607529263054_alter_table_public_cccontracts_drop_column_cc_expiry/down.yaml deleted file mode 100644 index 9a32a7973..000000000 --- a/hasura/migrations/1607529263054_alter_table_public_cccontracts_drop_column_cc_expiry/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "cc_expiry" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "cc_expiry" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1607529263054_alter_table_public_cccontracts_drop_column_cc_expiry/up.yaml b/hasura/migrations/1607529263054_alter_table_public_cccontracts_drop_column_cc_expiry/up.yaml deleted file mode 100644 index 976bd0ced..000000000 --- a/hasura/migrations/1607529263054_alter_table_public_cccontracts_drop_column_cc_expiry/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "cc_expiry" CASCADE; - type: run_sql diff --git a/hasura/migrations/1607529272767_alter_table_public_cccontracts_drop_column_cc_cardholder/down.yaml b/hasura/migrations/1607529272767_alter_table_public_cccontracts_drop_column_cc_cardholder/down.yaml deleted file mode 100644 index f99ef97d2..000000000 --- a/hasura/migrations/1607529272767_alter_table_public_cccontracts_drop_column_cc_cardholder/down.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "cc_cardholder" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "cc_cardholder" DROP NOT - NULL; - type: run_sql diff --git a/hasura/migrations/1607529272767_alter_table_public_cccontracts_drop_column_cc_cardholder/up.yaml b/hasura/migrations/1607529272767_alter_table_public_cccontracts_drop_column_cc_cardholder/up.yaml deleted file mode 100644 index d14e4624e..000000000 --- a/hasura/migrations/1607529272767_alter_table_public_cccontracts_drop_column_cc_cardholder/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "cc_cardholder" CASCADE; - type: run_sql diff --git a/hasura/migrations/1607535095538_alter_table_public_courtesycars_alter_column_fuel/down.yaml b/hasura/migrations/1607535095538_alter_table_public_courtesycars_alter_column_fuel/down.yaml deleted file mode 100644 index 338a3f9df..000000000 --- a/hasura/migrations/1607535095538_alter_table_public_courtesycars_alter_column_fuel/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."courtesycars" ALTER COLUMN "fuel" SET DEFAULT - 1; - type: run_sql diff --git a/hasura/migrations/1607535095538_alter_table_public_courtesycars_alter_column_fuel/up.yaml b/hasura/migrations/1607535095538_alter_table_public_courtesycars_alter_column_fuel/up.yaml deleted file mode 100644 index abb1a4773..000000000 --- a/hasura/migrations/1607535095538_alter_table_public_courtesycars_alter_column_fuel/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."courtesycars" ALTER COLUMN "fuel" SET DEFAULT - 100; - type: run_sql diff --git a/hasura/migrations/1607535335410_alter_table_public_cccontracts_add_column_fuelout/down.yaml b/hasura/migrations/1607535335410_alter_table_public_cccontracts_add_column_fuelout/down.yaml deleted file mode 100644 index 0ed274558..000000000 --- a/hasura/migrations/1607535335410_alter_table_public_cccontracts_add_column_fuelout/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "fuelout"; - type: run_sql diff --git a/hasura/migrations/1607535335410_alter_table_public_cccontracts_add_column_fuelout/up.yaml b/hasura/migrations/1607535335410_alter_table_public_cccontracts_add_column_fuelout/up.yaml deleted file mode 100644 index 8f6e973f3..000000000 --- a/hasura/migrations/1607535335410_alter_table_public_cccontracts_add_column_fuelout/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "fuelout" numeric NOT NULL - DEFAULT 100; - type: run_sql diff --git a/hasura/migrations/1607535345739_alter_table_public_cccontracts_add_column_fuelin/down.yaml b/hasura/migrations/1607535345739_alter_table_public_cccontracts_add_column_fuelin/down.yaml deleted file mode 100644 index 5507b7088..000000000 --- a/hasura/migrations/1607535345739_alter_table_public_cccontracts_add_column_fuelin/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "fuelin"; - type: run_sql diff --git a/hasura/migrations/1607535345739_alter_table_public_cccontracts_add_column_fuelin/up.yaml b/hasura/migrations/1607535345739_alter_table_public_cccontracts_add_column_fuelin/up.yaml deleted file mode 100644 index 9c70869ca..000000000 --- a/hasura/migrations/1607535345739_alter_table_public_cccontracts_add_column_fuelin/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "fuelin" numeric NOT NULL DEFAULT - 0; - type: run_sql diff --git a/hasura/migrations/1607535461810_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1607535461810_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 5ee00e237..000000000 --- a/hasura/migrations/1607535461810_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,61 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_insert_permission -- args: - permission: - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1607535461810_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1607535461810_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 17c8bdd8c..000000000 --- a/hasura/migrations/1607535461810_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,63 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_insert_permission -- args: - permission: - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1607535477424_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1607535477424_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 9bed1820c..000000000 --- a/hasura/migrations/1607535477424_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,62 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1607535477424_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1607535477424_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index e82037eb2..000000000 --- a/hasura/migrations/1607535477424_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,64 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1607535485748_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1607535485748_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index d270cf269..000000000 --- a/hasura/migrations/1607535485748_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,61 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_update_permission diff --git a/hasura/migrations/1607535485748_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1607535485748_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 36fe09f7d..000000000 --- a/hasura/migrations/1607535485748_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,63 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_update_permission diff --git a/hasura/migrations/1608161228998_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1608161228998_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index f3d0a358e..000000000 --- a/hasura/migrations/1608161228998_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - alt_transport - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1608161228998_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1608161228998_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 6ede145d6..000000000 --- a/hasura/migrations/1608161228998_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - set: {} - role: user - table: - name: appointments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1608161238714_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1608161238714_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index e87257348..000000000 --- a/hasura/migrations/1608161238714_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - alt_transport - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1608161238714_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1608161238714_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 049d91b6a..000000000 --- a/hasura/migrations/1608161238714_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: appointments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1608161255330_update_permission_user_public_table_appointments/down.yaml b/hasura/migrations/1608161255330_update_permission_user_public_table_appointments/down.yaml deleted file mode 100644 index 0b3797e50..000000000 --- a/hasura/migrations/1608161255330_update_permission_user_public_table_appointments/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - alt_transport - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1608161255330_update_permission_user_public_table_appointments/up.yaml b/hasura/migrations/1608161255330_update_permission_user_public_table_appointments/up.yaml deleted file mode 100644 index 68d734d03..000000000 --- a/hasura/migrations/1608161255330_update_permission_user_public_table_appointments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: appointments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: appointments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1608161269241_alter_table_public_appointments_drop_column_alt_transport/down.yaml b/hasura/migrations/1608161269241_alter_table_public_appointments_drop_column_alt_transport/down.yaml deleted file mode 100644 index 6e14563dc..000000000 --- a/hasura/migrations/1608161269241_alter_table_public_appointments_drop_column_alt_transport/down.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."appointments" ADD COLUMN "alt_transport" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."appointments" ALTER COLUMN "alt_transport" DROP NOT - NULL; - type: run_sql diff --git a/hasura/migrations/1608161269241_alter_table_public_appointments_drop_column_alt_transport/up.yaml b/hasura/migrations/1608161269241_alter_table_public_appointments_drop_column_alt_transport/up.yaml deleted file mode 100644 index c44cdd3a6..000000000 --- a/hasura/migrations/1608161269241_alter_table_public_appointments_drop_column_alt_transport/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."appointments" DROP COLUMN "alt_transport" CASCADE; - type: run_sql diff --git a/hasura/migrations/1608161391053_alter_table_public_jobs_add_column_alt_transport/down.yaml b/hasura/migrations/1608161391053_alter_table_public_jobs_add_column_alt_transport/down.yaml deleted file mode 100644 index 5e0c12caa..000000000 --- a/hasura/migrations/1608161391053_alter_table_public_jobs_add_column_alt_transport/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "alt_transport"; - type: run_sql diff --git a/hasura/migrations/1608161391053_alter_table_public_jobs_add_column_alt_transport/up.yaml b/hasura/migrations/1608161391053_alter_table_public_jobs_add_column_alt_transport/up.yaml deleted file mode 100644 index 46aa5f5c9..000000000 --- a/hasura/migrations/1608161391053_alter_table_public_jobs_add_column_alt_transport/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "alt_transport" text NULL; - type: run_sql diff --git a/hasura/migrations/1608161407237_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1608161407237_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 6aac1b887..000000000 --- a/hasura/migrations/1608161407237_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1608161407237_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1608161407237_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index bf11fa8b6..000000000 --- a/hasura/migrations/1608161407237_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1608161439192_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1608161439192_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index e0264031c..000000000 --- a/hasura/migrations/1608161439192_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1608161439192_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1608161439192_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index f2e87d5df..000000000 --- a/hasura/migrations/1608161439192_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,264 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1608161448390_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1608161448390_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 244d65f4a..000000000 --- a/hasura/migrations/1608161448390_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1608161448390_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1608161448390_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 1fece9202..000000000 --- a/hasura/migrations/1608161448390_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1608179192407_drop_function_public_search_owners/down.yaml b/hasura/migrations/1608179192407_drop_function_public_search_owners/down.yaml deleted file mode 100644 index aed18c977..000000000 --- a/hasura/migrations/1608179192407_drop_function_public_search_owners/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_owners(search text)\n RETURNS SETOF - owners\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search = '' - then\n return query select * from owners ;\n else \n return query SELECT\n - \ *\nFROM\n owners\nWHERE\n search <% (ownr_fn) OR\n search <% (ownr_ln) - OR\n search <% (ownr_co_nm) OR\n search <% (ownr_ph1) OR\n search <% (ownr_addr1);\n - \ end if;\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1608179192407_drop_function_public_search_owners/up.yaml b/hasura/migrations/1608179192407_drop_function_public_search_owners/up.yaml deleted file mode 100644 index 85813ac06..000000000 --- a/hasura/migrations/1608179192407_drop_function_public_search_owners/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP FUNCTION "public"."search_owners"("pg_catalog"."text"); - type: run_sql diff --git a/hasura/migrations/1608179312131_run_sql_migration/down.yaml b/hasura/migrations/1608179312131_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608179312131_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608179312131_run_sql_migration/up.yaml b/hasura/migrations/1608179312131_run_sql_migration/up.yaml deleted file mode 100644 index cddb2e751..000000000 --- a/hasura/migrations/1608179312131_run_sql_migration/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_owners (search text)\n\tRETURNS - SETOF owners\n\tLANGUAGE plpgsql\n\tSTABLE\n\tAS $FUNCTION$\nBEGIN\n\tIF search - = '' THEN\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\towners;\n\tELSE\n\t\tRETURN - query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\towners\n\t\tWHERE\n\t\t\townr_ln - ILIKE '%' || search || '%'\n\t\t\tOR ownr_fn ILIKE '%' || search || '%'\n\t\t\tOR - ownr_fn ILIKE '%' || search || '%'\n\t\t\tOR ownr_co_nm ILIKE '%' || search - || '%'\n\t\t\tOR ownr_ph1 ILIKE '%' || search || '%'\n\t\t\tOR ownr_addr1 ILIKE - '%' || search || '%'\n\t\tORDER BY\n\t\t\townr_ln ILIKE '%' || search || '%'\n\t\t\tOR - NULL,\n\t\t\townr_fn ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\townr_co_nm - ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\townr_fn ILIKE '%' || search - || '%'\n\t\t\tOR NULL,\n\t\t\townr_ph1 ILIKE '%' || search || '%'\n\t\t\tOR - NULL,\n\t\t\townr_addr1 ILIKE '%' || search || '%'\n\t\t\tOR NULL;\n\tEND IF;\nEND - $FUNCTION$;" - type: run_sql diff --git a/hasura/migrations/1608179336471_run_sql_migration/down.yaml b/hasura/migrations/1608179336471_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608179336471_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608179336471_run_sql_migration/up.yaml b/hasura/migrations/1608179336471_run_sql_migration/up.yaml deleted file mode 100644 index 1d77c7c6d..000000000 --- a/hasura/migrations/1608179336471_run_sql_migration/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_owners (search text)\n\tRETURNS - SETOF owners\n\tLANGUAGE plpgsql\n\tSTABLE\n\tAS $FUNCTION$\nBEGIN\n\tIF search - = '' THEN\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\towners;\n\tELSE\n\t\tRETURN - query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\towners\n\t\tWHERE\n\t\t\townr_ln - ILIKE '%' || search || '%'\n\t\t\tOR ownr_fn ILIKE '%' || search || '%'\n\t\t\tOR - ownr_fn ILIKE '%' || search || '%'\n\t\t\tOR ownr_co_nm ILIKE '%' || search - || '%'\n\t\t\tOR ownr_ph1 ILIKE '%' || search || '%'\n\t\t\tOR ownr_addr1 ILIKE - '%' || search || '%'\n\t\tORDER BY\n\t\t\townr_ln ILIKE '%' || search || '%'\n\t\t\tOR - NULL,\n\t\t\townr_fn ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\townr_co_nm - ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\townr_fn ILIKE '%' || search - || '%'\n\t\t\tOR NULL,\n\t\t\townr_ph1 ILIKE '%' || search || '%'\n\t\t\tOR - NULL,\n\t\t\townr_addr1 ILIKE '%' || search || '%'\n\t\t\tOR NULL;\n\tEND IF;\nEND - $FUNCTION$;" - type: run_sql -- args: - name: search_owners - schema: public - type: track_function diff --git a/hasura/migrations/1608179815354_run_sql_migration/down.yaml b/hasura/migrations/1608179815354_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608179815354_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608179815354_run_sql_migration/up.yaml b/hasura/migrations/1608179815354_run_sql_migration/up.yaml deleted file mode 100644 index 8acefe0ed..000000000 --- a/hasura/migrations/1608179815354_run_sql_migration/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_owners (search text)\n\tRETURNS - SETOF owners\n\tLANGUAGE plpgsql\n\tSTABLE\n\tAS $FUNCTION$\nBEGIN\n\tIF search - = '' THEN\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\towners;\n\tELSE\n\t\tRETURN - query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\towners\n\t\tWHERE (ownr_fn || ' - ' || ownr_ln)\n\t\tILIKE '%' || search || '%'\n\t\t\tOR ownr_ln ILIKE '%' || - search || '%'\n\t\t\tOR ownr_fn ILIKE '%' || search || '%'\n\t\t\tOR ownr_fn - ILIKE '%' || search || '%'\n\t\t\tOR ownr_co_nm ILIKE '%' || search || '%'\n\t\t\tOR - ownr_ph1 ILIKE '%' || search || '%'\n\t\t\tOR ownr_addr1 ILIKE '%' || search - || '%'\n\t\tORDER BY\n\t\t\t(ownr_fn || ' ' || ownr_ln)\n\t\t\tILIKE '%' || - search || '%'\n\t\t\tOR NULL,\n\t\t\townr_ln ILIKE '%' || search || '%'\n\t\t\tOR - NULL,\n\t\t\townr_fn ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\townr_co_nm - ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\townr_fn ILIKE '%' || search - || '%'\n\t\t\tOR NULL,\n\t\t\townr_ph1 ILIKE '%' || search || '%'\n\t\t\tOR - NULL,\n\t\t\townr_addr1 ILIKE '%' || search || '%'\n\t\t\tOR NULL;\n\tEND IF;\nEND\n$FUNCTION$;" - type: run_sql diff --git a/hasura/migrations/1608740311503_alter_table_public_bills_add_column_isinhouse/down.yaml b/hasura/migrations/1608740311503_alter_table_public_bills_add_column_isinhouse/down.yaml deleted file mode 100644 index fc4449e03..000000000 --- a/hasura/migrations/1608740311503_alter_table_public_bills_add_column_isinhouse/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bills" DROP COLUMN "isinhouse"; - type: run_sql diff --git a/hasura/migrations/1608740311503_alter_table_public_bills_add_column_isinhouse/up.yaml b/hasura/migrations/1608740311503_alter_table_public_bills_add_column_isinhouse/up.yaml deleted file mode 100644 index ff82fb10e..000000000 --- a/hasura/migrations/1608740311503_alter_table_public_bills_add_column_isinhouse/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bills" ADD COLUMN "isinhouse" boolean NOT NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1608740361292_update_permission_user_public_table_bills/down.yaml b/hasura/migrations/1608740361292_update_permission_user_public_table_bills/down.yaml deleted file mode 100644 index c330bf854..000000000 --- a/hasura/migrations/1608740361292_update_permission_user_public_table_bills/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bills - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - set: {} - role: user - table: - name: bills - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1608740361292_update_permission_user_public_table_bills/up.yaml b/hasura/migrations/1608740361292_update_permission_user_public_table_bills/up.yaml deleted file mode 100644 index 4ae0f86f9..000000000 --- a/hasura/migrations/1608740361292_update_permission_user_public_table_bills/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: bills - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - isinhouse - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - set: {} - role: user - table: - name: bills - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1608740373347_update_permission_user_public_table_bills/down.yaml b/hasura/migrations/1608740373347_update_permission_user_public_table_bills/down.yaml deleted file mode 100644 index c47a3967d..000000000 --- a/hasura/migrations/1608740373347_update_permission_user_public_table_bills/down.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: bills - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: bills - schema: public - type: create_select_permission diff --git a/hasura/migrations/1608740373347_update_permission_user_public_table_bills/up.yaml b/hasura/migrations/1608740373347_update_permission_user_public_table_bills/up.yaml deleted file mode 100644 index ebc89d0e3..000000000 --- a/hasura/migrations/1608740373347_update_permission_user_public_table_bills/up.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: bills - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - isinhouse - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: bills - schema: public - type: create_select_permission diff --git a/hasura/migrations/1608740385538_update_permission_user_public_table_bills/down.yaml b/hasura/migrations/1608740385538_update_permission_user_public_table_bills/down.yaml deleted file mode 100644 index 432c2aa01..000000000 --- a/hasura/migrations/1608740385538_update_permission_user_public_table_bills/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: bills - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: bills - schema: public - type: create_update_permission diff --git a/hasura/migrations/1608740385538_update_permission_user_public_table_bills/up.yaml b/hasura/migrations/1608740385538_update_permission_user_public_table_bills/up.yaml deleted file mode 100644 index ca0eb70d4..000000000 --- a/hasura/migrations/1608740385538_update_permission_user_public_table_bills/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: bills - schema: public - type: drop_update_permission -- args: - permission: - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - isinhouse - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: bills - schema: public - type: create_update_permission diff --git a/hasura/migrations/1608740480171_run_sql_migration/down.yaml b/hasura/migrations/1608740480171_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608740480171_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608740480171_run_sql_migration/up.yaml b/hasura/migrations/1608740480171_run_sql_migration/up.yaml deleted file mode 100644 index 7e89bac75..000000000 --- a/hasura/migrations/1608740480171_run_sql_migration/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.assign_ibh_number()\r\n RETURNS trigger\r\n - LANGUAGE plpgsql\r\nAS $function$\r\n begin\r\n IF NEW.isinhouse - = true and (new.invoice_number is null or new.invoice_number = '') THEN\r\n - \ UPDATE counters\r\n\tSET count = count + 1 where shopid=new.shopid - AND countertype = 'ihbnum'\r\n\tRETURNING concat(prefix,count) into new.invoice_number;\r\n\r\n - \ END IF;\r\n RETURN NEW;\r\n END;\r\n $function$\r\n;" - type: run_sql diff --git a/hasura/migrations/1608740577735_run_sql_migration/down.yaml b/hasura/migrations/1608740577735_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608740577735_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608740577735_run_sql_migration/up.yaml b/hasura/migrations/1608740577735_run_sql_migration/up.yaml deleted file mode 100644 index 310e90b0f..000000000 --- a/hasura/migrations/1608740577735_run_sql_migration/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "create trigger bills_assign_ihb_num before\r\nupdate\r\n on\r\n public.bills - for each row execute procedure assign_ibh_number();" - type: run_sql diff --git a/hasura/migrations/1608740773551_run_sql_migration/down.yaml b/hasura/migrations/1608740773551_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608740773551_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608740773551_run_sql_migration/up.yaml b/hasura/migrations/1608740773551_run_sql_migration/up.yaml deleted file mode 100644 index 8e9e00f8c..000000000 --- a/hasura/migrations/1608740773551_run_sql_migration/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.assign_ibh_number()\r\n RETURNS trigger\r\n - LANGUAGE plpgsql\r\nAS $function$\r\n begin\r\n IF NEW.isinhouse - = true and (new.invoice_number is null or new.invoice_number = 'ih') THEN\r\n - \ UPDATE counters\r\n\tSET count = count + 1 where shopid=new.shopid - AND countertype = 'ihbnum'\r\n\tRETURNING concat(prefix,count) into new.invoice_number;\r\n\r\n - \ END IF;\r\n RETURN NEW;\r\n END;\r\n $function$\r\n;" - type: run_sql diff --git a/hasura/migrations/1608741009417_run_sql_migration/down.yaml b/hasura/migrations/1608741009417_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608741009417_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608741009417_run_sql_migration/up.yaml b/hasura/migrations/1608741009417_run_sql_migration/up.yaml deleted file mode 100644 index 79fb86b36..000000000 --- a/hasura/migrations/1608741009417_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - read_only: false - sql: drop trigger if exists bills_assign_ihb_num on bills; - type: run_sql diff --git a/hasura/migrations/1608741053957_run_sql_migration/down.yaml b/hasura/migrations/1608741053957_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608741053957_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608741053957_run_sql_migration/up.yaml b/hasura/migrations/1608741053957_run_sql_migration/up.yaml deleted file mode 100644 index 8af751e35..000000000 --- a/hasura/migrations/1608741053957_run_sql_migration/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "create trigger bills_assign_ihbnum before\r\ninsert\r\n on\r\n public.jobs - for each row execute procedure assign_ibh_number();" - type: run_sql diff --git a/hasura/migrations/1608741063718_run_sql_migration/down.yaml b/hasura/migrations/1608741063718_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608741063718_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608741063718_run_sql_migration/up.yaml b/hasura/migrations/1608741063718_run_sql_migration/up.yaml deleted file mode 100644 index 6351a66ea..000000000 --- a/hasura/migrations/1608741063718_run_sql_migration/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "create trigger bills_assign_ihbnum before\r\ninsert\r\n on\r\n public.bills - for each row execute procedure assign_ibh_number();" - type: run_sql diff --git a/hasura/migrations/1608741100308_run_sql_migration/down.yaml b/hasura/migrations/1608741100308_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608741100308_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608741100308_run_sql_migration/up.yaml b/hasura/migrations/1608741100308_run_sql_migration/up.yaml deleted file mode 100644 index 0e54aaa9e..000000000 --- a/hasura/migrations/1608741100308_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - read_only: false - sql: drop trigger if exists bills_assign_ihbnum on jobs; - type: run_sql diff --git a/hasura/migrations/1608741387779_run_sql_migration/down.yaml b/hasura/migrations/1608741387779_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608741387779_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608741387779_run_sql_migration/up.yaml b/hasura/migrations/1608741387779_run_sql_migration/up.yaml deleted file mode 100644 index e529f741c..000000000 --- a/hasura/migrations/1608741387779_run_sql_migration/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.assign_ibh_number()\r\n RETURNS trigger\r\n - LANGUAGE plpgsql\r\nAS $function$\r\n begin\r\n IF NEW.isinhouse - = true and (new.invoice_number is null or new.invoice_number = '') THEN\r\n - \ UPDATE counters\r\n\tSET count = count + 1\r\n\tfrom jobs\r\n\twhere - jobs.id=new.jobid and counters.shopid = jobs.shopid AND countertype = 'ihbnum'\r\n\tRETURNING - concat(prefix,count) into new.invoice_number;\r\n\r\n END IF;\r\n RETURN - NEW;\r\n END;\r\n $function$\r\n;" - type: run_sql diff --git a/hasura/migrations/1608741701614_run_sql_migration/down.yaml b/hasura/migrations/1608741701614_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608741701614_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608741701614_run_sql_migration/up.yaml b/hasura/migrations/1608741701614_run_sql_migration/up.yaml deleted file mode 100644 index 699edcff7..000000000 --- a/hasura/migrations/1608741701614_run_sql_migration/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.assign_ibh_number()\r\n RETURNS trigger\r\n - LANGUAGE plpgsql\r\nAS $function$\r\n begin\r\n IF NEW.isinhouse - = true and (new.invoice_number is null or new.invoice_number = '') THEN\r\n - \ UPDATE counters\r\n\tSET count = count + 1\r\n\tfrom bodyshops \r\n\twhere - bodyshops.id = (select shopid from jobs where jobs.id = new.jobid)\r\n\tAND - countertype = 'ihbnum'\r\n\tRETURNING concat(prefix,count) into new.invoice_number;\r\n\r\n - \ END IF;\r\n RETURN NEW;\r\n END;\r\n $function$\r\n;" - type: run_sql diff --git a/hasura/migrations/1608741738380_run_sql_migration/down.yaml b/hasura/migrations/1608741738380_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1608741738380_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1608741738380_run_sql_migration/up.yaml b/hasura/migrations/1608741738380_run_sql_migration/up.yaml deleted file mode 100644 index 9456d1abc..000000000 --- a/hasura/migrations/1608741738380_run_sql_migration/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.assign_ibh_number()\r\n RETURNS trigger\r\n - LANGUAGE plpgsql\r\nAS $function$\r\n begin\r\n IF NEW.isinhouse - = true and (new.invoice_number is null or new.invoice_number = 'ih') THEN\r\n - \ UPDATE counters\r\n\tSET count = count + 1\r\n\tfrom bodyshops \r\n\twhere - bodyshops.id = (select shopid from jobs where jobs.id = new.jobid)\r\n\tAND - countertype = 'ihbnum'\r\n\tRETURNING concat(prefix,count) into new.invoice_number;\r\n\r\n - \ END IF;\r\n RETURN NEW;\r\n END;\r\n $function$\r\n;" - type: run_sql diff --git a/hasura/migrations/1608765772036_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1608765772036_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 3822a6184..000000000 --- a/hasura/migrations/1608765772036_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - authid - - created_at - - dashboardlayout - - email - - fcmtokens - - updated_at - computed_fields: [] - filter: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1608765772036_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1608765772036_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 6fdc8d980..000000000 --- a/hasura/migrations/1608765772036_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - authid - - created_at - - dashboardlayout - - email - - fcmtokens - - updated_at - computed_fields: [] - filter: - associations: - bodyshop: - associations: - active: - _eq: true - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1609980609388_alter_table_public_bodyshops_add_column_imexshopid/down.yaml b/hasura/migrations/1609980609388_alter_table_public_bodyshops_add_column_imexshopid/down.yaml deleted file mode 100644 index e0d91252c..000000000 --- a/hasura/migrations/1609980609388_alter_table_public_bodyshops_add_column_imexshopid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "imexshopid"; - type: run_sql diff --git a/hasura/migrations/1609980609388_alter_table_public_bodyshops_add_column_imexshopid/up.yaml b/hasura/migrations/1609980609388_alter_table_public_bodyshops_add_column_imexshopid/up.yaml deleted file mode 100644 index cf4791447..000000000 --- a/hasura/migrations/1609980609388_alter_table_public_bodyshops_add_column_imexshopid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "imexshopid" text NULL UNIQUE; - type: run_sql diff --git a/hasura/migrations/1609980625366_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1609980625366_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index b595b5e10..000000000 --- a/hasura/migrations/1609980625366_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1609980625366_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1609980625366_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 0acc18430..000000000 --- a/hasura/migrations/1609980625366_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1610046845471_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1610046845471_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index bf11fa8b6..000000000 --- a/hasura/migrations/1610046845471_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1610046845471_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1610046845471_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 46b1a447a..000000000 --- a/hasura/migrations/1610046845471_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1610046883329_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1610046883329_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index f2e87d5df..000000000 --- a/hasura/migrations/1610046883329_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,264 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1610046883329_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1610046883329_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 159015d7a..000000000 --- a/hasura/migrations/1610046883329_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1610046900101_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1610046900101_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 1fece9202..000000000 --- a/hasura/migrations/1610046900101_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_number - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1610046900101_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1610046900101_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index c396ebece..000000000 --- a/hasura/migrations/1610046900101_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1610046982374_alter_table_public_jobs_drop_column_est_number/down.yaml b/hasura/migrations/1610046982374_alter_table_public_jobs_drop_column_est_number/down.yaml deleted file mode 100644 index a8f0f442b..000000000 --- a/hasura/migrations/1610046982374_alter_table_public_jobs_drop_column_est_number/down.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "est_number" int8; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "est_number" DROP NOT NULL; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "est_number" SET DEFAULT nextval('jobs_est_number_seq'::regclass); - type: run_sql diff --git a/hasura/migrations/1610046982374_alter_table_public_jobs_drop_column_est_number/up.yaml b/hasura/migrations/1610046982374_alter_table_public_jobs_drop_column_est_number/up.yaml deleted file mode 100644 index f04ffde2a..000000000 --- a/hasura/migrations/1610046982374_alter_table_public_jobs_drop_column_est_number/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "est_number" CASCADE; - type: run_sql diff --git a/hasura/migrations/1610061773237_run_sql_migration/down.yaml b/hasura/migrations/1610061773237_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1610061773237_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1610061773237_run_sql_migration/up.yaml b/hasura/migrations/1610061773237_run_sql_migration/up.yaml deleted file mode 100644 index 24364aad9..000000000 --- a/hasura/migrations/1610061773237_run_sql_migration/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - CREATE OR REPLACE FUNCTION public.search_jobs(search text) - RETURNS SETOF jobs - LANGUAGE plpgsql - STABLE - AS $function$ BEGIN if search = '' then return query - select * - from jobs j; - else return query - SELECT * - FROM jobs j2 - WHERE ro_number ILIKE '%' || search || '%' - or ownr_fn ILIKE '%' || search || '%' - or ownr_ln ILIKE '%' || search || '%' - or ownr_co_nm ILIKE '%' || search || '%' - or clm_no ILIKE '%' || search || '%' - or v_make_desc ILIKE '%' || search || '%' - or v_model_desc ILIKE '%' || search || '%' - OR plate_no ILIKE '%' || search || '%' - ORDER BY ro_number ILIKE '%' || search || '%' - OR NULL, - ownr_ln ILIKE '%' || search || '%' - OR null, - ownr_co_nm ILIKE '%' || search || '%' - OR NULL, - ownr_fn ILIKE '%' || search || '%' - OR NULL, - clm_no ILIKE '%' || search || '%' - OR NULL, - v_make_desc ILIKE '%' || search || '%' - OR NULL, - v_model_desc ILIKE '%' || search || '%' - OR NULL, - plate_no ILIKE '%' || search || '%' - OR NULL; - end if; - END $function$; - type: run_sql diff --git a/hasura/migrations/1610062707742_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1610062707742_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index 015c4e179..000000000 --- a/hasura/migrations/1610062707742_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - authlevel - - id - - shopid - - useremail - computed_fields: [] - filter: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1610062707742_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1610062707742_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index fcae8dd99..000000000 --- a/hasura/migrations/1610062707742_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - authlevel - - id - - shopid - - useremail - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1610065492233_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1610065492233_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index 9c02886e0..000000000 --- a/hasura/migrations/1610065492233_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - filter: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: associations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1610065492233_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1610065492233_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index 0175b1813..000000000 --- a/hasura/migrations/1610065492233_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - authlevel - filter: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: associations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1610126817563_drop_table_public_templates/down.yaml b/hasura/migrations/1610126817563_drop_table_public_templates/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1610126817563_drop_table_public_templates/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1610126817563_drop_table_public_templates/up.yaml b/hasura/migrations/1610126817563_drop_table_public_templates/up.yaml deleted file mode 100644 index 0b0c18598..000000000 --- a/hasura/migrations/1610126817563_drop_table_public_templates/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - read_only: false - sql: DROP TABLE "public"."templates"; - type: run_sql diff --git a/hasura/migrations/1610131746926_alter_table_public_parts_order_lines_add_column_part_type/down.yaml b/hasura/migrations/1610131746926_alter_table_public_parts_order_lines_add_column_part_type/down.yaml deleted file mode 100644 index 9e28cd02e..000000000 --- a/hasura/migrations/1610131746926_alter_table_public_parts_order_lines_add_column_part_type/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_order_lines" DROP COLUMN "part_type"; - type: run_sql diff --git a/hasura/migrations/1610131746926_alter_table_public_parts_order_lines_add_column_part_type/up.yaml b/hasura/migrations/1610131746926_alter_table_public_parts_order_lines_add_column_part_type/up.yaml deleted file mode 100644 index 0f41a529c..000000000 --- a/hasura/migrations/1610131746926_alter_table_public_parts_order_lines_add_column_part_type/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_order_lines" ADD COLUMN "part_type" text NULL; - type: run_sql diff --git a/hasura/migrations/1610131757812_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1610131757812_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index f30db5ad8..000000000 --- a/hasura/migrations/1610131757812_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_insert_permission -- args: - permission: - check: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1610131757812_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1610131757812_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 03a2bc485..000000000 --- a/hasura/migrations/1610131757812_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_insert_permission -- args: - permission: - check: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1610131767244_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1610131767244_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index 609697074..000000000 --- a/hasura/migrations/1610131767244_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - computed_fields: [] - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order_lines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1610131767244_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1610131767244_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 9d5d7c6a7..000000000 --- a/hasura/migrations/1610131767244_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - computed_fields: [] - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order_lines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1610131775615_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1610131775615_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index 09f99df03..000000000 --- a/hasura/migrations/1610131775615_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - quantity - - status - - updated_at - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1610131775615_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1610131775615_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 1277d7f95..000000000 --- a/hasura/migrations/1610131775615_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1610135319762_alter_table_public_jobs_add_column_lbr_adjustments/down.yaml b/hasura/migrations/1610135319762_alter_table_public_jobs_add_column_lbr_adjustments/down.yaml deleted file mode 100644 index 9f0131638..000000000 --- a/hasura/migrations/1610135319762_alter_table_public_jobs_add_column_lbr_adjustments/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "lbr_adjustments"; - type: run_sql diff --git a/hasura/migrations/1610135319762_alter_table_public_jobs_add_column_lbr_adjustments/up.yaml b/hasura/migrations/1610135319762_alter_table_public_jobs_add_column_lbr_adjustments/up.yaml deleted file mode 100644 index c075283eb..000000000 --- a/hasura/migrations/1610135319762_alter_table_public_jobs_add_column_lbr_adjustments/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "lbr_adjustments" jsonb NOT NULL DEFAULT - jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1610135335076_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1610135335076_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 46b1a447a..000000000 --- a/hasura/migrations/1610135335076_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1610135335076_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1610135335076_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 1446f80b1..000000000 --- a/hasura/migrations/1610135335076_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1610135347875_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1610135347875_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 159015d7a..000000000 --- a/hasura/migrations/1610135347875_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1610135347875_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1610135347875_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index eac2bb100..000000000 --- a/hasura/migrations/1610135347875_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,264 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1610135386514_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1610135386514_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index c396ebece..000000000 --- a/hasura/migrations/1610135386514_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1610135386514_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1610135386514_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 5dbd57336..000000000 --- a/hasura/migrations/1610135386514_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1610151515378_alter_table_public_bodyshops_add_column_default_adjustment_rate/down.yaml b/hasura/migrations/1610151515378_alter_table_public_bodyshops_add_column_default_adjustment_rate/down.yaml deleted file mode 100644 index 5573d6d5a..000000000 --- a/hasura/migrations/1610151515378_alter_table_public_bodyshops_add_column_default_adjustment_rate/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "default_adjustment_rate"; - type: run_sql diff --git a/hasura/migrations/1610151515378_alter_table_public_bodyshops_add_column_default_adjustment_rate/up.yaml b/hasura/migrations/1610151515378_alter_table_public_bodyshops_add_column_default_adjustment_rate/up.yaml deleted file mode 100644 index 088ae9774..000000000 --- a/hasura/migrations/1610151515378_alter_table_public_bodyshops_add_column_default_adjustment_rate/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "default_adjustment_rate" numeric - NULL; - type: run_sql diff --git a/hasura/migrations/1610151541751_alter_table_public_bodyshops_alter_column_default_adjustment_rate/down.yaml b/hasura/migrations/1610151541751_alter_table_public_bodyshops_alter_column_default_adjustment_rate/down.yaml deleted file mode 100644 index 5d447309b..000000000 --- a/hasura/migrations/1610151541751_alter_table_public_bodyshops_alter_column_default_adjustment_rate/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."bodyshops" ALTER COLUMN "default_adjustment_rate" - DROP DEFAULT; - type: run_sql diff --git a/hasura/migrations/1610151541751_alter_table_public_bodyshops_alter_column_default_adjustment_rate/up.yaml b/hasura/migrations/1610151541751_alter_table_public_bodyshops_alter_column_default_adjustment_rate/up.yaml deleted file mode 100644 index a96099d7b..000000000 --- a/hasura/migrations/1610151541751_alter_table_public_bodyshops_alter_column_default_adjustment_rate/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."bodyshops" ALTER COLUMN "default_adjustment_rate" - SET DEFAULT 0; - type: run_sql diff --git a/hasura/migrations/1610151569143_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1610151569143_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 0acc18430..000000000 --- a/hasura/migrations/1610151569143_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1610151569143_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1610151569143_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index c49b55fed..000000000 --- a/hasura/migrations/1610151569143_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1610151590206_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1610151590206_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 660df165c..000000000 --- a/hasura/migrations/1610151590206_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,68 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1610151590206_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1610151590206_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index ef19e6f61..000000000 --- a/hasura/migrations/1610151590206_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,69 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1610154781199_alter_table_public_jobs_alter_column_lbr_adjustments/down.yaml b/hasura/migrations/1610154781199_alter_table_public_jobs_alter_column_lbr_adjustments/down.yaml deleted file mode 100644 index 9c0fd5472..000000000 --- a/hasura/migrations/1610154781199_alter_table_public_jobs_alter_column_lbr_adjustments/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."jobs" ALTER COLUMN "lbr_adjustments" SET DEFAULT - jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1610154781199_alter_table_public_jobs_alter_column_lbr_adjustments/up.yaml b/hasura/migrations/1610154781199_alter_table_public_jobs_alter_column_lbr_adjustments/up.yaml deleted file mode 100644 index baa82ffbd..000000000 --- a/hasura/migrations/1610154781199_alter_table_public_jobs_alter_column_lbr_adjustments/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE ONLY "public"."jobs" ALTER COLUMN "lbr_adjustments" SET DEFAULT - jsonb_build_object(); - type: run_sql diff --git a/hasura/migrations/1611165627078_alter_table_public_joblines_add_column_manual_line/down.yaml b/hasura/migrations/1611165627078_alter_table_public_joblines_add_column_manual_line/down.yaml deleted file mode 100644 index c85404ff9..000000000 --- a/hasura/migrations/1611165627078_alter_table_public_joblines_add_column_manual_line/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" DROP COLUMN "manual_line"; - type: run_sql diff --git a/hasura/migrations/1611165627078_alter_table_public_joblines_add_column_manual_line/up.yaml b/hasura/migrations/1611165627078_alter_table_public_joblines_add_column_manual_line/up.yaml deleted file mode 100644 index 32d081b42..000000000 --- a/hasura/migrations/1611165627078_alter_table_public_joblines_add_column_manual_line/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."joblines" ADD COLUMN "manual_line" boolean NOT NULL - DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1611165639521_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1611165639521_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index ff9ac5fde..000000000 --- a/hasura/migrations/1611165639521_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,81 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1611165639521_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1611165639521_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index abd20d1ed..000000000 --- a/hasura/migrations/1611165639521_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,82 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - manual_line - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - set: {} - role: user - table: - name: joblines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1611165651041_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1611165651041_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 5c724e8f3..000000000 --- a/hasura/migrations/1611165651041_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,82 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1611165651041_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1611165651041_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 8bca3a998..000000000 --- a/hasura/migrations/1611165651041_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,83 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - manual_line - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: joblines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1611165680112_update_permission_user_public_table_joblines/down.yaml b/hasura/migrations/1611165680112_update_permission_user_public_table_joblines/down.yaml deleted file mode 100644 index 288f51729..000000000 --- a/hasura/migrations/1611165680112_update_permission_user_public_table_joblines/down.yaml +++ /dev/null @@ -1,81 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1611165680112_update_permission_user_public_table_joblines/up.yaml b/hasura/migrations/1611165680112_update_permission_user_public_table_joblines/up.yaml deleted file mode 100644 index 3dd70cec3..000000000 --- a/hasura/migrations/1611165680112_update_permission_user_public_table_joblines/up.yaml +++ /dev/null @@ -1,82 +0,0 @@ -- args: - role: user - table: - name: joblines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - manual_line - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: joblines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1611175609588_alter_table_public_billlines_add_column_deductedfromlbr/down.yaml b/hasura/migrations/1611175609588_alter_table_public_billlines_add_column_deductedfromlbr/down.yaml deleted file mode 100644 index 03d974c9e..000000000 --- a/hasura/migrations/1611175609588_alter_table_public_billlines_add_column_deductedfromlbr/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."billlines" DROP COLUMN "deductedfromlbr"; - type: run_sql diff --git a/hasura/migrations/1611175609588_alter_table_public_billlines_add_column_deductedfromlbr/up.yaml b/hasura/migrations/1611175609588_alter_table_public_billlines_add_column_deductedfromlbr/up.yaml deleted file mode 100644 index febcecd76..000000000 --- a/hasura/migrations/1611175609588_alter_table_public_billlines_add_column_deductedfromlbr/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."billlines" ADD COLUMN "deductedfromlbr" boolean NOT - NULL DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1611175625070_update_permission_user_public_table_billlines/down.yaml b/hasura/migrations/1611175625070_update_permission_user_public_table_billlines/down.yaml deleted file mode 100644 index b8f6ce79a..000000000 --- a/hasura/migrations/1611175625070_update_permission_user_public_table_billlines/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_insert_permission -- args: - permission: - check: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - billid - - joblineid - - line_desc - - quantity - - updated_at - set: {} - role: user - table: - name: billlines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1611175625070_update_permission_user_public_table_billlines/up.yaml b/hasura/migrations/1611175625070_update_permission_user_public_table_billlines/up.yaml deleted file mode 100644 index 283c766e9..000000000 --- a/hasura/migrations/1611175625070_update_permission_user_public_table_billlines/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_insert_permission -- args: - permission: - check: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - line_desc - - quantity - - updated_at - set: {} - role: user - table: - name: billlines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1611175633677_update_permission_user_public_table_billlines/down.yaml b/hasura/migrations/1611175633677_update_permission_user_public_table_billlines/down.yaml deleted file mode 100644 index 07d0a8f77..000000000 --- a/hasura/migrations/1611175633677_update_permission_user_public_table_billlines/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - billid - - joblineid - - line_desc - - quantity - - updated_at - computed_fields: [] - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: billlines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1611175633677_update_permission_user_public_table_billlines/up.yaml b/hasura/migrations/1611175633677_update_permission_user_public_table_billlines/up.yaml deleted file mode 100644 index 4404c8657..000000000 --- a/hasura/migrations/1611175633677_update_permission_user_public_table_billlines/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - line_desc - - quantity - - updated_at - computed_fields: [] - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: billlines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1611175641709_update_permission_user_public_table_billlines/down.yaml b/hasura/migrations/1611175641709_update_permission_user_public_table_billlines/down.yaml deleted file mode 100644 index ed7ecc9b1..000000000 --- a/hasura/migrations/1611175641709_update_permission_user_public_table_billlines/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_cost - - actual_price - - applicable_taxes - - cost_center - - created_at - - id - - billid - - joblineid - - line_desc - - quantity - - updated_at - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: billlines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1611175641709_update_permission_user_public_table_billlines/up.yaml b/hasura/migrations/1611175641709_update_permission_user_public_table_billlines/up.yaml deleted file mode 100644 index a3942892a..000000000 --- a/hasura/migrations/1611175641709_update_permission_user_public_table_billlines/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - line_desc - - quantity - - updated_at - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: billlines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1611248235643_alter_table_public_employees_add_column_rates/down.yaml b/hasura/migrations/1611248235643_alter_table_public_employees_add_column_rates/down.yaml deleted file mode 100644 index f0673aa76..000000000 --- a/hasura/migrations/1611248235643_alter_table_public_employees_add_column_rates/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."employees" DROP COLUMN "rates"; - type: run_sql diff --git a/hasura/migrations/1611248235643_alter_table_public_employees_add_column_rates/up.yaml b/hasura/migrations/1611248235643_alter_table_public_employees_add_column_rates/up.yaml deleted file mode 100644 index 8e95f1982..000000000 --- a/hasura/migrations/1611248235643_alter_table_public_employees_add_column_rates/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."employees" ADD COLUMN "rates" jsonb NOT NULL DEFAULT - jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1611248259535_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1611248259535_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index 71581edc3..000000000 --- a/hasura/migrations/1611248259535_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - - user_email - set: {} - role: user - table: - name: employees - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1611248259535_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1611248259535_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 0de1d741b..000000000 --- a/hasura/migrations/1611248259535_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - active - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - rates - - shopid - - termination_date - - updated_at - - user_email - set: {} - role: user - table: - name: employees - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1611248275728_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1611248275728_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index 8655d5eaf..000000000 --- a/hasura/migrations/1611248275728_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - - user_email - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: employees - schema: public - type: create_select_permission diff --git a/hasura/migrations/1611248275728_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1611248275728_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index dabd89bba..000000000 --- a/hasura/migrations/1611248275728_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - rates - - shopid - - termination_date - - updated_at - - user_email - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: employees - schema: public - type: create_select_permission diff --git a/hasura/migrations/1611248283963_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1611248283963_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index e0859b31d..000000000 --- a/hasura/migrations/1611248283963_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - base_rate - - cost_center - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - shopid - - termination_date - - updated_at - - user_email - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: employees - schema: public - type: create_update_permission diff --git a/hasura/migrations/1611248283963_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1611248283963_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 5c10dd4b7..000000000 --- a/hasura/migrations/1611248283963_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - rates - - shopid - - termination_date - - updated_at - - user_email - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: employees - schema: public - type: create_update_permission diff --git a/hasura/migrations/1611272576261_update_permission_user_public_table_bills/down.yaml b/hasura/migrations/1611272576261_update_permission_user_public_table_bills/down.yaml deleted file mode 100644 index e6a9c5c2a..000000000 --- a/hasura/migrations/1611272576261_update_permission_user_public_table_bills/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: bills - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1611272576261_update_permission_user_public_table_bills/up.yaml b/hasura/migrations/1611272576261_update_permission_user_public_table_bills/up.yaml deleted file mode 100644 index 858e53df4..000000000 --- a/hasura/migrations/1611272576261_update_permission_user_public_table_bills/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - permission: - backend_only: false - filter: - _and: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - exported: - _eq: false - role: user - table: - name: bills - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1611272645898_set_fk_public_documents_billid/down.yaml b/hasura/migrations/1611272645898_set_fk_public_documents_billid/down.yaml deleted file mode 100644 index bd8a427a6..000000000 --- a/hasura/migrations/1611272645898_set_fk_public_documents_billid/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."documents" drop constraint "documents_billid_fkey", - add constraint "documents_invoiceid_fkey" - foreign key ("billid") - references "public"."bills" - ("id") - on update restrict - on delete restrict; - type: run_sql diff --git a/hasura/migrations/1611272645898_set_fk_public_documents_billid/up.yaml b/hasura/migrations/1611272645898_set_fk_public_documents_billid/up.yaml deleted file mode 100644 index 478200f55..000000000 --- a/hasura/migrations/1611272645898_set_fk_public_documents_billid/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."documents" drop constraint "documents_invoiceid_fkey", - add constraint "documents_billid_fkey" - foreign key ("billid") - references "public"."bills" - ("id") on update restrict on delete set null; - type: run_sql diff --git a/hasura/migrations/1611941041657_alter_table_public_bodyshops_add_column_workingdays/down.yaml b/hasura/migrations/1611941041657_alter_table_public_bodyshops_add_column_workingdays/down.yaml deleted file mode 100644 index fe9cc76ca..000000000 --- a/hasura/migrations/1611941041657_alter_table_public_bodyshops_add_column_workingdays/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "workingdays"; - type: run_sql diff --git a/hasura/migrations/1611941041657_alter_table_public_bodyshops_add_column_workingdays/up.yaml b/hasura/migrations/1611941041657_alter_table_public_bodyshops_add_column_workingdays/up.yaml deleted file mode 100644 index 8e2eb5a32..000000000 --- a/hasura/migrations/1611941041657_alter_table_public_bodyshops_add_column_workingdays/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "workingdays" jsonb NOT NULL - DEFAULT jsonb_build_object(); - type: run_sql diff --git a/hasura/migrations/1611941052239_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1611941052239_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index c49b55fed..000000000 --- a/hasura/migrations/1611941052239_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1611941052239_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1611941052239_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index c80b7fd81..000000000 --- a/hasura/migrations/1611941052239_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1611941063164_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1611941063164_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index ef19e6f61..000000000 --- a/hasura/migrations/1611941063164_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,69 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1611941063164_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1611941063164_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index f8bd313df..000000000 --- a/hasura/migrations/1611941063164_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,70 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1612200357139_alter_table_public_bodyshops_add_column_use_fippa/down.yaml b/hasura/migrations/1612200357139_alter_table_public_bodyshops_add_column_use_fippa/down.yaml deleted file mode 100644 index 73e755a11..000000000 --- a/hasura/migrations/1612200357139_alter_table_public_bodyshops_add_column_use_fippa/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "use_fippa"; - type: run_sql diff --git a/hasura/migrations/1612200357139_alter_table_public_bodyshops_add_column_use_fippa/up.yaml b/hasura/migrations/1612200357139_alter_table_public_bodyshops_add_column_use_fippa/up.yaml deleted file mode 100644 index 164facaaf..000000000 --- a/hasura/migrations/1612200357139_alter_table_public_bodyshops_add_column_use_fippa/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "use_fippa" boolean NOT NULL - DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1612200364598_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1612200364598_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index c80b7fd81..000000000 --- a/hasura/migrations/1612200364598_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,77 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1612200364598_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1612200364598_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 8ec0d692f..000000000 --- a/hasura/migrations/1612200364598_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,78 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1612200375540_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1612200375540_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index f8bd313df..000000000 --- a/hasura/migrations/1612200375540_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,70 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1612200375540_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1612200375540_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 69cb0c83d..000000000 --- a/hasura/migrations/1612200375540_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,71 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1612219431186_alter_table_public_jobs_alter_column_date_estimated/down.yaml b/hasura/migrations/1612219431186_alter_table_public_jobs_alter_column_date_estimated/down.yaml deleted file mode 100644 index 35c68f05c..000000000 --- a/hasura/migrations/1612219431186_alter_table_public_jobs_alter_column_date_estimated/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "date_estimated" TYPE timestamp - with time zone; - type: run_sql diff --git a/hasura/migrations/1612219431186_alter_table_public_jobs_alter_column_date_estimated/up.yaml b/hasura/migrations/1612219431186_alter_table_public_jobs_alter_column_date_estimated/up.yaml deleted file mode 100644 index 2b2679c86..000000000 --- a/hasura/migrations/1612219431186_alter_table_public_jobs_alter_column_date_estimated/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "date_estimated" TYPE date; - type: run_sql diff --git a/hasura/migrations/1612286825846_run_sql_migration/down.yaml b/hasura/migrations/1612286825846_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1612286825846_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1612286825846_run_sql_migration/up.yaml b/hasura/migrations/1612286825846_run_sql_migration/up.yaml deleted file mode 100644 index 5ca74c861..000000000 --- a/hasura/migrations/1612286825846_run_sql_migration/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - create trigger jobs_assign_RO_insert before insert on jobs for - each row execute function assign_ro_number(); - type: run_sql diff --git a/hasura/migrations/1612478848106_alter_table_public_documents_add_column_extension/down.yaml b/hasura/migrations/1612478848106_alter_table_public_documents_add_column_extension/down.yaml deleted file mode 100644 index e1f4dfe22..000000000 --- a/hasura/migrations/1612478848106_alter_table_public_documents_add_column_extension/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" DROP COLUMN "extension"; - type: run_sql diff --git a/hasura/migrations/1612478848106_alter_table_public_documents_add_column_extension/up.yaml b/hasura/migrations/1612478848106_alter_table_public_documents_add_column_extension/up.yaml deleted file mode 100644 index 9951035eb..000000000 --- a/hasura/migrations/1612478848106_alter_table_public_documents_add_column_extension/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" ADD COLUMN "extension" text NULL; - type: run_sql diff --git a/hasura/migrations/1612478855295_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1612478855295_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index af08a0df6..000000000 --- a/hasura/migrations/1612478855295_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - uploaded_by - - jobid - - name - - key - - billid - - type - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1612478855295_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1612478855295_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index e7f9555ab..000000000 --- a/hasura/migrations/1612478855295_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - billid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1612478861357_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1612478861357_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index bfe07f671..000000000 --- a/hasura/migrations/1612478861357_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - key - - name - - type - - uploaded_by - - created_at - - updated_at - - id - - billid - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1612478861357_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1612478861357_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 791d121c3..000000000 --- a/hasura/migrations/1612478861357_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - billid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1612809714719_alter_table_public_payments_add_column_paymentnum/down.yaml b/hasura/migrations/1612809714719_alter_table_public_payments_add_column_paymentnum/down.yaml deleted file mode 100644 index e9b20c89e..000000000 --- a/hasura/migrations/1612809714719_alter_table_public_payments_add_column_paymentnum/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" DROP COLUMN "paymentnum"; - type: run_sql diff --git a/hasura/migrations/1612809714719_alter_table_public_payments_add_column_paymentnum/up.yaml b/hasura/migrations/1612809714719_alter_table_public_payments_add_column_paymentnum/up.yaml deleted file mode 100644 index bc705009e..000000000 --- a/hasura/migrations/1612809714719_alter_table_public_payments_add_column_paymentnum/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" ADD COLUMN "paymentnum" text NULL; - type: run_sql diff --git a/hasura/migrations/1612809727981_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1612809727981_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index d3263f3f0..000000000 --- a/hasura/migrations/1612809727981_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - type - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1612809727981_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1612809727981_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 6635ad75a..000000000 --- a/hasura/migrations/1612809727981_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1612809735669_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1612809735669_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index d048afd30..000000000 --- a/hasura/migrations/1612809735669_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - type - - updated_at - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1612809735669_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1612809735669_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index b1dc6deff..000000000 --- a/hasura/migrations/1612809735669_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1612809739863_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1612809739863_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index ffba0de91..000000000 --- a/hasura/migrations/1612809739863_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - type - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1612809739863_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1612809739863_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 4b6a2bb0b..000000000 --- a/hasura/migrations/1612809739863_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1612809744309_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1612809744309_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index ffba0de91..000000000 --- a/hasura/migrations/1612809744309_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - stripeid - - transactionid - - type - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1612809744309_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1612809744309_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 4b6a2bb0b..000000000 --- a/hasura/migrations/1612809744309_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1612809975689_run_sql_migration/down.yaml b/hasura/migrations/1612809975689_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1612809975689_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1612809975689_run_sql_migration/up.yaml b/hasura/migrations/1612809975689_run_sql_migration/up.yaml deleted file mode 100644 index 62df62d11..000000000 --- a/hasura/migrations/1612809975689_run_sql_migration/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.assign_payment_number ()\n\tRETURNS TRIGGER\n\tLANGUAGE - plpgsql\n\tAS $function$\nBEGIN\n\tIF (new.paymentnum IS NULL\n\t\tOR new.paymentnum - = 'pnew') THEN\n\tUPDATE\n\t\tcounters\n\tSET\n\t\tcount = count + 1\n\tFROM\n\t\tbodyshops\n\tWHERE\n\t\tbodyshops.id - = (\n\t\t\tSELECT\n\t\t\t\tshopid\n\t\t\tFROM\n\t\t\t\tjobs\n\t\t\tWHERE\n\t\t\t\tjobs.id - = new.jobid)\n\t\t\tAND countertype = 'paymentnum'\n\t\tRETURNING\n\t\t\tconcat(prefix, - count) INTO new.paymentnum;\nEND IF;\n\tRETURN NEW;\nEND;\n$function$;" - type: run_sql diff --git a/hasura/migrations/1612810025041_run_sql_migration/down.yaml b/hasura/migrations/1612810025041_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1612810025041_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1612810025041_run_sql_migration/up.yaml b/hasura/migrations/1612810025041_run_sql_migration/up.yaml deleted file mode 100644 index 096f1b44c..000000000 --- a/hasura/migrations/1612810025041_run_sql_migration/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: true - read_only: false - sql: |- - create trigger payments_assign_paymentnum before - insert - on - public.payments - for each row execute procedure assign_payment_number(); - type: run_sql diff --git a/hasura/migrations/1612810428150_alter_table_public_payments_add_column_date/down.yaml b/hasura/migrations/1612810428150_alter_table_public_payments_add_column_date/down.yaml deleted file mode 100644 index e475df732..000000000 --- a/hasura/migrations/1612810428150_alter_table_public_payments_add_column_date/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" DROP COLUMN "date"; - type: run_sql diff --git a/hasura/migrations/1612810428150_alter_table_public_payments_add_column_date/up.yaml b/hasura/migrations/1612810428150_alter_table_public_payments_add_column_date/up.yaml deleted file mode 100644 index 21103bf27..000000000 --- a/hasura/migrations/1612810428150_alter_table_public_payments_add_column_date/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."payments" ADD COLUMN "date" date NULL; - type: run_sql diff --git a/hasura/migrations/1612810438043_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1612810438043_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index b1dc6deff..000000000 --- a/hasura/migrations/1612810438043_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1612810438043_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1612810438043_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 19c9c80bf..000000000 --- a/hasura/migrations/1612810438043_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - amount - - created_at - - date - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - set: {} - role: user - table: - name: payments - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1612810444714_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1612810444714_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 6635ad75a..000000000 --- a/hasura/migrations/1612810444714_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1612810444714_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1612810444714_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index eda8df053..000000000 --- a/hasura/migrations/1612810444714_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - amount - - created_at - - date - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: payments - schema: public - type: create_select_permission diff --git a/hasura/migrations/1612810451283_update_permission_user_public_table_payments/down.yaml b/hasura/migrations/1612810451283_update_permission_user_public_table_payments/down.yaml deleted file mode 100644 index 4b6a2bb0b..000000000 --- a/hasura/migrations/1612810451283_update_permission_user_public_table_payments/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1612810451283_update_permission_user_public_table_payments/up.yaml b/hasura/migrations/1612810451283_update_permission_user_public_table_payments/up.yaml deleted file mode 100644 index 6d40dd054..000000000 --- a/hasura/migrations/1612810451283_update_permission_user_public_table_payments/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: payments - schema: public - type: drop_update_permission -- args: - permission: - columns: - - amount - - created_at - - date - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: payments - schema: public - type: create_update_permission diff --git a/hasura/migrations/1612812065763_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1612812065763_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 1446f80b1..000000000 --- a/hasura/migrations/1612812065763_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1612812065763_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1612812065763_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index a1edd15a6..000000000 --- a/hasura/migrations/1612812065763_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1612812077482_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1612812077482_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index eac2bb100..000000000 --- a/hasura/migrations/1612812077482_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,264 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1612812077482_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1612812077482_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index ba019ac4c..000000000 --- a/hasura/migrations/1612812077482_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1612812086661_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1612812086661_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 5dbd57336..000000000 --- a/hasura/migrations/1612812086661_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_closed - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1612812086661_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1612812086661_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 470a9347b..000000000 --- a/hasura/migrations/1612812086661_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613085619978_alter_table_public_documents_alter_column_jobid/down.yaml b/hasura/migrations/1613085619978_alter_table_public_documents_alter_column_jobid/down.yaml deleted file mode 100644 index b5b754f16..000000000 --- a/hasura/migrations/1613085619978_alter_table_public_documents_alter_column_jobid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" ALTER COLUMN "jobid" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1613085619978_alter_table_public_documents_alter_column_jobid/up.yaml b/hasura/migrations/1613085619978_alter_table_public_documents_alter_column_jobid/up.yaml deleted file mode 100644 index 28d5c26bb..000000000 --- a/hasura/migrations/1613085619978_alter_table_public_documents_alter_column_jobid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" ALTER COLUMN "jobid" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1613150010189_alter_table_public_documents_add_column_bodyshopid/down.yaml b/hasura/migrations/1613150010189_alter_table_public_documents_add_column_bodyshopid/down.yaml deleted file mode 100644 index b09719e64..000000000 --- a/hasura/migrations/1613150010189_alter_table_public_documents_add_column_bodyshopid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" DROP COLUMN "bodyshopid"; - type: run_sql diff --git a/hasura/migrations/1613150010189_alter_table_public_documents_add_column_bodyshopid/up.yaml b/hasura/migrations/1613150010189_alter_table_public_documents_add_column_bodyshopid/up.yaml deleted file mode 100644 index 85152341e..000000000 --- a/hasura/migrations/1613150010189_alter_table_public_documents_add_column_bodyshopid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" ADD COLUMN "bodyshopid" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1613150047199_set_fk_public_documents_bodyshopid/down.yaml b/hasura/migrations/1613150047199_set_fk_public_documents_bodyshopid/down.yaml deleted file mode 100644 index 07341d74f..000000000 --- a/hasura/migrations/1613150047199_set_fk_public_documents_bodyshopid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."documents" drop constraint "documents_bodyshopid_fkey"; - type: run_sql diff --git a/hasura/migrations/1613150047199_set_fk_public_documents_bodyshopid/up.yaml b/hasura/migrations/1613150047199_set_fk_public_documents_bodyshopid/up.yaml deleted file mode 100644 index 91df0ee79..000000000 --- a/hasura/migrations/1613150047199_set_fk_public_documents_bodyshopid/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."documents" - add constraint "documents_bodyshopid_fkey" - foreign key ("bodyshopid") - references "public"."bodyshops" - ("id") on update cascade on delete cascade; - type: run_sql diff --git a/hasura/migrations/1613150060719_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1613150060719_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index e7f9555ab..000000000 --- a/hasura/migrations/1613150060719_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - billid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613150060719_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1613150060719_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 0447a1df0..000000000 --- a/hasura/migrations/1613150060719_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613150071924_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1613150071924_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 791d121c3..000000000 --- a/hasura/migrations/1613150071924_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - billid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613150071924_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1613150071924_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 0853c4b4c..000000000 --- a/hasura/migrations/1613150071924_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613150092386_track_all_relationships/down.yaml b/hasura/migrations/1613150092386_track_all_relationships/down.yaml deleted file mode 100644 index 9c4f51171..000000000 --- a/hasura/migrations/1613150092386_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: documents - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: documents - schema: public - type: drop_relationship diff --git a/hasura/migrations/1613150092386_track_all_relationships/up.yaml b/hasura/migrations/1613150092386_track_all_relationships/up.yaml deleted file mode 100644 index cac5c0502..000000000 --- a/hasura/migrations/1613150092386_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: documents - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: documents - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: documents - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship diff --git a/hasura/migrations/1613150538264_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1613150538264_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 0447a1df0..000000000 --- a/hasura/migrations/1613150538264_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613150538264_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1613150538264_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 962ce61af..000000000 --- a/hasura/migrations/1613150538264_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613150584040_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1613150584040_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 0853c4b4c..000000000 --- a/hasura/migrations/1613150584040_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613150584040_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1613150584040_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index cb62a4488..000000000 --- a/hasura/migrations/1613150584040_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - computed_fields: [] - filter: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613150597122_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1613150597122_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 1d7033e1d..000000000 --- a/hasura/migrations/1613150597122_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_delete_permission -- args: - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1613150597122_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1613150597122_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 089fb717d..000000000 --- a/hasura/migrations/1613150597122_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,32 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_delete_permission -- args: - permission: - filter: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1613150614467_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1613150614467_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index a630e7db8..000000000 --- a/hasura/migrations/1613150614467_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_update_permission -- args: - permission: - columns: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: documents - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613150614467_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1613150614467_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 1491172bd..000000000 --- a/hasura/migrations/1613150614467_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_update_permission -- args: - permission: - columns: - - extension - - key - - name - - type - - uploaded_by - - created_at - - updated_at - - billid - - bodyshopid - - id - - jobid - filter: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: documents - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613443596028_alter_table_public_parts_orders_alter_column_returnfrominvoice/down.yaml b/hasura/migrations/1613443596028_alter_table_public_parts_orders_alter_column_returnfrominvoice/down.yaml deleted file mode 100644 index 2f2ef1652..000000000 --- a/hasura/migrations/1613443596028_alter_table_public_parts_orders_alter_column_returnfrominvoice/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."parts_orders" rename column "returnfrombill" to "returnfrominvoice"; - type: run_sql diff --git a/hasura/migrations/1613443596028_alter_table_public_parts_orders_alter_column_returnfrominvoice/up.yaml b/hasura/migrations/1613443596028_alter_table_public_parts_orders_alter_column_returnfrominvoice/up.yaml deleted file mode 100644 index 6c46bf94a..000000000 --- a/hasura/migrations/1613443596028_alter_table_public_parts_orders_alter_column_returnfrominvoice/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."parts_orders" rename column "returnfrominvoice" to - "returnfrombill"; - type: run_sql diff --git a/hasura/migrations/1613500513684_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1613500513684_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 88c33a532..000000000 --- a/hasura/migrations/1613500513684_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613500513684_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1613500513684_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 069eb786a..000000000 --- a/hasura/migrations/1613500513684_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613500523633_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1613500523633_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index b8a37c4c9..000000000 --- a/hasura/migrations/1613500523633_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613500523633_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1613500523633_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index fcd8afa18..000000000 --- a/hasura/migrations/1613500523633_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613500538231_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1613500538231_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 822072290..000000000 --- a/hasura/migrations/1613500538231_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,44 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - prompt_discount - - state - - street1 - - street2 - - taxid - - terms - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613500538231_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1613500538231_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index e94d250ff..000000000 --- a/hasura/migrations/1613500538231_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613500621572_alter_table_public_vendors_drop_column_terms/down.yaml b/hasura/migrations/1613500621572_alter_table_public_vendors_drop_column_terms/down.yaml deleted file mode 100644 index 87abc828f..000000000 --- a/hasura/migrations/1613500621572_alter_table_public_vendors_drop_column_terms/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ADD COLUMN "terms" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "terms" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1613500621572_alter_table_public_vendors_drop_column_terms/up.yaml b/hasura/migrations/1613500621572_alter_table_public_vendors_drop_column_terms/up.yaml deleted file mode 100644 index 9cbf56fa7..000000000 --- a/hasura/migrations/1613500621572_alter_table_public_vendors_drop_column_terms/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" DROP COLUMN "terms" CASCADE; - type: run_sql diff --git a/hasura/migrations/1613500633493_alter_table_public_vendors_drop_column_prompt_discount/down.yaml b/hasura/migrations/1613500633493_alter_table_public_vendors_drop_column_prompt_discount/down.yaml deleted file mode 100644 index 74ea86d92..000000000 --- a/hasura/migrations/1613500633493_alter_table_public_vendors_drop_column_prompt_discount/down.yaml +++ /dev/null @@ -1,16 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ADD COLUMN "prompt_discount" numeric; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "prompt_discount" DROP NOT NULL; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "prompt_discount" SET DEFAULT - 0; - type: run_sql diff --git a/hasura/migrations/1613500633493_alter_table_public_vendors_drop_column_prompt_discount/up.yaml b/hasura/migrations/1613500633493_alter_table_public_vendors_drop_column_prompt_discount/up.yaml deleted file mode 100644 index 8c5be00ca..000000000 --- a/hasura/migrations/1613500633493_alter_table_public_vendors_drop_column_prompt_discount/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" DROP COLUMN "prompt_discount" CASCADE; - type: run_sql diff --git a/hasura/migrations/1613500643470_alter_table_public_vendors_drop_column_taxid/down.yaml b/hasura/migrations/1613500643470_alter_table_public_vendors_drop_column_taxid/down.yaml deleted file mode 100644 index 8154a0719..000000000 --- a/hasura/migrations/1613500643470_alter_table_public_vendors_drop_column_taxid/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ADD COLUMN "taxid" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "taxid" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1613500643470_alter_table_public_vendors_drop_column_taxid/up.yaml b/hasura/migrations/1613500643470_alter_table_public_vendors_drop_column_taxid/up.yaml deleted file mode 100644 index 2b8722c09..000000000 --- a/hasura/migrations/1613500643470_alter_table_public_vendors_drop_column_taxid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" DROP COLUMN "taxid" CASCADE; - type: run_sql diff --git a/hasura/migrations/1613512698224_set_fk_public_billlines_joblineid/down.yaml b/hasura/migrations/1613512698224_set_fk_public_billlines_joblineid/down.yaml deleted file mode 100644 index 1b64a574a..000000000 --- a/hasura/migrations/1613512698224_set_fk_public_billlines_joblineid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."billlines" drop constraint "billlines_joblineid_fkey"; - type: run_sql diff --git a/hasura/migrations/1613512698224_set_fk_public_billlines_joblineid/up.yaml b/hasura/migrations/1613512698224_set_fk_public_billlines_joblineid/up.yaml deleted file mode 100644 index db6cd3d58..000000000 --- a/hasura/migrations/1613512698224_set_fk_public_billlines_joblineid/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."billlines" - add constraint "billlines_joblineid_fkey" - foreign key ("joblineid") - references "public"."joblines" - ("id") on update restrict on delete set null; - type: run_sql diff --git a/hasura/migrations/1613512720454_track_all_relationships/down.yaml b/hasura/migrations/1613512720454_track_all_relationships/down.yaml deleted file mode 100644 index 781f757d6..000000000 --- a/hasura/migrations/1613512720454_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: billlines - table: - name: joblines - schema: public - type: drop_relationship -- args: - relationship: jobline - table: - name: billlines - schema: public - type: drop_relationship diff --git a/hasura/migrations/1613512720454_track_all_relationships/up.yaml b/hasura/migrations/1613512720454_track_all_relationships/up.yaml deleted file mode 100644 index 11235a313..000000000 --- a/hasura/migrations/1613512720454_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: billlines - table: - name: joblines - schema: public - using: - foreign_key_constraint_on: - column: joblineid - table: - name: billlines - schema: public - type: create_array_relationship -- args: - name: jobline - table: - name: billlines - schema: public - using: - foreign_key_constraint_on: joblineid - type: create_object_relationship diff --git a/hasura/migrations/1613528228078_alter_table_public_bodyshops_add_column_md_payment_types/down.yaml b/hasura/migrations/1613528228078_alter_table_public_bodyshops_add_column_md_payment_types/down.yaml deleted file mode 100644 index 1c80eb003..000000000 --- a/hasura/migrations/1613528228078_alter_table_public_bodyshops_add_column_md_payment_types/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_payment_types"; - type: run_sql diff --git a/hasura/migrations/1613528228078_alter_table_public_bodyshops_add_column_md_payment_types/up.yaml b/hasura/migrations/1613528228078_alter_table_public_bodyshops_add_column_md_payment_types/up.yaml deleted file mode 100644 index 08be5ef20..000000000 --- a/hasura/migrations/1613528228078_alter_table_public_bodyshops_add_column_md_payment_types/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_payment_types" jsonb NOT - NULL DEFAULT jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1613528238258_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1613528238258_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 8ec0d692f..000000000 --- a/hasura/migrations/1613528238258_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,78 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613528238258_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1613528238258_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 59496b04f..000000000 --- a/hasura/migrations/1613528238258_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,79 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613528247057_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1613528247057_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 69cb0c83d..000000000 --- a/hasura/migrations/1613528247057_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,71 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613528247057_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1613528247057_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index dfd06b55c..000000000 --- a/hasura/migrations/1613528247057_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,72 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613752488707_run_sql_migration/down.yaml b/hasura/migrations/1613752488707_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1613752488707_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1613752488707_run_sql_migration/up.yaml b/hasura/migrations/1613752488707_run_sql_migration/up.yaml deleted file mode 100644 index 7d5a7c5c9..000000000 --- a/hasura/migrations/1613752488707_run_sql_migration/up.yaml +++ /dev/null @@ -1,9 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_bills(search text)\n RETURNS SETOF - bills\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search = '' - then\n return query select * from bills ;\n else \n return query SELECT\n - \ *\nFROM\n bills, vendors\nWHERE\nbills.vendorid= vendors.id and \n (search - <% (invoice_number)\n OR\n search <% (name)\n )\n \n ;\n end if;\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1613752680367_run_sql_migration/down.yaml b/hasura/migrations/1613752680367_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1613752680367_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1613752680367_run_sql_migration/up.yaml b/hasura/migrations/1613752680367_run_sql_migration/up.yaml deleted file mode 100644 index d550d7249..000000000 --- a/hasura/migrations/1613752680367_run_sql_migration/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_bills(search text)\n RETURNS SETOF - bills\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n if search = '' - then\n return query select * from bills ;\n else \n return query SELECT\n - \ bills.*\nFROM\n bills, vendors\nWHERE\nbills.vendorid= vendors.id and \n - \ (search <% (invoice_number)\n OR\n search <% (name)\n )\n \n ;\n end - if;\n\n\tEND\n$function$;" - type: run_sql diff --git a/hasura/migrations/1613753847629_alter_table_public_jobs_add_column_voided/down.yaml b/hasura/migrations/1613753847629_alter_table_public_jobs_add_column_voided/down.yaml deleted file mode 100644 index 064eeee63..000000000 --- a/hasura/migrations/1613753847629_alter_table_public_jobs_add_column_voided/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "voided"; - type: run_sql diff --git a/hasura/migrations/1613753847629_alter_table_public_jobs_add_column_voided/up.yaml b/hasura/migrations/1613753847629_alter_table_public_jobs_add_column_voided/up.yaml deleted file mode 100644 index 311db9a1a..000000000 --- a/hasura/migrations/1613753847629_alter_table_public_jobs_add_column_voided/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "voided" boolean NOT NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1613754454833_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1613754454833_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index a1edd15a6..000000000 --- a/hasura/migrations/1613754454833_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613754454833_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1613754454833_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 0745cc906..000000000 --- a/hasura/migrations/1613754454833_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613754473488_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1613754473488_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index ba019ac4c..000000000 --- a/hasura/migrations/1613754473488_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613754473488_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1613754473488_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 7f9701478..000000000 --- a/hasura/migrations/1613754473488_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,264 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613754485354_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1613754485354_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 470a9347b..000000000 --- a/hasura/migrations/1613754485354_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,262 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613754485354_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1613754485354_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 48d3bf179..000000000 --- a/hasura/migrations/1613754485354_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613759886229_alter_table_public_bodyshops_add_column_md_hour_split/down.yaml b/hasura/migrations/1613759886229_alter_table_public_bodyshops_add_column_md_hour_split/down.yaml deleted file mode 100644 index d5200e245..000000000 --- a/hasura/migrations/1613759886229_alter_table_public_bodyshops_add_column_md_hour_split/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_hour_split"; - type: run_sql diff --git a/hasura/migrations/1613759886229_alter_table_public_bodyshops_add_column_md_hour_split/up.yaml b/hasura/migrations/1613759886229_alter_table_public_bodyshops_add_column_md_hour_split/up.yaml deleted file mode 100644 index a59d85f65..000000000 --- a/hasura/migrations/1613759886229_alter_table_public_bodyshops_add_column_md_hour_split/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_hour_split" jsonb NOT NULL - DEFAULT jsonb_build_object(); - type: run_sql diff --git a/hasura/migrations/1613759910351_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1613759910351_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 59496b04f..000000000 --- a/hasura/migrations/1613759910351_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,79 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613759910351_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1613759910351_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 86c38d7d9..000000000 --- a/hasura/migrations/1613759910351_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613759921843_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1613759921843_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index dfd06b55c..000000000 --- a/hasura/migrations/1613759921843_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,72 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613759921843_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1613759921843_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index c2b92e402..000000000 --- a/hasura/migrations/1613759921843_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,73 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613762281912_alter_table_public_messages_add_column_user/down.yaml b/hasura/migrations/1613762281912_alter_table_public_messages_add_column_user/down.yaml deleted file mode 100644 index dc79d867f..000000000 --- a/hasura/migrations/1613762281912_alter_table_public_messages_add_column_user/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" DROP COLUMN "user"; - type: run_sql diff --git a/hasura/migrations/1613762281912_alter_table_public_messages_add_column_user/up.yaml b/hasura/migrations/1613762281912_alter_table_public_messages_add_column_user/up.yaml deleted file mode 100644 index 8239c0524..000000000 --- a/hasura/migrations/1613762281912_alter_table_public_messages_add_column_user/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ADD COLUMN "user" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1613762305531_alter_table_public_messages_alter_column_user/down.yaml b/hasura/migrations/1613762305531_alter_table_public_messages_alter_column_user/down.yaml deleted file mode 100644 index 0e628401b..000000000 --- a/hasura/migrations/1613762305531_alter_table_public_messages_alter_column_user/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."messages" rename column "userid" to "user"; - type: run_sql diff --git a/hasura/migrations/1613762305531_alter_table_public_messages_alter_column_user/up.yaml b/hasura/migrations/1613762305531_alter_table_public_messages_alter_column_user/up.yaml deleted file mode 100644 index a3989707e..000000000 --- a/hasura/migrations/1613762305531_alter_table_public_messages_alter_column_user/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."messages" rename column "user" to "userid"; - type: run_sql diff --git a/hasura/migrations/1613762357382_alter_table_public_messages_alter_column_userid/down.yaml b/hasura/migrations/1613762357382_alter_table_public_messages_alter_column_userid/down.yaml deleted file mode 100644 index 6b5c1117b..000000000 --- a/hasura/migrations/1613762357382_alter_table_public_messages_alter_column_userid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ALTER COLUMN "userid" TYPE uuid; - type: run_sql diff --git a/hasura/migrations/1613762357382_alter_table_public_messages_alter_column_userid/up.yaml b/hasura/migrations/1613762357382_alter_table_public_messages_alter_column_userid/up.yaml deleted file mode 100644 index c9aaedc3a..000000000 --- a/hasura/migrations/1613762357382_alter_table_public_messages_alter_column_userid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ALTER COLUMN "userid" TYPE text; - type: run_sql diff --git a/hasura/migrations/1613762365032_set_fk_public_messages_userid/down.yaml b/hasura/migrations/1613762365032_set_fk_public_messages_userid/down.yaml deleted file mode 100644 index 95736bac0..000000000 --- a/hasura/migrations/1613762365032_set_fk_public_messages_userid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."messages" drop constraint "messages_userid_fkey"; - type: run_sql diff --git a/hasura/migrations/1613762365032_set_fk_public_messages_userid/up.yaml b/hasura/migrations/1613762365032_set_fk_public_messages_userid/up.yaml deleted file mode 100644 index e1310ad73..000000000 --- a/hasura/migrations/1613762365032_set_fk_public_messages_userid/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."messages" - add constraint "messages_userid_fkey" - foreign key ("userid") - references "public"."users" - ("email") on update set null on delete set null; - type: run_sql diff --git a/hasura/migrations/1613762380479_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1613762380479_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index d6c6a706f..000000000 --- a/hasura/migrations/1613762380479_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - msid - - conversationid - - text - - image - - image_path - - isoutbound - - status - - read - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613762380479_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1613762380479_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 81a526283..000000000 --- a/hasura/migrations/1613762380479_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613762388836_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1613762388836_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 779d52c21..000000000 --- a/hasura/migrations/1613762388836_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - image - - isoutbound - - read - - image_path - - msid - - status - - text - - created_at - - updated_at - - conversationid - - id - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613762388836_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1613762388836_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index e0238e6f8..000000000 --- a/hasura/migrations/1613762388836_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613767928898_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1613767928898_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 81a526283..000000000 --- a/hasura/migrations/1613767928898_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613767928898_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1613767928898_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 043c11b36..000000000 --- a/hasura/migrations/1613767928898_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - conversationid - - created_at - - id - - image - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613767944643_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1613767944643_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index e0238e6f8..000000000 --- a/hasura/migrations/1613767944643_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613767944643_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1613767944643_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index ae24478b6..000000000 --- a/hasura/migrations/1613767944643_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - conversationid - - created_at - - id - - image - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613767953059_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1613767953059_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 35bc9ab52..000000000 --- a/hasura/migrations/1613767953059_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - image - - isoutbound - - read - - image_path - - msid - - status - - text - - created_at - - updated_at - - conversationid - - id - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613767953059_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1613767953059_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 2cde6b1c2..000000000 --- a/hasura/migrations/1613767953059_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - conversationid - - created_at - - id - - image - - isoutbound - - msid - - read - - status - - text - - updated_at - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613767963376_alter_table_public_messages_drop_column_image_path/down.yaml b/hasura/migrations/1613767963376_alter_table_public_messages_drop_column_image_path/down.yaml deleted file mode 100644 index 155db26b8..000000000 --- a/hasura/migrations/1613767963376_alter_table_public_messages_drop_column_image_path/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ADD COLUMN "image_path" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ALTER COLUMN "image_path" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1613767963376_alter_table_public_messages_drop_column_image_path/up.yaml b/hasura/migrations/1613767963376_alter_table_public_messages_drop_column_image_path/up.yaml deleted file mode 100644 index 67f6e217d..000000000 --- a/hasura/migrations/1613767963376_alter_table_public_messages_drop_column_image_path/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" DROP COLUMN "image_path" CASCADE; - type: run_sql diff --git a/hasura/migrations/1613767994173_alter_table_public_messages_add_column_image_path/down.yaml b/hasura/migrations/1613767994173_alter_table_public_messages_add_column_image_path/down.yaml deleted file mode 100644 index 35e0068af..000000000 --- a/hasura/migrations/1613767994173_alter_table_public_messages_add_column_image_path/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" DROP COLUMN "image_path"; - type: run_sql diff --git a/hasura/migrations/1613767994173_alter_table_public_messages_add_column_image_path/up.yaml b/hasura/migrations/1613767994173_alter_table_public_messages_add_column_image_path/up.yaml deleted file mode 100644 index 335dd8063..000000000 --- a/hasura/migrations/1613767994173_alter_table_public_messages_add_column_image_path/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."messages" ADD COLUMN "image_path" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1613768005234_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1613768005234_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 043c11b36..000000000 --- a/hasura/migrations/1613768005234_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - conversationid - - created_at - - id - - image - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613768005234_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1613768005234_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 81a526283..000000000 --- a/hasura/migrations/1613768005234_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_insert_permission -- args: - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - set: {} - role: user - table: - name: messages - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1613768012873_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1613768012873_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index ae24478b6..000000000 --- a/hasura/migrations/1613768012873_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - conversationid - - created_at - - id - - image - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613768012873_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1613768012873_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index e0238e6f8..000000000 --- a/hasura/migrations/1613768012873_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - computed_fields: [] - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: messages - schema: public - type: create_select_permission diff --git a/hasura/migrations/1613768023989_update_permission_user_public_table_messages/down.yaml b/hasura/migrations/1613768023989_update_permission_user_public_table_messages/down.yaml deleted file mode 100644 index 2cde6b1c2..000000000 --- a/hasura/migrations/1613768023989_update_permission_user_public_table_messages/down.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - conversationid - - created_at - - id - - image - - isoutbound - - msid - - read - - status - - text - - updated_at - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613768023989_update_permission_user_public_table_messages/up.yaml b/hasura/migrations/1613768023989_update_permission_user_public_table_messages/up.yaml deleted file mode 100644 index 229ae219a..000000000 --- a/hasura/migrations/1613768023989_update_permission_user_public_table_messages/up.yaml +++ /dev/null @@ -1,36 +0,0 @@ -- args: - role: user - table: - name: messages - schema: public - type: drop_update_permission -- args: - permission: - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - read - - status - - text - - updated_at - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: messages - schema: public - type: create_update_permission diff --git a/hasura/migrations/1613772179401_alter_table_public_bodyshops_add_column_autohouseid/down.yaml b/hasura/migrations/1613772179401_alter_table_public_bodyshops_add_column_autohouseid/down.yaml deleted file mode 100644 index 7e2c379bf..000000000 --- a/hasura/migrations/1613772179401_alter_table_public_bodyshops_add_column_autohouseid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "autohouseid"; - type: run_sql diff --git a/hasura/migrations/1613772179401_alter_table_public_bodyshops_add_column_autohouseid/up.yaml b/hasura/migrations/1613772179401_alter_table_public_bodyshops_add_column_autohouseid/up.yaml deleted file mode 100644 index b710cc316..000000000 --- a/hasura/migrations/1613772179401_alter_table_public_bodyshops_add_column_autohouseid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "autohouseid" text NULL UNIQUE; - type: run_sql diff --git a/hasura/migrations/1614016458508_update_permission_user_public_table_billlines/down.yaml b/hasura/migrations/1614016458508_update_permission_user_public_table_billlines/down.yaml deleted file mode 100644 index 4404c8657..000000000 --- a/hasura/migrations/1614016458508_update_permission_user_public_table_billlines/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - line_desc - - quantity - - updated_at - computed_fields: [] - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: billlines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1614016458508_update_permission_user_public_table_billlines/up.yaml b/hasura/migrations/1614016458508_update_permission_user_public_table_billlines/up.yaml deleted file mode 100644 index 7e1690469..000000000 --- a/hasura/migrations/1614016458508_update_permission_user_public_table_billlines/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - line_desc - - quantity - - updated_at - computed_fields: [] - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: billlines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1614050626219_track_all_relationships/down.yaml b/hasura/migrations/1614050626219_track_all_relationships/down.yaml deleted file mode 100644 index ab2833ddb..000000000 --- a/hasura/migrations/1614050626219_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: messages - table: - name: users - schema: public - type: drop_relationship -- args: - relationship: user - table: - name: messages - schema: public - type: drop_relationship diff --git a/hasura/migrations/1614050626219_track_all_relationships/up.yaml b/hasura/migrations/1614050626219_track_all_relationships/up.yaml deleted file mode 100644 index f8bb9712b..000000000 --- a/hasura/migrations/1614050626219_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: messages - table: - name: users - schema: public - using: - foreign_key_constraint_on: - column: userid - table: - name: messages - schema: public - type: create_array_relationship -- args: - name: user - table: - name: messages - schema: public - using: - foreign_key_constraint_on: userid - type: create_object_relationship diff --git a/hasura/migrations/1614050650688_set_fk_public_parts_order_lines_job_line_id/down.yaml b/hasura/migrations/1614050650688_set_fk_public_parts_order_lines_job_line_id/down.yaml deleted file mode 100644 index c57bd1fb0..000000000 --- a/hasura/migrations/1614050650688_set_fk_public_parts_order_lines_job_line_id/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."parts_order_lines" drop constraint "parts_order_lines_job_line_id_fkey", - add constraint "parts_order_lines_job_line_id_fkey" - foreign key ("job_line_id") - references "public"."joblines" - ("id") - on update restrict - on delete set null; - type: run_sql diff --git a/hasura/migrations/1614050650688_set_fk_public_parts_order_lines_job_line_id/up.yaml b/hasura/migrations/1614050650688_set_fk_public_parts_order_lines_job_line_id/up.yaml deleted file mode 100644 index f7f60ce95..000000000 --- a/hasura/migrations/1614050650688_set_fk_public_parts_order_lines_job_line_id/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."parts_order_lines" drop constraint "parts_order_lines_job_line_id_fkey", - add constraint "parts_order_lines_job_line_id_fkey" - foreign key ("job_line_id") - references "public"."joblines" - ("id") on update cascade on delete cascade; - type: run_sql diff --git a/hasura/migrations/1614050682025_set_fk_public_parts_orders_vendorid/down.yaml b/hasura/migrations/1614050682025_set_fk_public_parts_orders_vendorid/down.yaml deleted file mode 100644 index 6cb4be174..000000000 --- a/hasura/migrations/1614050682025_set_fk_public_parts_orders_vendorid/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."parts_orders" drop constraint "parts_orders_vendorid_fkey", - add constraint "parts_order_vendorid_fkey" - foreign key ("vendorid") - references "public"."vendors" - ("id") - on update restrict - on delete restrict; - type: run_sql diff --git a/hasura/migrations/1614050682025_set_fk_public_parts_orders_vendorid/up.yaml b/hasura/migrations/1614050682025_set_fk_public_parts_orders_vendorid/up.yaml deleted file mode 100644 index 98753bbf6..000000000 --- a/hasura/migrations/1614050682025_set_fk_public_parts_orders_vendorid/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."parts_orders" drop constraint "parts_order_vendorid_fkey", - add constraint "parts_orders_vendorid_fkey" - foreign key ("vendorid") - references "public"."vendors" - ("id") on update set null on delete set null; - type: run_sql diff --git a/hasura/migrations/1614050692948_set_fk_public_parts_orders_returnfrombill/down.yaml b/hasura/migrations/1614050692948_set_fk_public_parts_orders_returnfrombill/down.yaml deleted file mode 100644 index e0ab89739..000000000 --- a/hasura/migrations/1614050692948_set_fk_public_parts_orders_returnfrombill/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."parts_orders" drop constraint "parts_orders_returnfrombill_fkey", - add constraint "parts_orders_returnfrominvoice_fkey" - foreign key ("returnfrombill") - references "public"."bills" - ("id") - on update restrict - on delete restrict; - type: run_sql diff --git a/hasura/migrations/1614050692948_set_fk_public_parts_orders_returnfrombill/up.yaml b/hasura/migrations/1614050692948_set_fk_public_parts_orders_returnfrombill/up.yaml deleted file mode 100644 index 1f662fe6a..000000000 --- a/hasura/migrations/1614050692948_set_fk_public_parts_orders_returnfrombill/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."parts_orders" drop constraint "parts_orders_returnfrominvoice_fkey", - add constraint "parts_orders_returnfrombill_fkey" - foreign key ("returnfrombill") - references "public"."bills" - ("id") on update set null on delete set null; - type: run_sql diff --git a/hasura/migrations/1614051586531_alter_table_public_bodyshops_alter_column_messagingservicesid/down.yaml b/hasura/migrations/1614051586531_alter_table_public_bodyshops_alter_column_messagingservicesid/down.yaml deleted file mode 100644 index 49ecde702..000000000 --- a/hasura/migrations/1614051586531_alter_table_public_bodyshops_alter_column_messagingservicesid/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD CONSTRAINT "bodyshops_messagingservicesid_key" - UNIQUE ("messagingservicesid"); - type: run_sql diff --git a/hasura/migrations/1614051586531_alter_table_public_bodyshops_alter_column_messagingservicesid/up.yaml b/hasura/migrations/1614051586531_alter_table_public_bodyshops_alter_column_messagingservicesid/up.yaml deleted file mode 100644 index fc7304595..000000000 --- a/hasura/migrations/1614051586531_alter_table_public_bodyshops_alter_column_messagingservicesid/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP CONSTRAINT "bodyshops_messagingservicesid_key"; - type: run_sql diff --git a/hasura/migrations/1614116269234_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1614116269234_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 86c38d7d9..000000000 --- a/hasura/migrations/1614116269234_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1614116269234_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1614116269234_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index f66bbb1e0..000000000 --- a/hasura/migrations/1614116269234_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,79 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1614116293965_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1614116293965_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index c2b92e402..000000000 --- a/hasura/migrations/1614116293965_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,73 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1614116293965_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1614116293965_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index f447c3b3e..000000000 --- a/hasura/migrations/1614116293965_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,72 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1614116312792_alter_table_public_bodyshops_drop_column_logo_img_path/down.yaml b/hasura/migrations/1614116312792_alter_table_public_bodyshops_drop_column_logo_img_path/down.yaml deleted file mode 100644 index a73103eef..000000000 --- a/hasura/migrations/1614116312792_alter_table_public_bodyshops_drop_column_logo_img_path/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "logo_img_path" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ALTER COLUMN "logo_img_path" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614116312792_alter_table_public_bodyshops_drop_column_logo_img_path/up.yaml b/hasura/migrations/1614116312792_alter_table_public_bodyshops_drop_column_logo_img_path/up.yaml deleted file mode 100644 index fc0535574..000000000 --- a/hasura/migrations/1614116312792_alter_table_public_bodyshops_drop_column_logo_img_path/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "logo_img_path" CASCADE; - type: run_sql diff --git a/hasura/migrations/1614116330002_alter_table_public_bodyshops_add_column_logo_img_path/down.yaml b/hasura/migrations/1614116330002_alter_table_public_bodyshops_add_column_logo_img_path/down.yaml deleted file mode 100644 index 732d3807f..000000000 --- a/hasura/migrations/1614116330002_alter_table_public_bodyshops_add_column_logo_img_path/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "logo_img_path"; - type: run_sql diff --git a/hasura/migrations/1614116330002_alter_table_public_bodyshops_add_column_logo_img_path/up.yaml b/hasura/migrations/1614116330002_alter_table_public_bodyshops_add_column_logo_img_path/up.yaml deleted file mode 100644 index 5e0df8c32..000000000 --- a/hasura/migrations/1614116330002_alter_table_public_bodyshops_add_column_logo_img_path/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "logo_img_path" jsonb NULL DEFAULT - jsonb_build_object(); - type: run_sql diff --git a/hasura/migrations/1614116341104_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1614116341104_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index f66bbb1e0..000000000 --- a/hasura/migrations/1614116341104_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,79 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1614116341104_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1614116341104_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 86c38d7d9..000000000 --- a/hasura/migrations/1614116341104_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1614116352720_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1614116352720_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index f447c3b3e..000000000 --- a/hasura/migrations/1614116352720_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,72 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1614116352720_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1614116352720_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index c2b92e402..000000000 --- a/hasura/migrations/1614116352720_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,73 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1614119149733_alter_table_public_cccontracts_alter_column_driver_dlexpiry/down.yaml b/hasura/migrations/1614119149733_alter_table_public_cccontracts_alter_column_driver_dlexpiry/down.yaml deleted file mode 100644 index 871fce3cb..000000000 --- a/hasura/migrations/1614119149733_alter_table_public_cccontracts_alter_column_driver_dlexpiry/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_dlexpiry" SET NOT - NULL; - type: run_sql diff --git a/hasura/migrations/1614119149733_alter_table_public_cccontracts_alter_column_driver_dlexpiry/up.yaml b/hasura/migrations/1614119149733_alter_table_public_cccontracts_alter_column_driver_dlexpiry/up.yaml deleted file mode 100644 index ffb9a1b6d..000000000 --- a/hasura/migrations/1614119149733_alter_table_public_cccontracts_alter_column_driver_dlexpiry/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_dlexpiry" DROP NOT - NULL; - type: run_sql diff --git a/hasura/migrations/1614119154603_alter_table_public_cccontracts_alter_column_driver_dlnumber/down.yaml b/hasura/migrations/1614119154603_alter_table_public_cccontracts_alter_column_driver_dlnumber/down.yaml deleted file mode 100644 index 99d2ab737..000000000 --- a/hasura/migrations/1614119154603_alter_table_public_cccontracts_alter_column_driver_dlnumber/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_dlnumber" SET NOT - NULL; - type: run_sql diff --git a/hasura/migrations/1614119154603_alter_table_public_cccontracts_alter_column_driver_dlnumber/up.yaml b/hasura/migrations/1614119154603_alter_table_public_cccontracts_alter_column_driver_dlnumber/up.yaml deleted file mode 100644 index 215836772..000000000 --- a/hasura/migrations/1614119154603_alter_table_public_cccontracts_alter_column_driver_dlnumber/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_dlnumber" DROP NOT - NULL; - type: run_sql diff --git a/hasura/migrations/1614119265336_alter_table_public_cccontracts_alter_column_driver_addr1/down.yaml b/hasura/migrations/1614119265336_alter_table_public_cccontracts_alter_column_driver_addr1/down.yaml deleted file mode 100644 index ffa45a40b..000000000 --- a/hasura/migrations/1614119265336_alter_table_public_cccontracts_alter_column_driver_addr1/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_addr1" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614119265336_alter_table_public_cccontracts_alter_column_driver_addr1/up.yaml b/hasura/migrations/1614119265336_alter_table_public_cccontracts_alter_column_driver_addr1/up.yaml deleted file mode 100644 index 5858ac217..000000000 --- a/hasura/migrations/1614119265336_alter_table_public_cccontracts_alter_column_driver_addr1/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_addr1" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614119270671_alter_table_public_cccontracts_alter_column_driver_city/down.yaml b/hasura/migrations/1614119270671_alter_table_public_cccontracts_alter_column_driver_city/down.yaml deleted file mode 100644 index 4557f1288..000000000 --- a/hasura/migrations/1614119270671_alter_table_public_cccontracts_alter_column_driver_city/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_city" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614119270671_alter_table_public_cccontracts_alter_column_driver_city/up.yaml b/hasura/migrations/1614119270671_alter_table_public_cccontracts_alter_column_driver_city/up.yaml deleted file mode 100644 index ead788dc6..000000000 --- a/hasura/migrations/1614119270671_alter_table_public_cccontracts_alter_column_driver_city/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_city" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614119273681_alter_table_public_cccontracts_alter_column_driver_state/down.yaml b/hasura/migrations/1614119273681_alter_table_public_cccontracts_alter_column_driver_state/down.yaml deleted file mode 100644 index a9cadf9b0..000000000 --- a/hasura/migrations/1614119273681_alter_table_public_cccontracts_alter_column_driver_state/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_state" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614119273681_alter_table_public_cccontracts_alter_column_driver_state/up.yaml b/hasura/migrations/1614119273681_alter_table_public_cccontracts_alter_column_driver_state/up.yaml deleted file mode 100644 index 844d7d105..000000000 --- a/hasura/migrations/1614119273681_alter_table_public_cccontracts_alter_column_driver_state/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_state" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614119277215_alter_table_public_cccontracts_alter_column_driver_zip/down.yaml b/hasura/migrations/1614119277215_alter_table_public_cccontracts_alter_column_driver_zip/down.yaml deleted file mode 100644 index 6c5534b0a..000000000 --- a/hasura/migrations/1614119277215_alter_table_public_cccontracts_alter_column_driver_zip/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_zip" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614119277215_alter_table_public_cccontracts_alter_column_driver_zip/up.yaml b/hasura/migrations/1614119277215_alter_table_public_cccontracts_alter_column_driver_zip/up.yaml deleted file mode 100644 index 82fe7fe99..000000000 --- a/hasura/migrations/1614119277215_alter_table_public_cccontracts_alter_column_driver_zip/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_zip" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614119281754_alter_table_public_cccontracts_alter_column_driver_ph1/down.yaml b/hasura/migrations/1614119281754_alter_table_public_cccontracts_alter_column_driver_ph1/down.yaml deleted file mode 100644 index ac2562ca4..000000000 --- a/hasura/migrations/1614119281754_alter_table_public_cccontracts_alter_column_driver_ph1/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_ph1" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614119281754_alter_table_public_cccontracts_alter_column_driver_ph1/up.yaml b/hasura/migrations/1614119281754_alter_table_public_cccontracts_alter_column_driver_ph1/up.yaml deleted file mode 100644 index 424f45250..000000000 --- a/hasura/migrations/1614119281754_alter_table_public_cccontracts_alter_column_driver_ph1/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_ph1" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614119286706_alter_table_public_cccontracts_alter_column_driver_dob/down.yaml b/hasura/migrations/1614119286706_alter_table_public_cccontracts_alter_column_driver_dob/down.yaml deleted file mode 100644 index 3985cfd5a..000000000 --- a/hasura/migrations/1614119286706_alter_table_public_cccontracts_alter_column_driver_dob/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_dob" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614119286706_alter_table_public_cccontracts_alter_column_driver_dob/up.yaml b/hasura/migrations/1614119286706_alter_table_public_cccontracts_alter_column_driver_dob/up.yaml deleted file mode 100644 index 9f8ae5e3d..000000000 --- a/hasura/migrations/1614119286706_alter_table_public_cccontracts_alter_column_driver_dob/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_dob" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614196246406_run_sql_migration/down.yaml b/hasura/migrations/1614196246406_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1614196246406_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1614196246406_run_sql_migration/up.yaml b/hasura/migrations/1614196246406_run_sql_migration/up.yaml deleted file mode 100644 index a13e54fda..000000000 --- a/hasura/migrations/1614196246406_run_sql_migration/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.assign_payment_number()\n RETURNS trigger\n - LANGUAGE plpgsql\nAS $function$\nBEGIN\n\tIF (new.paymentnum IS NULL\n\t\tOR - new.paymentnum = 'pnew') THEN\n\tUPDATE\n\t\tcounters\n\tSET\n\t\tcount = count - + 1\n\tWHERE\n\t\tshopid = (\n\t\t\tSELECT\n\t\t\t\tshopid\n\t\t\tFROM\n\t\t\t\tjobs\n\t\t\tWHERE\n\t\t\t\tjobs.id - = new.jobid)\n\t\t\tAND countertype = 'paymentnum'\n\t\tRETURNING\n\t\t\tconcat(prefix, - count) INTO new.paymentnum;\nEND IF;\n\tRETURN NEW;\nEND;\n$function$;" - type: run_sql diff --git a/hasura/migrations/1614196402453_run_sql_migration/down.yaml b/hasura/migrations/1614196402453_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1614196402453_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1614196402453_run_sql_migration/up.yaml b/hasura/migrations/1614196402453_run_sql_migration/up.yaml deleted file mode 100644 index 2c935c657..000000000 --- a/hasura/migrations/1614196402453_run_sql_migration/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.assign_ibh_number()\n RETURNS trigger\n - LANGUAGE plpgsql\nAS $function$\n begin\n IF NEW.isinhouse = true - and (new.invoice_number is null or new.invoice_number = 'ih') THEN\n UPDATE - counters\n\tSET count = count + 1\n\twhere shopid = (select shopid from jobs - where jobs.id = new.jobid)\n\tAND countertype = 'ihbnum'\n\tRETURNING concat(prefix,count) - into new.invoice_number;\n\n END IF;\n RETURN NEW;\n END;\n - \ $function$;" - type: run_sql diff --git a/hasura/migrations/1614210624328_alter_table_public_employees_drop_column_cost_center/down.yaml b/hasura/migrations/1614210624328_alter_table_public_employees_drop_column_cost_center/down.yaml deleted file mode 100644 index a31bf8b01..000000000 --- a/hasura/migrations/1614210624328_alter_table_public_employees_drop_column_cost_center/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."employees" ADD COLUMN "cost_center" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."employees" ALTER COLUMN "cost_center" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614210624328_alter_table_public_employees_drop_column_cost_center/up.yaml b/hasura/migrations/1614210624328_alter_table_public_employees_drop_column_cost_center/up.yaml deleted file mode 100644 index f130d21e1..000000000 --- a/hasura/migrations/1614210624328_alter_table_public_employees_drop_column_cost_center/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."employees" DROP COLUMN "cost_center" CASCADE; - type: run_sql diff --git a/hasura/migrations/1614214431477_set_fk_public_job_conversations_jobid/down.yaml b/hasura/migrations/1614214431477_set_fk_public_job_conversations_jobid/down.yaml deleted file mode 100644 index 0235162e4..000000000 --- a/hasura/migrations/1614214431477_set_fk_public_job_conversations_jobid/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."job_conversations" drop constraint "job_conversations_jobid_fkey", - add constraint "job_conversations_jobid_fkey" - foreign key ("jobid") - references "public"."jobs" - ("id") - on update restrict - on delete restrict; - type: run_sql diff --git a/hasura/migrations/1614214431477_set_fk_public_job_conversations_jobid/up.yaml b/hasura/migrations/1614214431477_set_fk_public_job_conversations_jobid/up.yaml deleted file mode 100644 index 19d5756a9..000000000 --- a/hasura/migrations/1614214431477_set_fk_public_job_conversations_jobid/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."job_conversations" drop constraint "job_conversations_jobid_fkey", - add constraint "job_conversations_jobid_fkey" - foreign key ("jobid") - references "public"."jobs" - ("id") on update cascade on delete cascade; - type: run_sql diff --git a/hasura/migrations/1614621241242_alter_table_public_jobs_drop_column_date_closed/down.yaml b/hasura/migrations/1614621241242_alter_table_public_jobs_drop_column_date_closed/down.yaml deleted file mode 100644 index 134ea38a4..000000000 --- a/hasura/migrations/1614621241242_alter_table_public_jobs_drop_column_date_closed/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "date_closed" timestamptz; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "date_closed" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1614621241242_alter_table_public_jobs_drop_column_date_closed/up.yaml b/hasura/migrations/1614621241242_alter_table_public_jobs_drop_column_date_closed/up.yaml deleted file mode 100644 index 689cdc6d8..000000000 --- a/hasura/migrations/1614621241242_alter_table_public_jobs_drop_column_date_closed/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "date_closed" CASCADE; - type: run_sql diff --git a/hasura/migrations/1614714003541_alter_table_public_jobs_add_column_towin/down.yaml b/hasura/migrations/1614714003541_alter_table_public_jobs_add_column_towin/down.yaml deleted file mode 100644 index 18e5a5b10..000000000 --- a/hasura/migrations/1614714003541_alter_table_public_jobs_add_column_towin/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "towin"; - type: run_sql diff --git a/hasura/migrations/1614714003541_alter_table_public_jobs_add_column_towin/up.yaml b/hasura/migrations/1614714003541_alter_table_public_jobs_add_column_towin/up.yaml deleted file mode 100644 index 1e025e9c0..000000000 --- a/hasura/migrations/1614714003541_alter_table_public_jobs_add_column_towin/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "towin" boolean NOT NULL DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1614714082560_alter_table_public_jobs_add_column_driveable/down.yaml b/hasura/migrations/1614714082560_alter_table_public_jobs_add_column_driveable/down.yaml deleted file mode 100644 index f7bb965d0..000000000 --- a/hasura/migrations/1614714082560_alter_table_public_jobs_add_column_driveable/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "driveable"; - type: run_sql diff --git a/hasura/migrations/1614714082560_alter_table_public_jobs_add_column_driveable/up.yaml b/hasura/migrations/1614714082560_alter_table_public_jobs_add_column_driveable/up.yaml deleted file mode 100644 index 9177eab54..000000000 --- a/hasura/migrations/1614714082560_alter_table_public_jobs_add_column_driveable/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "driveable" boolean NOT NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1614714096099_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1614714096099_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 0745cc906..000000000 --- a/hasura/migrations/1614714096099_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1614714096099_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1614714096099_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 2dd146684..000000000 --- a/hasura/migrations/1614714096099_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,265 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1614714109455_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1614714109455_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 7f9701478..000000000 --- a/hasura/migrations/1614714109455_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,264 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1614714109455_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1614714109455_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 1c22fc08b..000000000 --- a/hasura/migrations/1614714109455_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,266 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1614714121199_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1614714121199_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 48d3bf179..000000000 --- a/hasura/migrations/1614714121199_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,263 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1614714121199_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1614714121199_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 47824ffa0..000000000 --- a/hasura/migrations/1614714121199_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,265 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1614809695685_alter_table_public_jobs_add_column_ca_bc_pvrt/down.yaml b/hasura/migrations/1614809695685_alter_table_public_jobs_add_column_ca_bc_pvrt/down.yaml deleted file mode 100644 index 8d45f0f9f..000000000 --- a/hasura/migrations/1614809695685_alter_table_public_jobs_add_column_ca_bc_pvrt/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "ca_bc_pvrt"; - type: run_sql diff --git a/hasura/migrations/1614809695685_alter_table_public_jobs_add_column_ca_bc_pvrt/up.yaml b/hasura/migrations/1614809695685_alter_table_public_jobs_add_column_ca_bc_pvrt/up.yaml deleted file mode 100644 index d6f8590ed..000000000 --- a/hasura/migrations/1614809695685_alter_table_public_jobs_add_column_ca_bc_pvrt/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "ca_bc_pvrt" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1614809720949_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1614809720949_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 2dd146684..000000000 --- a/hasura/migrations/1614809720949_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,265 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1614809720949_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1614809720949_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 5b060e4ad..000000000 --- a/hasura/migrations/1614809720949_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,266 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1614809744257_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1614809744257_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 1c22fc08b..000000000 --- a/hasura/migrations/1614809744257_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,266 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1614809744257_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1614809744257_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 787406311..000000000 --- a/hasura/migrations/1614809744257_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,267 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1614809755471_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1614809755471_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 47824ffa0..000000000 --- a/hasura/migrations/1614809755471_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,265 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1614809755471_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1614809755471_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 967533024..000000000 --- a/hasura/migrations/1614809755471_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,266 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1615242738164_alter_table_public_notes_add_column_audit/down.yaml b/hasura/migrations/1615242738164_alter_table_public_notes_add_column_audit/down.yaml deleted file mode 100644 index 8e6d40455..000000000 --- a/hasura/migrations/1615242738164_alter_table_public_notes_add_column_audit/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."notes" DROP COLUMN "audit"; - type: run_sql diff --git a/hasura/migrations/1615242738164_alter_table_public_notes_add_column_audit/up.yaml b/hasura/migrations/1615242738164_alter_table_public_notes_add_column_audit/up.yaml deleted file mode 100644 index 8aee68fa5..000000000 --- a/hasura/migrations/1615242738164_alter_table_public_notes_add_column_audit/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."notes" ADD COLUMN "audit" boolean NOT NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1615242747543_update_permission_user_public_table_notes/down.yaml b/hasura/migrations/1615242747543_update_permission_user_public_table_notes/down.yaml deleted file mode 100644 index eb820b0cb..000000000 --- a/hasura/migrations/1615242747543_update_permission_user_public_table_notes/down.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - role: user - table: - name: notes - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - text - - created_by - - critical - - private - set: {} - role: user - table: - name: notes - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1615242747543_update_permission_user_public_table_notes/up.yaml b/hasura/migrations/1615242747543_update_permission_user_public_table_notes/up.yaml deleted file mode 100644 index 8189991c4..000000000 --- a/hasura/migrations/1615242747543_update_permission_user_public_table_notes/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: notes - schema: public - type: drop_insert_permission -- args: - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - audit - - created_at - - created_by - - critical - - id - - jobid - - private - - text - - updated_at - set: {} - role: user - table: - name: notes - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1615242754507_update_permission_user_public_table_notes/down.yaml b/hasura/migrations/1615242754507_update_permission_user_public_table_notes/down.yaml deleted file mode 100644 index 172fe5e95..000000000 --- a/hasura/migrations/1615242754507_update_permission_user_public_table_notes/down.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: notes - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - critical - - private - - created_by - - text - - created_at - - updated_at - - id - - jobid - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: notes - schema: public - type: create_select_permission diff --git a/hasura/migrations/1615242754507_update_permission_user_public_table_notes/up.yaml b/hasura/migrations/1615242754507_update_permission_user_public_table_notes/up.yaml deleted file mode 100644 index ad9c74976..000000000 --- a/hasura/migrations/1615242754507_update_permission_user_public_table_notes/up.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- args: - role: user - table: - name: notes - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - audit - - created_at - - created_by - - critical - - id - - jobid - - private - - text - - updated_at - computed_fields: [] - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: notes - schema: public - type: create_select_permission diff --git a/hasura/migrations/1615242757671_update_permission_user_public_table_notes/down.yaml b/hasura/migrations/1615242757671_update_permission_user_public_table_notes/down.yaml deleted file mode 100644 index 8409a99bc..000000000 --- a/hasura/migrations/1615242757671_update_permission_user_public_table_notes/down.yaml +++ /dev/null @@ -1,33 +0,0 @@ -- args: - role: user - table: - name: notes - schema: public - type: drop_update_permission -- args: - permission: - columns: - - critical - - private - - created_by - - text - - created_at - - updated_at - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: notes - schema: public - type: create_update_permission diff --git a/hasura/migrations/1615242757671_update_permission_user_public_table_notes/up.yaml b/hasura/migrations/1615242757671_update_permission_user_public_table_notes/up.yaml deleted file mode 100644 index dbf0e90b1..000000000 --- a/hasura/migrations/1615242757671_update_permission_user_public_table_notes/up.yaml +++ /dev/null @@ -1,34 +0,0 @@ -- args: - role: user - table: - name: notes - schema: public - type: drop_update_permission -- args: - permission: - columns: - - audit - - created_at - - created_by - - critical - - id - - jobid - - private - - text - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: notes - schema: public - type: create_update_permission diff --git a/hasura/migrations/1615315332482_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1615315332482_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index c2b92e402..000000000 --- a/hasura/migrations/1615315332482_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,73 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1615315332482_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1615315332482_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index f128e0ddf..000000000 --- a/hasura/migrations/1615315332482_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1615315785216_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1615315785216_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 86c38d7d9..000000000 --- a/hasura/migrations/1615315785216_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1615315785216_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1615315785216_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 5a5ac5eec..000000000 --- a/hasura/migrations/1615315785216_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,78 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1615929091635_alter_table_public_bodyshops_add_column_sub_status/down.yaml b/hasura/migrations/1615929091635_alter_table_public_bodyshops_add_column_sub_status/down.yaml deleted file mode 100644 index caca3a404..000000000 --- a/hasura/migrations/1615929091635_alter_table_public_bodyshops_add_column_sub_status/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "sub_status"; - type: run_sql diff --git a/hasura/migrations/1615929091635_alter_table_public_bodyshops_add_column_sub_status/up.yaml b/hasura/migrations/1615929091635_alter_table_public_bodyshops_add_column_sub_status/up.yaml deleted file mode 100644 index 7dd40c290..000000000 --- a/hasura/migrations/1615929091635_alter_table_public_bodyshops_add_column_sub_status/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "sub_status" text NOT NULL DEFAULT - 'active'; - type: run_sql diff --git a/hasura/migrations/1615929109833_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1615929109833_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 5a5ac5eec..000000000 --- a/hasura/migrations/1615929109833_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,78 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1615929109833_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1615929109833_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 7541894cb..000000000 --- a/hasura/migrations/1615929109833_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,79 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - sub_status - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1616085067839_alter_table_public_parts_order_lines_add_column_cost/down.yaml b/hasura/migrations/1616085067839_alter_table_public_parts_order_lines_add_column_cost/down.yaml deleted file mode 100644 index 4846b0d67..000000000 --- a/hasura/migrations/1616085067839_alter_table_public_parts_order_lines_add_column_cost/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_order_lines" DROP COLUMN "cost"; - type: run_sql diff --git a/hasura/migrations/1616085067839_alter_table_public_parts_order_lines_add_column_cost/up.yaml b/hasura/migrations/1616085067839_alter_table_public_parts_order_lines_add_column_cost/up.yaml deleted file mode 100644 index b6c03a222..000000000 --- a/hasura/migrations/1616085067839_alter_table_public_parts_order_lines_add_column_cost/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."parts_order_lines" ADD COLUMN "cost" numeric NULL; - type: run_sql diff --git a/hasura/migrations/1616085078098_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1616085078098_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index 03a2bc485..000000000 --- a/hasura/migrations/1616085078098_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_insert_permission -- args: - permission: - check: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1616085078098_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1616085078098_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 84d338991..000000000 --- a/hasura/migrations/1616085078098_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_insert_permission -- args: - permission: - check: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - backordered_eta - - backordered_on - - cost - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1616085088148_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1616085088148_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index 9d5d7c6a7..000000000 --- a/hasura/migrations/1616085088148_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - computed_fields: [] - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order_lines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1616085088148_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1616085088148_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 1561ce9e7..000000000 --- a/hasura/migrations/1616085088148_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - act_price - - backordered_eta - - backordered_on - - cost - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - computed_fields: [] - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: parts_order_lines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1616085543945_update_permission_user_public_table_parts_order_lines/down.yaml b/hasura/migrations/1616085543945_update_permission_user_public_table_parts_order_lines/down.yaml deleted file mode 100644 index 1277d7f95..000000000 --- a/hasura/migrations/1616085543945_update_permission_user_public_table_parts_order_lines/down.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - backordered_eta - - backordered_on - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1616085543945_update_permission_user_public_table_parts_order_lines/up.yaml b/hasura/migrations/1616085543945_update_permission_user_public_table_parts_order_lines/up.yaml deleted file mode 100644 index 16b49ed8b..000000000 --- a/hasura/migrations/1616085543945_update_permission_user_public_table_parts_order_lines/up.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: parts_order_lines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - act_price - - backordered_eta - - backordered_on - - cost - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: parts_order_lines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1616459494455_alter_table_public_vendors_add_column_active/down.yaml b/hasura/migrations/1616459494455_alter_table_public_vendors_add_column_active/down.yaml deleted file mode 100644 index 985c6b070..000000000 --- a/hasura/migrations/1616459494455_alter_table_public_vendors_add_column_active/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" DROP COLUMN "active"; - type: run_sql diff --git a/hasura/migrations/1616459494455_alter_table_public_vendors_add_column_active/up.yaml b/hasura/migrations/1616459494455_alter_table_public_vendors_add_column_active/up.yaml deleted file mode 100644 index d42900f0e..000000000 --- a/hasura/migrations/1616459494455_alter_table_public_vendors_add_column_active/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ADD COLUMN "active" boolean NOT NULL DEFAULT - true; - type: run_sql diff --git a/hasura/migrations/1616459505404_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1616459505404_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 069eb786a..000000000 --- a/hasura/migrations/1616459505404_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1616459505404_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1616459505404_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 07671753b..000000000 --- a/hasura/migrations/1616459505404_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - active - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - set: {} - role: user - table: - name: vendors - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1616459520408_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1616459520408_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index fcd8afa18..000000000 --- a/hasura/migrations/1616459520408_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1616459520408_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1616459520408_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 944fccf8b..000000000 --- a/hasura/migrations/1616459520408_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1616459530975_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1616459530975_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index e94d250ff..000000000 --- a/hasura/migrations/1616459530975_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,41 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1616459530975_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1616459530975_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index a586fd5b7..000000000 --- a/hasura/migrations/1616459530975_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: vendors - schema: public - type: create_update_permission diff --git a/hasura/migrations/1616690848634_alter_table_public_billlines_add_column_lbr_adjustment/down.yaml b/hasura/migrations/1616690848634_alter_table_public_billlines_add_column_lbr_adjustment/down.yaml deleted file mode 100644 index c5d2f8246..000000000 --- a/hasura/migrations/1616690848634_alter_table_public_billlines_add_column_lbr_adjustment/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."billlines" DROP COLUMN "lbr_adjustment"; - type: run_sql diff --git a/hasura/migrations/1616690848634_alter_table_public_billlines_add_column_lbr_adjustment/up.yaml b/hasura/migrations/1616690848634_alter_table_public_billlines_add_column_lbr_adjustment/up.yaml deleted file mode 100644 index ebe3a00bd..000000000 --- a/hasura/migrations/1616690848634_alter_table_public_billlines_add_column_lbr_adjustment/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."billlines" ADD COLUMN "lbr_adjustment" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1616690903375_update_permission_user_public_table_billlines/down.yaml b/hasura/migrations/1616690903375_update_permission_user_public_table_billlines/down.yaml deleted file mode 100644 index 283c766e9..000000000 --- a/hasura/migrations/1616690903375_update_permission_user_public_table_billlines/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_insert_permission -- args: - permission: - check: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - line_desc - - quantity - - updated_at - set: {} - role: user - table: - name: billlines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1616690903375_update_permission_user_public_table_billlines/up.yaml b/hasura/migrations/1616690903375_update_permission_user_public_table_billlines/up.yaml deleted file mode 100644 index 507c967e2..000000000 --- a/hasura/migrations/1616690903375_update_permission_user_public_table_billlines/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_insert_permission -- args: - permission: - check: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - lbr_adjustment - - line_desc - - quantity - - updated_at - set: {} - role: user - table: - name: billlines - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1616690912315_update_permission_user_public_table_billlines/down.yaml b/hasura/migrations/1616690912315_update_permission_user_public_table_billlines/down.yaml deleted file mode 100644 index 7e1690469..000000000 --- a/hasura/migrations/1616690912315_update_permission_user_public_table_billlines/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - line_desc - - quantity - - updated_at - computed_fields: [] - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: billlines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1616690912315_update_permission_user_public_table_billlines/up.yaml b/hasura/migrations/1616690912315_update_permission_user_public_table_billlines/up.yaml deleted file mode 100644 index 0d2daa4d5..000000000 --- a/hasura/migrations/1616690912315_update_permission_user_public_table_billlines/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - lbr_adjustment - - line_desc - - quantity - - updated_at - computed_fields: [] - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: billlines - schema: public - type: create_select_permission diff --git a/hasura/migrations/1616690919696_update_permission_user_public_table_billlines/down.yaml b/hasura/migrations/1616690919696_update_permission_user_public_table_billlines/down.yaml deleted file mode 100644 index a3942892a..000000000 --- a/hasura/migrations/1616690919696_update_permission_user_public_table_billlines/down.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - line_desc - - quantity - - updated_at - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: billlines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1616690919696_update_permission_user_public_table_billlines/up.yaml b/hasura/migrations/1616690919696_update_permission_user_public_table_billlines/up.yaml deleted file mode 100644 index 95a79d99a..000000000 --- a/hasura/migrations/1616690919696_update_permission_user_public_table_billlines/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: billlines - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - lbr_adjustment - - line_desc - - quantity - - updated_at - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: billlines - schema: public - type: create_update_permission diff --git a/hasura/migrations/1617658602531_alter_table_public_documents_add_column_size/down.yaml b/hasura/migrations/1617658602531_alter_table_public_documents_add_column_size/down.yaml deleted file mode 100644 index 8e3cf3d99..000000000 --- a/hasura/migrations/1617658602531_alter_table_public_documents_add_column_size/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" DROP COLUMN "size"; - type: run_sql diff --git a/hasura/migrations/1617658602531_alter_table_public_documents_add_column_size/up.yaml b/hasura/migrations/1617658602531_alter_table_public_documents_add_column_size/up.yaml deleted file mode 100644 index 063c6501f..000000000 --- a/hasura/migrations/1617658602531_alter_table_public_documents_add_column_size/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."documents" ADD COLUMN "size" integer NOT NULL DEFAULT - 0; - type: run_sql diff --git a/hasura/migrations/1617658618070_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1617658618070_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 962ce61af..000000000 --- a/hasura/migrations/1617658618070_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,45 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1617658618070_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1617658618070_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 0754a089a..000000000 --- a/hasura/migrations/1617658618070_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_insert_permission -- args: - permission: - check: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - size - - type - - updated_at - - uploaded_by - set: {} - role: user - table: - name: documents - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1617658628914_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1617658628914_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index cb62a4488..000000000 --- a/hasura/migrations/1617658628914_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,46 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - type - - updated_at - - uploaded_by - computed_fields: [] - filter: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1617658628914_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1617658628914_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 9c91df702..000000000 --- a/hasura/migrations/1617658628914_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - size - - type - - updated_at - - uploaded_by - computed_fields: [] - filter: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1617659090899_update_permission_user_public_table_documents/down.yaml b/hasura/migrations/1617659090899_update_permission_user_public_table_documents/down.yaml deleted file mode 100644 index 9c91df702..000000000 --- a/hasura/migrations/1617659090899_update_permission_user_public_table_documents/down.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - size - - type - - updated_at - - uploaded_by - computed_fields: [] - filter: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1617659090899_update_permission_user_public_table_documents/up.yaml b/hasura/migrations/1617659090899_update_permission_user_public_table_documents/up.yaml deleted file mode 100644 index 2f87c23b2..000000000 --- a/hasura/migrations/1617659090899_update_permission_user_public_table_documents/up.yaml +++ /dev/null @@ -1,47 +0,0 @@ -- args: - role: user - table: - name: documents - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - size - - type - - updated_at - - uploaded_by - computed_fields: [] - filter: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: documents - schema: public - type: create_select_permission diff --git a/hasura/migrations/1617659647022_alter_table_public_bodyshops_add_column_jobsizelimit/down.yaml b/hasura/migrations/1617659647022_alter_table_public_bodyshops_add_column_jobsizelimit/down.yaml deleted file mode 100644 index 5be09670f..000000000 --- a/hasura/migrations/1617659647022_alter_table_public_bodyshops_add_column_jobsizelimit/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "jobsizelimit"; - type: run_sql diff --git a/hasura/migrations/1617659647022_alter_table_public_bodyshops_add_column_jobsizelimit/up.yaml b/hasura/migrations/1617659647022_alter_table_public_bodyshops_add_column_jobsizelimit/up.yaml deleted file mode 100644 index 2447cc1b7..000000000 --- a/hasura/migrations/1617659647022_alter_table_public_bodyshops_add_column_jobsizelimit/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "jobsizelimit" integer NOT NULL - DEFAULT 26214400; - type: run_sql diff --git a/hasura/migrations/1617659660451_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1617659660451_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 7541894cb..000000000 --- a/hasura/migrations/1617659660451_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,79 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - sub_status - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1617659660451_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1617659660451_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 5a55ed627..000000000 --- a/hasura/migrations/1617659660451_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - jobsizelimit - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - sub_status - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1617990757965_update_permission_user_public_table_employees/down.yaml b/hasura/migrations/1617990757965_update_permission_user_public_table_employees/down.yaml deleted file mode 100644 index dabd89bba..000000000 --- a/hasura/migrations/1617990757965_update_permission_user_public_table_employees/down.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - rates - - shopid - - termination_date - - updated_at - - user_email - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: employees - schema: public - type: create_select_permission diff --git a/hasura/migrations/1617990757965_update_permission_user_public_table_employees/up.yaml b/hasura/migrations/1617990757965_update_permission_user_public_table_employees/up.yaml deleted file mode 100644 index 9576da9bf..000000000 --- a/hasura/migrations/1617990757965_update_permission_user_public_table_employees/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - role: user - table: - name: employees - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - active - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - rates - - shopid - - termination_date - - updated_at - - user_email - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: employees - schema: public - type: create_select_permission diff --git a/hasura/migrations/1617990875647_update_permission_user_public_table_vendors/down.yaml b/hasura/migrations/1617990875647_update_permission_user_public_table_vendors/down.yaml deleted file mode 100644 index 944fccf8b..000000000 --- a/hasura/migrations/1617990875647_update_permission_user_public_table_vendors/down.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1617990875647_update_permission_user_public_table_vendors/up.yaml b/hasura/migrations/1617990875647_update_permission_user_public_table_vendors/up.yaml deleted file mode 100644 index 98b1676d8..000000000 --- a/hasura/migrations/1617990875647_update_permission_user_public_table_vendors/up.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: vendors - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - active - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: vendors - schema: public - type: create_select_permission diff --git a/hasura/migrations/1618348212289_update_permission_user_public_table_courtesycars/down.yaml b/hasura/migrations/1618348212289_update_permission_user_public_table_courtesycars/down.yaml deleted file mode 100644 index b0294a184..000000000 --- a/hasura/migrations/1618348212289_update_permission_user_public_table_courtesycars/down.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - insuranceexpires - - leaseenddate - - nextservicedate - - purchasedate - - registrationexpires - - serviceenddate - - servicestartdate - - dailycost - - fuel - - mileage - - nextservicekm - - color - - damage - - fleetnumber - - make - - model - - notes - - plate - - status - - vin - - year - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: courtesycars - schema: public - type: create_select_permission diff --git a/hasura/migrations/1618348212289_update_permission_user_public_table_courtesycars/up.yaml b/hasura/migrations/1618348212289_update_permission_user_public_table_courtesycars/up.yaml deleted file mode 100644 index 53d407cf1..000000000 --- a/hasura/migrations/1618348212289_update_permission_user_public_table_courtesycars/up.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- args: - role: user - table: - name: courtesycars - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - insuranceexpires - - leaseenddate - - nextservicedate - - purchasedate - - registrationexpires - - serviceenddate - - servicestartdate - - dailycost - - fuel - - mileage - - nextservicekm - - color - - damage - - fleetnumber - - make - - model - - notes - - plate - - status - - vin - - year - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: courtesycars - schema: public - type: create_select_permission diff --git a/hasura/migrations/1618352856487_alter_table_public_cccontracts_add_column_damage/down.yaml b/hasura/migrations/1618352856487_alter_table_public_cccontracts_add_column_damage/down.yaml deleted file mode 100644 index 619ae9c28..000000000 --- a/hasura/migrations/1618352856487_alter_table_public_cccontracts_add_column_damage/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" DROP COLUMN "damage"; - type: run_sql diff --git a/hasura/migrations/1618352856487_alter_table_public_cccontracts_add_column_damage/up.yaml b/hasura/migrations/1618352856487_alter_table_public_cccontracts_add_column_damage/up.yaml deleted file mode 100644 index b1fe28b48..000000000 --- a/hasura/migrations/1618352856487_alter_table_public_cccontracts_add_column_damage/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ADD COLUMN "damage" text NULL; - type: run_sql diff --git a/hasura/migrations/1618352867949_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1618352867949_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 17c8bdd8c..000000000 --- a/hasura/migrations/1618352867949_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,63 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_insert_permission -- args: - permission: - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1618352867949_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1618352867949_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 4b02d601b..000000000 --- a/hasura/migrations/1618352867949_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,64 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_insert_permission -- args: - permission: - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damage - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1618352878048_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1618352878048_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index e82037eb2..000000000 --- a/hasura/migrations/1618352878048_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,64 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1618352878048_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1618352878048_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index 4740cae6d..000000000 --- a/hasura/migrations/1618352878048_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,65 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damage - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - computed_fields: [] - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: cccontracts - schema: public - type: create_select_permission diff --git a/hasura/migrations/1618352885270_update_permission_user_public_table_cccontracts/down.yaml b/hasura/migrations/1618352885270_update_permission_user_public_table_cccontracts/down.yaml deleted file mode 100644 index 36fe09f7d..000000000 --- a/hasura/migrations/1618352885270_update_permission_user_public_table_cccontracts/down.yaml +++ /dev/null @@ -1,63 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_update_permission diff --git a/hasura/migrations/1618352885270_update_permission_user_public_table_cccontracts/up.yaml b/hasura/migrations/1618352885270_update_permission_user_public_table_cccontracts/up.yaml deleted file mode 100644 index b6334b94b..000000000 --- a/hasura/migrations/1618352885270_update_permission_user_public_table_cccontracts/up.yaml +++ /dev/null @@ -1,64 +0,0 @@ -- args: - role: user - table: - name: cccontracts - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damage - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: cccontracts - schema: public - type: create_update_permission diff --git a/hasura/migrations/1618353607686_alter_table_public_cccontracts_alter_column_driver_dlst/down.yaml b/hasura/migrations/1618353607686_alter_table_public_cccontracts_alter_column_driver_dlst/down.yaml deleted file mode 100644 index 9f5666fec..000000000 --- a/hasura/migrations/1618353607686_alter_table_public_cccontracts_alter_column_driver_dlst/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_dlst" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1618353607686_alter_table_public_cccontracts_alter_column_driver_dlst/up.yaml b/hasura/migrations/1618353607686_alter_table_public_cccontracts_alter_column_driver_dlst/up.yaml deleted file mode 100644 index f04f0dbcb..000000000 --- a/hasura/migrations/1618353607686_alter_table_public_cccontracts_alter_column_driver_dlst/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."cccontracts" ALTER COLUMN "driver_dlst" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1618357029467_run_sql_migration/down.yaml b/hasura/migrations/1618357029467_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1618357029467_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1618357029467_run_sql_migration/up.yaml b/hasura/migrations/1618357029467_run_sql_migration/up.yaml deleted file mode 100644 index 96908682e..000000000 --- a/hasura/migrations/1618357029467_run_sql_migration/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_cccontracts (search text)\n\tRETURNS - SETOF jobs\n\tLANGUAGE plpgsql\n\tSTABLE\n\tAS $function$\nBEGIN\n\tIF search - = '' THEN\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\tcccontracts - c;\n\tELSE\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\tcccontracts - contracts,\n\t\t\tcourtesycars cars,\n\t\t\tjobs jobs\n\t\tWHERE (jobs.ro_number - ILIKE '%' || search || '%'\n\t\t\tOR jobs.ownr_fn ILIKE '%' || search || '%'\n\t\t\tOR - jobs.ownr_ln ILIKE '%' || search || '%'\n\t\t\tOR jobs.ownr_co_nm ILIKE '%' - || search || '%'\n\t\t\tOR contracts.agreementnumber ILIKE '%' || search || - '%'\n\t\t\tOR contracts.driver_fn ILIKE '%' || search || '%'\n\t\t\tOR contracts.driver_ln - ILIKE '%' || search || '%'\n\t\t\tOR cars.fleetnumber ILIKE '%' || search || - '%'\n\t\t\tOR cars.make ILIKE '%' || search || '%'\n\t\t\tOR cars.model ILIKE - '%' || search || '%')\n\t\t\tAND contracts.jobid = jobs.id\n\t\t\tAND contracts.courtesycarid - = cars.id;\n\t\t\t\n\tEND IF;\nEND\n$function$;" - type: run_sql -- args: - name: search_cccontracts - schema: public - type: track_function diff --git a/hasura/migrations/1618357258765_run_sql_migration/down.yaml b/hasura/migrations/1618357258765_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1618357258765_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1618357258765_run_sql_migration/up.yaml b/hasura/migrations/1618357258765_run_sql_migration/up.yaml deleted file mode 100644 index 98030d938..000000000 --- a/hasura/migrations/1618357258765_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: drop function public.search_cccontracts; - type: run_sql diff --git a/hasura/migrations/1618357269948_run_sql_migration/down.yaml b/hasura/migrations/1618357269948_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1618357269948_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1618357269948_run_sql_migration/up.yaml b/hasura/migrations/1618357269948_run_sql_migration/up.yaml deleted file mode 100644 index b9a342519..000000000 --- a/hasura/migrations/1618357269948_run_sql_migration/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_cccontracts(search text)\n RETURNS - SETOF jobs\n LANGUAGE plpgsql\n STABLE\nAS $function$\nBEGIN\n\tIF search = - '' THEN\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\tcccontracts - c;\n\tELSE\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\tcourtesycars - cars,\n\t\t\tjobs jobs,\n\t\t\tcccontracts contracts\n\t\t\t\n\t\tWHERE (jobs.ro_number - ILIKE '%' || search || '%'\n\t\t\tOR jobs.ownr_fn ILIKE '%' || search || '%'\n\t\t\tOR - jobs.ownr_ln ILIKE '%' || search || '%'\n\t\t\tOR jobs.ownr_co_nm ILIKE '%' - || search || '%'\n\t\t\tOR contracts.agreementnumber ILIKE '%' || search || - '%'\n\t\t\tOR contracts.driver_fn ILIKE '%' || search || '%'\n\t\t\tOR contracts.driver_ln - ILIKE '%' || search || '%'\n\t\t\tOR cars.fleetnumber ILIKE '%' || search || - '%'\n\t\t\tOR cars.make ILIKE '%' || search || '%'\n\t\t\tOR cars.model ILIKE - '%' || search || '%')\n\t\t\tAND contracts.jobid = jobs.id\n\t\t\tAND contracts.courtesycarid - = cars.id;\n\t\t\t\n\tEND IF;\nEND\n$function$;" - type: run_sql -- args: - name: search_cccontracts - schema: public - type: track_function diff --git a/hasura/migrations/1618357338608_run_sql_migration/down.yaml b/hasura/migrations/1618357338608_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1618357338608_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1618357338608_run_sql_migration/up.yaml b/hasura/migrations/1618357338608_run_sql_migration/up.yaml deleted file mode 100644 index 573cf9bf4..000000000 --- a/hasura/migrations/1618357338608_run_sql_migration/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function public.search_cccontracts;\nCREATE OR REPLACE FUNCTION public.search_cccontracts(search - text)\n RETURNS SETOF cccontracts\n LANGUAGE plpgsql\n STABLE\nAS $function$\nBEGIN\n\tIF - search = '' THEN\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\tcccontracts - c;\n\tELSE\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\tcourtesycars - cars,\n\t\t\tjobs jobs,\n\t\t\tcccontracts contracts\n\t\t\t\n\t\tWHERE (jobs.ro_number - ILIKE '%' || search || '%'\n\t\t\tOR jobs.ownr_fn ILIKE '%' || search || '%'\n\t\t\tOR - jobs.ownr_ln ILIKE '%' || search || '%'\n\t\t\tOR jobs.ownr_co_nm ILIKE '%' - || search || '%'\n\t\t\tOR contracts.agreementnumber ILIKE '%' || search || - '%'\n\t\t\tOR contracts.driver_fn ILIKE '%' || search || '%'\n\t\t\tOR contracts.driver_ln - ILIKE '%' || search || '%'\n\t\t\tOR cars.fleetnumber ILIKE '%' || search || - '%'\n\t\t\tOR cars.make ILIKE '%' || search || '%'\n\t\t\tOR cars.model ILIKE - '%' || search || '%')\n\t\t\tAND contracts.jobid = jobs.id\n\t\t\tAND contracts.courtesycarid - = cars.id;\n\t\t\t\n\tEND IF;\nEND\n$function$;" - type: run_sql -- args: - name: search_cccontracts - schema: public - type: track_function diff --git a/hasura/migrations/1618358104427_run_sql_migration/down.yaml b/hasura/migrations/1618358104427_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1618358104427_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1618358104427_run_sql_migration/up.yaml b/hasura/migrations/1618358104427_run_sql_migration/up.yaml deleted file mode 100644 index 98030d938..000000000 --- a/hasura/migrations/1618358104427_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: drop function public.search_cccontracts; - type: run_sql diff --git a/hasura/migrations/1618358164400_run_sql_migration/down.yaml b/hasura/migrations/1618358164400_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1618358164400_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1618358164400_run_sql_migration/up.yaml b/hasura/migrations/1618358164400_run_sql_migration/up.yaml deleted file mode 100644 index 0aa518ce0..000000000 --- a/hasura/migrations/1618358164400_run_sql_migration/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_cccontracts(search text)\n RETURNS - SETOF cccontracts\n LANGUAGE plpgsql\n STABLE\nAS $function$\nBEGIN\n\tIF search - = '' THEN\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\tcccontracts - c;\n\tELSE\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\tcourtesycars - cars,\n\t\t\tjobs jobs,\n\t\t\tcccontracts contracts\n\t\t\t\n\t\tWHERE (jobs.ro_number - ILIKE '%' || search || '%'\n\t\t\tOR jobs.ownr_fn ILIKE '%' || search || '%'\n\t\t\tOR - jobs.ownr_ln ILIKE '%' || search || '%'\n\t\t\tOR jobs.ownr_co_nm ILIKE '%' - || search || '%'\n\t\t\tOR (cast(contracts.agreementnumber as text)) ILIKE '%' - || search || '%'\n\t\t\tOR contracts.driver_fn ILIKE '%' || search || '%'\n\t\t\tOR - contracts.driver_ln ILIKE '%' || search || '%'\n\t\t\tOR cars.fleetnumber ILIKE - '%' || search || '%'\n\t\t\tOR cars.make ILIKE '%' || search || '%'\n\t\t\tOR - cars.model ILIKE '%' || search || '%')\n\t\t\tAND contracts.jobid = jobs.id\n\t\t\tAND - contracts.courtesycarid = cars.id;\n\t\t\t\n\tEND IF;\nEND\n$function$;" - type: run_sql -- args: - name: search_cccontracts - schema: public - type: track_function diff --git a/hasura/migrations/1618358356468_run_sql_migration/down.yaml b/hasura/migrations/1618358356468_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1618358356468_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1618358356468_run_sql_migration/up.yaml b/hasura/migrations/1618358356468_run_sql_migration/up.yaml deleted file mode 100644 index 7074e7b31..000000000 --- a/hasura/migrations/1618358356468_run_sql_migration/up.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - cascade: true - read_only: false - sql: "DROP FUNCTION public.search_cccontracts;\n\nCREATE OR REPLACE FUNCTION public.search_cccontracts(search - text)\n RETURNS SETOF cccontracts\n LANGUAGE plpgsql\n STABLE\nAS $function$\nBEGIN\n\tIF - search = '' THEN\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\tcccontracts - c;\n\tELSE\n\t\tRETURN query\n\t\tSELECT\n\t\t\tcontracts.*\n\t\tFROM\n\t\tcourtesycars - cars,\n\t\t\tjobs jobs,\n\t\t\tcccontracts contracts\n\t\t\t\n\t\tWHERE (jobs.ro_number - ILIKE '%' || search || '%'\n\t\t\tOR jobs.ownr_fn ILIKE '%' || search || '%'\n\t\t\tOR - jobs.ownr_ln ILIKE '%' || search || '%'\n\t\t\tOR jobs.ownr_co_nm ILIKE '%' - || search || '%'\n\t\t\tOR (cast(contracts.agreementnumber as text)) ILIKE '%' - || search || '%'\n\t\t\tOR contracts.driver_fn ILIKE '%' || search || '%'\n\t\t\tOR - contracts.driver_ln ILIKE '%' || search || '%'\n\t\t\tOR cars.fleetnumber ILIKE - '%' || search || '%'\n\t\t\tOR cars.make ILIKE '%' || search || '%'\n\t\t\tOR - cars.model ILIKE '%' || search || '%')\n\t\t\tAND contracts.jobid = jobs.id\n\t\t\tAND - contracts.courtesycarid = cars.id;\n\t\t\t\n\tEND IF;\nEND\n$function$;" - type: run_sql -- args: - name: search_cccontracts - schema: public - type: track_function diff --git a/hasura/migrations/1618421300727_alter_table_public_bodyshops_add_column_md_ccc_rates/down.yaml b/hasura/migrations/1618421300727_alter_table_public_bodyshops_add_column_md_ccc_rates/down.yaml deleted file mode 100644 index b1935e892..000000000 --- a/hasura/migrations/1618421300727_alter_table_public_bodyshops_add_column_md_ccc_rates/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "md_ccc_rates"; - type: run_sql diff --git a/hasura/migrations/1618421300727_alter_table_public_bodyshops_add_column_md_ccc_rates/up.yaml b/hasura/migrations/1618421300727_alter_table_public_bodyshops_add_column_md_ccc_rates/up.yaml deleted file mode 100644 index c501c1a72..000000000 --- a/hasura/migrations/1618421300727_alter_table_public_bodyshops_add_column_md_ccc_rates/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "md_ccc_rates" jsonb NULL DEFAULT - jsonb_build_array(); - type: run_sql diff --git a/hasura/migrations/1618421315452_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1618421315452_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index 5a55ed627..000000000 --- a/hasura/migrations/1618421315452_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - jobsizelimit - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - sub_status - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1618421315452_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1618421315452_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index f687795eb..000000000 --- a/hasura/migrations/1618421315452_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,81 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - jobsizelimit - - logo_img_path - - md_categories - - md_ccc_rates - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - sub_status - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1618421323654_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1618421323654_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index f128e0ddf..000000000 --- a/hasura/migrations/1618421323654_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,74 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1618421323654_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1618421323654_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index cfdcd2224..000000000 --- a/hasura/migrations/1618421323654_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_ccc_rates - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1618431549525_run_sql_migration/down.yaml b/hasura/migrations/1618431549525_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1618431549525_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1618431549525_run_sql_migration/up.yaml b/hasura/migrations/1618431549525_run_sql_migration/up.yaml deleted file mode 100644 index fa7c5de9d..000000000 --- a/hasura/migrations/1618431549525_run_sql_migration/up.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function public.search_payments;\nCREATE OR REPLACE FUNCTION public.search_payments(search - text)\n RETURNS SETOF payments\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n - \ if search = '' then\n return query select * from payments ;\n else \n - \ return query SELECT\n payments.*\nFROM\n payments, jobs\nWHERE\npayment.jobid - = jobs.id AND\n(\nsearch <% jobs.ownr_fn OR\nsearch <% jobs.ownr_ln OR\nsearch - <% jobs.ownr_co_nm OR\nsearch <% jobs.ro_number OR\n search <% (payer) OR\n - \ search <% (transactionid) OR\n search <% (memo));\n end if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: search_payments - schema: public - type: track_function diff --git a/hasura/migrations/1618431624011_run_sql_migration/down.yaml b/hasura/migrations/1618431624011_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1618431624011_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1618431624011_run_sql_migration/up.yaml b/hasura/migrations/1618431624011_run_sql_migration/up.yaml deleted file mode 100644 index cc7065848..000000000 --- a/hasura/migrations/1618431624011_run_sql_migration/up.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function public.search_payments;\nCREATE OR REPLACE FUNCTION public.search_payments(search - text)\n RETURNS SETOF payments\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n - \ if search = '' then\n return query select * from payments ;\n else \n - \ return query SELECT\n p.*\nFROM\n payments p, jobs j\nWHERE\npayment.jobid - = jobs.id AND\n(\nsearch <% j.ownr_fn OR\nsearch <% j.ownr_ln OR\nsearch <% - j.ownr_co_nm OR\nsearch <% j.ro_number OR\n search <% (p.payer) OR\n search - <% (p.transactionid) OR\n search <% (p.memo));\n end if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: search_payments - schema: public - type: track_function diff --git a/hasura/migrations/1618431735033_run_sql_migration/down.yaml b/hasura/migrations/1618431735033_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1618431735033_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1618431735033_run_sql_migration/up.yaml b/hasura/migrations/1618431735033_run_sql_migration/up.yaml deleted file mode 100644 index 9a5f28283..000000000 --- a/hasura/migrations/1618431735033_run_sql_migration/up.yaml +++ /dev/null @@ -1,15 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function public.search_payments;\nCREATE OR REPLACE FUNCTION public.search_payments(search - text)\n RETURNS SETOF payments\n LANGUAGE plpgsql\n STABLE\nAS $function$\n\nBEGIN\n - \ if search = '' then\n return query select * from payments ;\n else \n - \ return query SELECT\n p.*\nFROM\n payments p, jobs j\nWHERE\np.jobid = - j.id AND\n(\nsearch <% j.ownr_fn OR\nsearch <% j.ownr_ln OR\nsearch <% j.ownr_co_nm - OR\nsearch <% j.ro_number OR\n search <% (p.payer) OR\n search <% (p.transactionid) - OR\n search <% (p.memo));\n end if;\n\n\tEND\n$function$;" - type: run_sql -- args: - name: search_payments - schema: public - type: track_function diff --git a/hasura/migrations/1618432990073_run_sql_migration/down.yaml b/hasura/migrations/1618432990073_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1618432990073_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1618432990073_run_sql_migration/up.yaml b/hasura/migrations/1618432990073_run_sql_migration/up.yaml deleted file mode 100644 index 80cf12d7c..000000000 --- a/hasura/migrations/1618432990073_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: drop trigger if exists audit_trigger_jobs on jobs; - type: run_sql diff --git a/hasura/migrations/1618965084777_create_table_public_exportlog/down.yaml b/hasura/migrations/1618965084777_create_table_public_exportlog/down.yaml deleted file mode 100644 index b860fbfc2..000000000 --- a/hasura/migrations/1618965084777_create_table_public_exportlog/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."exportlog"; - type: run_sql diff --git a/hasura/migrations/1618965084777_create_table_public_exportlog/up.yaml b/hasura/migrations/1618965084777_create_table_public_exportlog/up.yaml deleted file mode 100644 index 6e862cf61..000000000 --- a/hasura/migrations/1618965084777_create_table_public_exportlog/up.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"exportlog\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"jobid\" uuid, \"billid\" uuid, \"paymentid\" uuid, - \"successful\" boolean NOT NULL DEFAULT false, \"message\" text NOT NULL, \"bodyshopid\" - uuid NOT NULL, PRIMARY KEY (\"id\") , FOREIGN KEY (\"jobid\") REFERENCES \"public\".\"jobs\"(\"id\") - ON UPDATE restrict ON DELETE restrict, FOREIGN KEY (\"paymentid\") REFERENCES - \"public\".\"payments\"(\"id\") ON UPDATE restrict ON DELETE restrict, FOREIGN - KEY (\"billid\") REFERENCES \"public\".\"bills\"(\"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_exportlog_updated_at\"\nBEFORE - UPDATE ON \"public\".\"exportlog\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_exportlog_updated_at\" ON \"public\".\"exportlog\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';" - type: run_sql -- args: - name: exportlog - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1618965114806_alter_table_public_exportlog_add_column_useremail/down.yaml b/hasura/migrations/1618965114806_alter_table_public_exportlog_add_column_useremail/down.yaml deleted file mode 100644 index ea6ea9be1..000000000 --- a/hasura/migrations/1618965114806_alter_table_public_exportlog_add_column_useremail/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."exportlog" DROP COLUMN "useremail"; - type: run_sql diff --git a/hasura/migrations/1618965114806_alter_table_public_exportlog_add_column_useremail/up.yaml b/hasura/migrations/1618965114806_alter_table_public_exportlog_add_column_useremail/up.yaml deleted file mode 100644 index 0d5ac5c69..000000000 --- a/hasura/migrations/1618965114806_alter_table_public_exportlog_add_column_useremail/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."exportlog" ADD COLUMN "useremail" text NOT NULL; - type: run_sql diff --git a/hasura/migrations/1618965166855_set_fk_public_exportlog_useremail/down.yaml b/hasura/migrations/1618965166855_set_fk_public_exportlog_useremail/down.yaml deleted file mode 100644 index e208cb68d..000000000 --- a/hasura/migrations/1618965166855_set_fk_public_exportlog_useremail/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."exportlog" drop constraint "exportlog_useremail_fkey"; - type: run_sql diff --git a/hasura/migrations/1618965166855_set_fk_public_exportlog_useremail/up.yaml b/hasura/migrations/1618965166855_set_fk_public_exportlog_useremail/up.yaml deleted file mode 100644 index bdef6bda8..000000000 --- a/hasura/migrations/1618965166855_set_fk_public_exportlog_useremail/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."exportlog" - add constraint "exportlog_useremail_fkey" - foreign key ("useremail") - references "public"."users" - ("email") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1618965201750_track_all_relationships/down.yaml b/hasura/migrations/1618965201750_track_all_relationships/down.yaml deleted file mode 100644 index 3b81bc705..000000000 --- a/hasura/migrations/1618965201750_track_all_relationships/down.yaml +++ /dev/null @@ -1,48 +0,0 @@ -- args: - relationship: exportlogs - table: - name: users - schema: public - type: drop_relationship -- args: - relationship: exportlogs - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: exportlogs - table: - name: bills - schema: public - type: drop_relationship -- args: - relationship: exportlogs - table: - name: payments - schema: public - type: drop_relationship -- args: - relationship: payment - table: - name: exportlog - schema: public - type: drop_relationship -- args: - relationship: user - table: - name: exportlog - schema: public - type: drop_relationship -- args: - relationship: job - table: - name: exportlog - schema: public - type: drop_relationship -- args: - relationship: bill - table: - name: exportlog - schema: public - type: drop_relationship diff --git a/hasura/migrations/1618965201750_track_all_relationships/up.yaml b/hasura/migrations/1618965201750_track_all_relationships/up.yaml deleted file mode 100644 index 02c480ba8..000000000 --- a/hasura/migrations/1618965201750_track_all_relationships/up.yaml +++ /dev/null @@ -1,80 +0,0 @@ -- args: - name: exportlogs - table: - name: users - schema: public - using: - foreign_key_constraint_on: - column: useremail - table: - name: exportlog - schema: public - type: create_array_relationship -- args: - name: exportlogs - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: - column: jobid - table: - name: exportlog - schema: public - type: create_array_relationship -- args: - name: exportlogs - table: - name: bills - schema: public - using: - foreign_key_constraint_on: - column: billid - table: - name: exportlog - schema: public - type: create_array_relationship -- args: - name: exportlogs - table: - name: payments - schema: public - using: - foreign_key_constraint_on: - column: paymentid - table: - name: exportlog - schema: public - type: create_array_relationship -- args: - name: payment - table: - name: exportlog - schema: public - using: - foreign_key_constraint_on: paymentid - type: create_object_relationship -- args: - name: user - table: - name: exportlog - schema: public - using: - foreign_key_constraint_on: useremail - type: create_object_relationship -- args: - name: job - table: - name: exportlog - schema: public - using: - foreign_key_constraint_on: jobid - type: create_object_relationship -- args: - name: bill - table: - name: exportlog - schema: public - using: - foreign_key_constraint_on: billid - type: create_object_relationship diff --git a/hasura/migrations/1618965243636_set_fk_public_exportlog_bodyshopid/down.yaml b/hasura/migrations/1618965243636_set_fk_public_exportlog_bodyshopid/down.yaml deleted file mode 100644 index 6bfdcbb6c..000000000 --- a/hasura/migrations/1618965243636_set_fk_public_exportlog_bodyshopid/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."exportlog" drop constraint "exportlog_bodyshopid_fkey"; - type: run_sql diff --git a/hasura/migrations/1618965243636_set_fk_public_exportlog_bodyshopid/up.yaml b/hasura/migrations/1618965243636_set_fk_public_exportlog_bodyshopid/up.yaml deleted file mode 100644 index 3b8de1723..000000000 --- a/hasura/migrations/1618965243636_set_fk_public_exportlog_bodyshopid/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."exportlog" - add constraint "exportlog_bodyshopid_fkey" - foreign key ("bodyshopid") - references "public"."bodyshops" - ("id") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1618965255172_track_all_relationships/down.yaml b/hasura/migrations/1618965255172_track_all_relationships/down.yaml deleted file mode 100644 index 4442ea08b..000000000 --- a/hasura/migrations/1618965255172_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: exportlogs - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: exportlog - schema: public - type: drop_relationship diff --git a/hasura/migrations/1618965255172_track_all_relationships/up.yaml b/hasura/migrations/1618965255172_track_all_relationships/up.yaml deleted file mode 100644 index 9b3d9ccee..000000000 --- a/hasura/migrations/1618965255172_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: exportlogs - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: exportlog - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: exportlog - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship diff --git a/hasura/migrations/1618965326359_update_permission_user_public_table_exportlog/down.yaml b/hasura/migrations/1618965326359_update_permission_user_public_table_exportlog/down.yaml deleted file mode 100644 index c6801826d..000000000 --- a/hasura/migrations/1618965326359_update_permission_user_public_table_exportlog/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: exportlog - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1618965326359_update_permission_user_public_table_exportlog/up.yaml b/hasura/migrations/1618965326359_update_permission_user_public_table_exportlog/up.yaml deleted file mode 100644 index e628656eb..000000000 --- a/hasura/migrations/1618965326359_update_permission_user_public_table_exportlog/up.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - permission: - allow_upsert: true - backend_only: false - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - billid - - paymentid - - successful - - message - - bodyshopid - - useremail - set: {} - role: user - table: - name: exportlog - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1618965339695_update_permission_user_public_table_exportlog/down.yaml b/hasura/migrations/1618965339695_update_permission_user_public_table_exportlog/down.yaml deleted file mode 100644 index 44be3351d..000000000 --- a/hasura/migrations/1618965339695_update_permission_user_public_table_exportlog/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: exportlog - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1618965339695_update_permission_user_public_table_exportlog/up.yaml b/hasura/migrations/1618965339695_update_permission_user_public_table_exportlog/up.yaml deleted file mode 100644 index be119622c..000000000 --- a/hasura/migrations/1618965339695_update_permission_user_public_table_exportlog/up.yaml +++ /dev/null @@ -1,31 +0,0 @@ -- args: - permission: - allow_aggregations: true - backend_only: false - columns: - - successful - - message - - useremail - - created_at - - updated_at - - billid - - bodyshopid - - id - - jobid - - paymentid - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: exportlog - schema: public - type: create_select_permission diff --git a/hasura/migrations/1619033097398_alter_table_public_exportlog_alter_column_message/down.yaml b/hasura/migrations/1619033097398_alter_table_public_exportlog_alter_column_message/down.yaml deleted file mode 100644 index 6f08e5bc3..000000000 --- a/hasura/migrations/1619033097398_alter_table_public_exportlog_alter_column_message/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."exportlog" ALTER COLUMN "message" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1619033097398_alter_table_public_exportlog_alter_column_message/up.yaml b/hasura/migrations/1619033097398_alter_table_public_exportlog_alter_column_message/up.yaml deleted file mode 100644 index d8de55856..000000000 --- a/hasura/migrations/1619033097398_alter_table_public_exportlog_alter_column_message/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."exportlog" ALTER COLUMN "message" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1619039107283_run_sql_migration/down.yaml b/hasura/migrations/1619039107283_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619039107283_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619039107283_run_sql_migration/up.yaml b/hasura/migrations/1619039107283_run_sql_migration/up.yaml deleted file mode 100644 index 5797d5fd2..000000000 --- a/hasura/migrations/1619039107283_run_sql_migration/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE\r\nOR REPLACE FUNCTION public.search_exportlog(search text) RETURNS - SETOF exportlog LANGUAGE plpgsql STABLE AS $function$ BEGIN IF search = '' THEN - RETURN query\r\nSELECT\r\n *\r\nFROM\r\n exportlog e;\r\n ELSE RETURN query\r\nSELECT\r\n - \ exportlog.*\r\nFROM\r\n exportlog e,\r\n jobs j,\r\n payments p,\r\n bills - b,\r\n users u\r\nWHERE\r\n (\r\n j.ro_number ILIKE '%' || search || '%'\r\n - \ OR b.invoice_number ILIKE '%' || search || '%'\r\n OR p.paymentnum ILIKE - '%' || search || '%'\r\n OR u.email ILIKE '%' || search || '%'\r\n\r\n )\r\n - \ AND (e.jobid = j.id\r\n or e.paymentid = p.id\r\n or e.billid = b.id\r\nor - e.useremail = u.email)\r\n;\r\nEND IF;\r\nEND $function$;" - type: run_sql -- args: - name: search_exportlog - schema: public - type: track_function diff --git a/hasura/migrations/1619039299307_run_sql_migration/down.yaml b/hasura/migrations/1619039299307_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619039299307_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619039299307_run_sql_migration/up.yaml b/hasura/migrations/1619039299307_run_sql_migration/up.yaml deleted file mode 100644 index 868236bc1..000000000 --- a/hasura/migrations/1619039299307_run_sql_migration/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function public.search_exportlog;\r\n\r\nCREATE\r\nOR REPLACE FUNCTION - public.search_exportlog(search text) RETURNS SETOF exportlog LANGUAGE plpgsql - STABLE AS $function$ BEGIN IF search = '' THEN RETURN query\r\nSELECT\r\n *\r\nFROM\r\n - \ exportlog e;\r\n ELSE RETURN query\r\nSELECT\r\n exportlog.*\r\nFROM\r\n - \ exportlog e,\r\n jobs j,\r\n payments p,\r\n bills b,\r\n users u\r\nWHERE\r\n - \ (\r\n j.ro_number ILIKE '%' || search || '%'\r\n OR b.invoice_number - ILIKE '%' || search || '%'\r\n OR p.paymentnum ILIKE '%' || search || '%'\r\n - \ OR u.email ILIKE '%' || search || '%'\r\n\r\n )\r\n AND (e.jobid = j.id\r\n - \ or e.paymentid = p.id\r\n or e.billid = b.id\r\nor u.useremail = u.email)\r\n;\r\nEND - IF;\r\nEND $function$;" - type: run_sql -- args: - name: search_exportlog - schema: public - type: track_function diff --git a/hasura/migrations/1619039339617_run_sql_migration/down.yaml b/hasura/migrations/1619039339617_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619039339617_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619039339617_run_sql_migration/up.yaml b/hasura/migrations/1619039339617_run_sql_migration/up.yaml deleted file mode 100644 index bb1d9344b..000000000 --- a/hasura/migrations/1619039339617_run_sql_migration/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function public.search_exportlog;\r\n\r\nCREATE\r\nOR REPLACE FUNCTION - public.search_exportlog(search text) RETURNS SETOF exportlog LANGUAGE plpgsql - STABLE AS $function$ BEGIN IF search = '' THEN RETURN query\r\nSELECT\r\n *\r\nFROM\r\n - \ exportlog e;\r\n ELSE RETURN query\r\nSELECT\r\n e.*\r\nFROM\r\n exportlog - e,\r\n jobs j,\r\n payments p,\r\n bills b,\r\n users u\r\nWHERE\r\n (\r\n - \ j.ro_number ILIKE '%' || search || '%'\r\n OR b.invoice_number ILIKE - '%' || search || '%'\r\n OR p.paymentnum ILIKE '%' || search || '%'\r\n OR - u.email ILIKE '%' || search || '%'\r\n\r\n )\r\n AND (e.jobid = j.id\r\n or - e.paymentid = p.id\r\n or e.billid = b.id\r\nor u.useremail = u.email)\r\n;\r\nEND - IF;\r\nEND $function$;" - type: run_sql -- args: - name: search_exportlog - schema: public - type: track_function diff --git a/hasura/migrations/1619039390662_run_sql_migration/down.yaml b/hasura/migrations/1619039390662_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619039390662_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619039390662_run_sql_migration/up.yaml b/hasura/migrations/1619039390662_run_sql_migration/up.yaml deleted file mode 100644 index 4994ecacc..000000000 --- a/hasura/migrations/1619039390662_run_sql_migration/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function public.search_exportlog;\r\n\r\nCREATE\r\nOR REPLACE FUNCTION - public.search_exportlog(search text) RETURNS SETOF exportlog LANGUAGE plpgsql - STABLE AS $function$ BEGIN IF search = '' THEN RETURN query\r\nSELECT\r\n *\r\nFROM\r\n - \ exportlog e;\r\n ELSE RETURN query\r\nSELECT\r\n e.*\r\nFROM\r\n exportlog - e,\r\n jobs j,\r\n payments p,\r\n bills b\r\nWHERE\r\n (\r\n j.ro_number - ILIKE '%' || search || '%'\r\n OR b.invoice_number ILIKE '%' || search || - '%'\r\n OR p.paymentnum ILIKE '%' || search || '%'\r\n OR e.useremail - ILIKE '%' || search || '%'\r\n\r\n )\r\n AND (e.jobid = j.id\r\n or e.paymentid - = p.id\r\n or e.billid = b.id)\r\n;\r\nEND IF;\r\nEND $function$;" - type: run_sql -- args: - name: search_exportlog - schema: public - type: track_function diff --git a/hasura/migrations/1619039746435_run_sql_migration/down.yaml b/hasura/migrations/1619039746435_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619039746435_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619039746435_run_sql_migration/up.yaml b/hasura/migrations/1619039746435_run_sql_migration/up.yaml deleted file mode 100644 index 4a40478c1..000000000 --- a/hasura/migrations/1619039746435_run_sql_migration/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function public.search_exportlog;\r\n\r\nCREATE\r\nOR REPLACE FUNCTION - public.search_exportlog(search text) RETURNS SETOF exportlog LANGUAGE plpgsql - STABLE AS $function$ BEGIN IF search = '' THEN RETURN query\r\nSELECT\r\n *\r\nFROM\r\n - \ exportlog e;\r\n ELSE RETURN query\r\nSELECT\r\n e.*\r\nFROM\r\n exportlog - e,\r\n jobs j,\r\n payments p,\r\n bills b\r\nWHERE\r\n(e.jobid = j.id and - \ j.ro_number ILIKE '%' || search || '%') OR\r\n(e.paymentid = p.id and p.paymentnum - ILIKE '%' || search || '%') OR\r\n(e.billid = b.id and b.invoice_number ILIKE - '%' || search || '%') OR\r\n e.useremail ILIKE '%' || search || '%'\r\n\r\n - \r\n \r\n;\r\nEND IF;\r\nEND $function$;" - type: run_sql -- args: - name: search_exportlog - schema: public - type: track_function diff --git a/hasura/migrations/1619039995255_run_sql_migration/down.yaml b/hasura/migrations/1619039995255_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619039995255_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619039995255_run_sql_migration/up.yaml b/hasura/migrations/1619039995255_run_sql_migration/up.yaml deleted file mode 100644 index 1bb31dcf8..000000000 --- a/hasura/migrations/1619039995255_run_sql_migration/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function public.search_exportlog;\r\n\r\nCREATE\r\nOR REPLACE FUNCTION - public.search_exportlog(search text) RETURNS SETOF exportlog LANGUAGE plpgsql - STABLE AS $function$ BEGIN IF search = '' THEN RETURN query\r\nSELECT\r\n *\r\nFROM\r\n - \ exportlog e;\r\n ELSE RETURN query\r\nSELECT\r\n e.*\r\nFROM\r\n exportlog - e\r\nINNER JOIN payments p \r\n ON p.id = e.paymentid\r\nINNER JOIN bills - b\r\n ON e.billid = b.id\r\n \r\nWHERE\r\n\r\n\r\n\r\n (\r\n j.ro_number - ILIKE '%' || search || '%'\r\n OR b.invoice_number ILIKE '%' || search || - '%'\r\n OR p.paymentnum ILIKE '%' || search || '%'\r\n OR e.useremail - ILIKE '%' || search || '%'\r\n\r\n )\r\n AND (e.jobid = j.id\r\n or e.paymentid - = p.id\r\n \r\n or e.billid = b.id)\r\n \r\n \r\n;\r\nEND IF;\r\nEND $function$;" - type: run_sql -- args: - name: search_exportlog - schema: public - type: track_function diff --git a/hasura/migrations/1619040031634_run_sql_migration/down.yaml b/hasura/migrations/1619040031634_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619040031634_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619040031634_run_sql_migration/up.yaml b/hasura/migrations/1619040031634_run_sql_migration/up.yaml deleted file mode 100644 index 217ebc7e0..000000000 --- a/hasura/migrations/1619040031634_run_sql_migration/up.yaml +++ /dev/null @@ -1,19 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function public.search_exportlog;\r\n\r\nCREATE\r\nOR REPLACE FUNCTION - public.search_exportlog(search text) RETURNS SETOF exportlog LANGUAGE plpgsql - STABLE AS $function$ BEGIN IF search = '' THEN RETURN query\r\nSELECT\r\n *\r\nFROM\r\n - \ exportlog e;\r\n ELSE RETURN query\r\nSELECT\r\n e.*\r\nFROM\r\n exportlog - e\r\n INNER JOIN jobs j on j.id = e.jobid\r\nINNER JOIN payments p \r\n ON - p.id = e.paymentid\r\nINNER JOIN bills b\r\n ON e.billid = b.id\r\n \r\nWHERE\r\n\r\n\r\n\r\n - \ (\r\n j.ro_number ILIKE '%' || search || '%'\r\n OR b.invoice_number - ILIKE '%' || search || '%'\r\n OR p.paymentnum ILIKE '%' || search || '%'\r\n - \ OR e.useremail ILIKE '%' || search || '%'\r\n\r\n )\r\n AND (e.jobid = - j.id\r\n or e.paymentid = p.id\r\n \r\n or e.billid = b.id)\r\n \r\n \r\n;\r\nEND - IF;\r\nEND $function$;" - type: run_sql -- args: - name: search_exportlog - schema: public - type: track_function diff --git a/hasura/migrations/1619040190377_run_sql_migration/down.yaml b/hasura/migrations/1619040190377_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619040190377_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619040190377_run_sql_migration/up.yaml b/hasura/migrations/1619040190377_run_sql_migration/up.yaml deleted file mode 100644 index a7cfba0c2..000000000 --- a/hasura/migrations/1619040190377_run_sql_migration/up.yaml +++ /dev/null @@ -1,19 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function public.search_exportlog;\r\n\r\nCREATE\r\nOR REPLACE FUNCTION - public.search_exportlog(search text) RETURNS SETOF exportlog LANGUAGE plpgsql - STABLE AS $function$ BEGIN IF search = '' THEN RETURN query\r\nSELECT\r\n *\r\nFROM\r\n - \ exportlog e;\r\n ELSE RETURN query\r\nSELECT\r\n e.*\r\nFROM\r\n exportlog - e\r\n LEFT JOIN jobs j on j.id = e.jobid\r\nLEFT JOIN payments p \r\n ON - p.id = e.paymentid\r\nLEFT JOIN bills b\r\n ON e.billid = b.id\r\n \r\nWHERE\r\n\r\n\r\n\r\n - \ (\r\n j.ro_number ILIKE '%' || search || '%'\r\n OR b.invoice_number - ILIKE '%' || search || '%'\r\n OR p.paymentnum ILIKE '%' || search || '%'\r\n - \ OR e.useremail ILIKE '%' || search || '%'\r\n\r\n )\r\n AND (e.jobid = - j.id\r\n or e.paymentid = p.id\r\n \r\n or e.billid = b.id)\r\n \r\n \r\n;\r\nEND - IF;\r\nEND $function$;" - type: run_sql -- args: - name: search_exportlog - schema: public - type: track_function diff --git a/hasura/migrations/1619110268248_create_table_public_ioevents/down.yaml b/hasura/migrations/1619110268248_create_table_public_ioevents/down.yaml deleted file mode 100644 index e9d364bb7..000000000 --- a/hasura/migrations/1619110268248_create_table_public_ioevents/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."ioevents"; - type: run_sql diff --git a/hasura/migrations/1619110268248_create_table_public_ioevents/up.yaml b/hasura/migrations/1619110268248_create_table_public_ioevents/up.yaml deleted file mode 100644 index 520597ef7..000000000 --- a/hasura/migrations/1619110268248_create_table_public_ioevents/up.yaml +++ /dev/null @@ -1,11 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE TABLE "public"."ioevents"("id" bigserial NOT NULL, "created_at" timestamptz - NOT NULL DEFAULT now(), "operationname" text NOT NULL, "time" numeric, PRIMARY - KEY ("id") ); - type: run_sql -- args: - name: ioevents - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1619110302583_alter_table_public_ioevents_add_column_variables/down.yaml b/hasura/migrations/1619110302583_alter_table_public_ioevents_add_column_variables/down.yaml deleted file mode 100644 index 8286fc6c3..000000000 --- a/hasura/migrations/1619110302583_alter_table_public_ioevents_add_column_variables/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."ioevents" DROP COLUMN "variables"; - type: run_sql diff --git a/hasura/migrations/1619110302583_alter_table_public_ioevents_add_column_variables/up.yaml b/hasura/migrations/1619110302583_alter_table_public_ioevents_add_column_variables/up.yaml deleted file mode 100644 index 43d735ea6..000000000 --- a/hasura/migrations/1619110302583_alter_table_public_ioevents_add_column_variables/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."ioevents" ADD COLUMN "variables" jsonb NULL; - type: run_sql diff --git a/hasura/migrations/1619110334411_alter_table_public_ioevents_add_column_dbevent/down.yaml b/hasura/migrations/1619110334411_alter_table_public_ioevents_add_column_dbevent/down.yaml deleted file mode 100644 index 97e3fc2b5..000000000 --- a/hasura/migrations/1619110334411_alter_table_public_ioevents_add_column_dbevent/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."ioevents" DROP COLUMN "dbevent"; - type: run_sql diff --git a/hasura/migrations/1619110334411_alter_table_public_ioevents_add_column_dbevent/up.yaml b/hasura/migrations/1619110334411_alter_table_public_ioevents_add_column_dbevent/up.yaml deleted file mode 100644 index 43641898b..000000000 --- a/hasura/migrations/1619110334411_alter_table_public_ioevents_add_column_dbevent/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."ioevents" ADD COLUMN "dbevent" Boolean NOT NULL DEFAULT - false; - type: run_sql diff --git a/hasura/migrations/1619132732600_create_table_public_phonebook/down.yaml b/hasura/migrations/1619132732600_create_table_public_phonebook/down.yaml deleted file mode 100644 index af66f8d33..000000000 --- a/hasura/migrations/1619132732600_create_table_public_phonebook/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: DROP TABLE "public"."phonebook"; - type: run_sql diff --git a/hasura/migrations/1619132732600_create_table_public_phonebook/up.yaml b/hasura/migrations/1619132732600_create_table_public_phonebook/up.yaml deleted file mode 100644 index fd0763cd7..000000000 --- a/hasura/migrations/1619132732600_create_table_public_phonebook/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - cascade: false - read_only: false - sql: CREATE EXTENSION IF NOT EXISTS pgcrypto; - type: run_sql -- args: - cascade: false - read_only: false - sql: "CREATE TABLE \"public\".\"phonebook\"(\"id\" uuid NOT NULL DEFAULT gen_random_uuid(), - \"created_at\" timestamptz NOT NULL DEFAULT now(), \"updated_at\" timestamptz - NOT NULL DEFAULT now(), \"bodyshopid\" uuid NOT NULL, \"type\" text NOT NULL, - \"firstname\" text, \"lastname\" text, \"phone1\" text, \"email\" text, \"address1\" - text, \"address2\" text, \"city\" text, \"state\" text, \"zip\" text, \"country\" - text, \"company\" text, \"phone2\" text, \"fax\" text, \"category\" text, PRIMARY - KEY (\"id\") , FOREIGN KEY (\"bodyshopid\") 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_phonebook_updated_at\"\nBEFORE - UPDATE ON \"public\".\"phonebook\"\nFOR EACH ROW\nEXECUTE PROCEDURE \"public\".\"set_current_timestamp_updated_at\"();\nCOMMENT - ON TRIGGER \"set_public_phonebook_updated_at\" ON \"public\".\"phonebook\" \nIS - 'trigger to set value of column \"updated_at\" to current timestamp on row update';" - type: run_sql -- args: - name: phonebook - schema: public - type: add_existing_table_or_view diff --git a/hasura/migrations/1619132753494_track_all_relationships/down.yaml b/hasura/migrations/1619132753494_track_all_relationships/down.yaml deleted file mode 100644 index 4e58433b9..000000000 --- a/hasura/migrations/1619132753494_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: phonebooks - table: - name: bodyshops - schema: public - type: drop_relationship -- args: - relationship: bodyshop - table: - name: phonebook - schema: public - type: drop_relationship diff --git a/hasura/migrations/1619132753494_track_all_relationships/up.yaml b/hasura/migrations/1619132753494_track_all_relationships/up.yaml deleted file mode 100644 index c645985c6..000000000 --- a/hasura/migrations/1619132753494_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: phonebooks - table: - name: bodyshops - schema: public - using: - foreign_key_constraint_on: - column: bodyshopid - table: - name: phonebook - schema: public - type: create_array_relationship -- args: - name: bodyshop - table: - name: phonebook - schema: public - using: - foreign_key_constraint_on: bodyshopid - type: create_object_relationship diff --git a/hasura/migrations/1619132868980_update_permission_user_public_table_phonebook/down.yaml b/hasura/migrations/1619132868980_update_permission_user_public_table_phonebook/down.yaml deleted file mode 100644 index c224bad45..000000000 --- a/hasura/migrations/1619132868980_update_permission_user_public_table_phonebook/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: phonebook - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1619132868980_update_permission_user_public_table_phonebook/up.yaml b/hasura/migrations/1619132868980_update_permission_user_public_table_phonebook/up.yaml deleted file mode 100644 index 72a6fa068..000000000 --- a/hasura/migrations/1619132868980_update_permission_user_public_table_phonebook/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - permission: - allow_upsert: true - backend_only: false - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - bodyshopid - - type - - firstname - - lastname - - phone1 - - email - - address1 - - address2 - - city - - state - - zip - - country - - company - - phone2 - - fax - - category - set: {} - role: user - table: - name: phonebook - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1619132880293_update_permission_user_public_table_phonebook/down.yaml b/hasura/migrations/1619132880293_update_permission_user_public_table_phonebook/down.yaml deleted file mode 100644 index 843a6e1bc..000000000 --- a/hasura/migrations/1619132880293_update_permission_user_public_table_phonebook/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: phonebook - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1619132880293_update_permission_user_public_table_phonebook/up.yaml b/hasura/migrations/1619132880293_update_permission_user_public_table_phonebook/up.yaml deleted file mode 100644 index b3a818972..000000000 --- a/hasura/migrations/1619132880293_update_permission_user_public_table_phonebook/up.yaml +++ /dev/null @@ -1,40 +0,0 @@ -- args: - permission: - allow_aggregations: false - backend_only: false - columns: - - address1 - - address2 - - category - - city - - company - - country - - email - - fax - - firstname - - lastname - - phone1 - - phone2 - - state - - type - - zip - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: phonebook - schema: public - type: create_select_permission diff --git a/hasura/migrations/1619132893252_update_permission_user_public_table_phonebook/down.yaml b/hasura/migrations/1619132893252_update_permission_user_public_table_phonebook/down.yaml deleted file mode 100644 index a5c894d75..000000000 --- a/hasura/migrations/1619132893252_update_permission_user_public_table_phonebook/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: phonebook - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1619132893252_update_permission_user_public_table_phonebook/up.yaml b/hasura/migrations/1619132893252_update_permission_user_public_table_phonebook/up.yaml deleted file mode 100644 index aa4b3f52e..000000000 --- a/hasura/migrations/1619132893252_update_permission_user_public_table_phonebook/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - permission: - backend_only: false - columns: - - address1 - - address2 - - category - - city - - company - - country - - email - - fax - - firstname - - lastname - - phone1 - - phone2 - - state - - type - - zip - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: phonebook - schema: public - type: create_update_permission diff --git a/hasura/migrations/1619133503127_alter_table_public_phonebook_alter_column_type/down.yaml b/hasura/migrations/1619133503127_alter_table_public_phonebook_alter_column_type/down.yaml deleted file mode 100644 index b7ca6f5d4..000000000 --- a/hasura/migrations/1619133503127_alter_table_public_phonebook_alter_column_type/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."phonebook" ALTER COLUMN "type" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1619133503127_alter_table_public_phonebook_alter_column_type/up.yaml b/hasura/migrations/1619133503127_alter_table_public_phonebook_alter_column_type/up.yaml deleted file mode 100644 index 821498c2b..000000000 --- a/hasura/migrations/1619133503127_alter_table_public_phonebook_alter_column_type/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."phonebook" ALTER COLUMN "type" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1619133535893_alter_table_public_phonebook_drop_column_type/down.yaml b/hasura/migrations/1619133535893_alter_table_public_phonebook_drop_column_type/down.yaml deleted file mode 100644 index 076c8d398..000000000 --- a/hasura/migrations/1619133535893_alter_table_public_phonebook_drop_column_type/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."phonebook" ADD COLUMN "type" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."phonebook" ALTER COLUMN "type" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1619133535893_alter_table_public_phonebook_drop_column_type/up.yaml b/hasura/migrations/1619133535893_alter_table_public_phonebook_drop_column_type/up.yaml deleted file mode 100644 index 65544dfd6..000000000 --- a/hasura/migrations/1619133535893_alter_table_public_phonebook_drop_column_type/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: true - read_only: false - sql: ALTER TABLE "public"."phonebook" DROP COLUMN "type" CASCADE; - type: run_sql diff --git a/hasura/migrations/1619133576648_update_permission_user_public_table_phonebook/down.yaml b/hasura/migrations/1619133576648_update_permission_user_public_table_phonebook/down.yaml deleted file mode 100644 index c224bad45..000000000 --- a/hasura/migrations/1619133576648_update_permission_user_public_table_phonebook/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: phonebook - schema: public - type: drop_insert_permission diff --git a/hasura/migrations/1619133576648_update_permission_user_public_table_phonebook/up.yaml b/hasura/migrations/1619133576648_update_permission_user_public_table_phonebook/up.yaml deleted file mode 100644 index e03d0c6da..000000000 --- a/hasura/migrations/1619133576648_update_permission_user_public_table_phonebook/up.yaml +++ /dev/null @@ -1,38 +0,0 @@ -- args: - permission: - allow_upsert: true - backend_only: false - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - bodyshopid - - firstname - - lastname - - phone1 - - email - - address1 - - address2 - - city - - state - - zip - - country - - company - - phone2 - - fax - - category - set: {} - role: user - table: - name: phonebook - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1619133588241_update_permission_user_public_table_phonebook/down.yaml b/hasura/migrations/1619133588241_update_permission_user_public_table_phonebook/down.yaml deleted file mode 100644 index 843a6e1bc..000000000 --- a/hasura/migrations/1619133588241_update_permission_user_public_table_phonebook/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: phonebook - schema: public - type: drop_select_permission diff --git a/hasura/migrations/1619133588241_update_permission_user_public_table_phonebook/up.yaml b/hasura/migrations/1619133588241_update_permission_user_public_table_phonebook/up.yaml deleted file mode 100644 index f5eb078c3..000000000 --- a/hasura/migrations/1619133588241_update_permission_user_public_table_phonebook/up.yaml +++ /dev/null @@ -1,39 +0,0 @@ -- args: - permission: - allow_aggregations: false - backend_only: false - columns: - - address1 - - address2 - - category - - city - - company - - country - - email - - fax - - firstname - - lastname - - phone1 - - phone2 - - state - - zip - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - limit: null - role: user - table: - name: phonebook - schema: public - type: create_select_permission diff --git a/hasura/migrations/1619133601763_update_permission_user_public_table_phonebook/down.yaml b/hasura/migrations/1619133601763_update_permission_user_public_table_phonebook/down.yaml deleted file mode 100644 index a5c894d75..000000000 --- a/hasura/migrations/1619133601763_update_permission_user_public_table_phonebook/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: phonebook - schema: public - type: drop_update_permission diff --git a/hasura/migrations/1619133601763_update_permission_user_public_table_phonebook/up.yaml b/hasura/migrations/1619133601763_update_permission_user_public_table_phonebook/up.yaml deleted file mode 100644 index 93866573b..000000000 --- a/hasura/migrations/1619133601763_update_permission_user_public_table_phonebook/up.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- args: - permission: - backend_only: false - columns: - - address1 - - address2 - - category - - city - - company - - country - - email - - fax - - firstname - - lastname - - phone1 - - phone2 - - state - - zip - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: phonebook - schema: public - type: create_update_permission diff --git a/hasura/migrations/1619133694446_run_sql_migration/down.yaml b/hasura/migrations/1619133694446_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619133694446_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619133694446_run_sql_migration/up.yaml b/hasura/migrations/1619133694446_run_sql_migration/up.yaml deleted file mode 100644 index 3b488acd3..000000000 --- a/hasura/migrations/1619133694446_run_sql_migration/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "CREATE OR REPLACE FUNCTION public.search_phonebook (search text)\n\tRETURNS - SETOF phonebook\n\tLANGUAGE plpgsql\n\tSTABLE\n\tAS $function$\nBEGIN\n\tIF - search = '' THEN\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\tphonebook;\n\tELSE\n\t\tRETURN - query\n\t\tSELECT\n\t\t\tbills.*\n\t\tFROM\n\t\t\tphonebook\n\t\tWHERE firstname - ILIKE '%' || search || '%'\n\t\t\tOR lastname ILIKE '%' || search || '%'\n\t\t\tOR - company ILIKE '%' || search || '%'\n\t\t\tOR address1 ILIKE '%' || search || - '%'\n\t\t\tOR phone1 ILIKE '%' || search || '%'\n\t\t\tOR phone2 ILIKE '%' || - search || '%'\n\t\t\tOR email ILIKE '%' || search || '%'\n\t\t\tOR category - ILIKE '%' || search || '%'\n\t\tORDER BY\n\t\t\n\t\t\tfirstname ILIKE '%' || - search || '%'\n\t\t\tOR NULL,\n\t\t\tlastname ILIKE '%' || search || '%'\n\t\t\tOR - NULL,\n\t\t\tcompany ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\taddress1 - ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\tphone1 ILIKE '%' || search - || '%'\n\t\t\tOR NULL,\n\t\t\tphone2 ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\temail - ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\tcategory ILIKE '%' || search - || '%'\n\t\t\tOR NULL,\n\t\t\townr_addr1 ILIKE '%' || search || '%'\n\t\t\tOR - NULL,\n\t\t\townr_addr1 ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\townr_addr1 - ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\townr_addr1 ILIKE '%' || search - || '%'\n\t\t\tOR NULL;\n\tEND IF;\nEND\n$function$;" - type: run_sql -- args: - name: search_phonebook - schema: public - type: track_function diff --git a/hasura/migrations/1619191596826_update_permission_user_public_table_phonebook/down.yaml b/hasura/migrations/1619191596826_update_permission_user_public_table_phonebook/down.yaml deleted file mode 100644 index eb63b045d..000000000 --- a/hasura/migrations/1619191596826_update_permission_user_public_table_phonebook/down.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: phonebook - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - address1 - - address2 - - category - - city - - company - - country - - email - - fax - - firstname - - lastname - - phone1 - - phone2 - - state - - zip - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: phonebook - schema: public - type: create_select_permission diff --git a/hasura/migrations/1619191596826_update_permission_user_public_table_phonebook/up.yaml b/hasura/migrations/1619191596826_update_permission_user_public_table_phonebook/up.yaml deleted file mode 100644 index f354974de..000000000 --- a/hasura/migrations/1619191596826_update_permission_user_public_table_phonebook/up.yaml +++ /dev/null @@ -1,43 +0,0 @@ -- args: - role: user - table: - name: phonebook - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - address1 - - address2 - - category - - city - - company - - country - - email - - fax - - firstname - - lastname - - phone1 - - phone2 - - state - - zip - - created_at - - updated_at - - bodyshopid - - id - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: phonebook - schema: public - type: create_select_permission diff --git a/hasura/migrations/1619194947063_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1619194947063_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index fcae8dd99..000000000 --- a/hasura/migrations/1619194947063_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,30 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - authlevel - - id - - shopid - - useremail - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1619194947063_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1619194947063_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index ee45bef73..000000000 --- a/hasura/migrations/1619194947063_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - authlevel - - id - - shopid - - useremail - computed_fields: [] - filter: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1619281006351_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1619281006351_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index ee45bef73..000000000 --- a/hasura/migrations/1619281006351_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,27 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - authlevel - - id - - shopid - - useremail - computed_fields: [] - filter: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1619281006351_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1619281006351_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index 015c4e179..000000000 --- a/hasura/migrations/1619281006351_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - authlevel - - id - - shopid - - useremail - computed_fields: [] - filter: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1619281014662_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1619281014662_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index 0175b1813..000000000 --- a/hasura/migrations/1619281014662_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - authlevel - filter: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: associations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1619281014662_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1619281014662_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index 8ac8d69eb..000000000 --- a/hasura/migrations/1619281014662_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - authlevel - filter: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: associations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1619475246450_alter_table_public_bodyshops_add_column_enforce_referral/down.yaml b/hasura/migrations/1619475246450_alter_table_public_bodyshops_add_column_enforce_referral/down.yaml deleted file mode 100644 index 04c18d407..000000000 --- a/hasura/migrations/1619475246450_alter_table_public_bodyshops_add_column_enforce_referral/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "enforce_referral"; - type: run_sql diff --git a/hasura/migrations/1619475246450_alter_table_public_bodyshops_add_column_enforce_referral/up.yaml b/hasura/migrations/1619475246450_alter_table_public_bodyshops_add_column_enforce_referral/up.yaml deleted file mode 100644 index 1cf09b5e0..000000000 --- a/hasura/migrations/1619475246450_alter_table_public_bodyshops_add_column_enforce_referral/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "enforce_referral" boolean NOT - NULL DEFAULT false; - type: run_sql diff --git a/hasura/migrations/1619475263584_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1619475263584_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index f687795eb..000000000 --- a/hasura/migrations/1619475263584_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,81 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - jobsizelimit - - logo_img_path - - md_categories - - md_ccc_rates - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - sub_status - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1619475263584_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1619475263584_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 19bab1a64..000000000 --- a/hasura/migrations/1619475263584_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,82 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - enforce_referral - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - jobsizelimit - - logo_img_path - - md_categories - - md_ccc_rates - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - sub_status - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - computed_fields: [] - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: bodyshops - schema: public - type: create_select_permission diff --git a/hasura/migrations/1619475274396_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1619475274396_update_permission_user_public_table_bodyshops/down.yaml deleted file mode 100644 index cfdcd2224..000000000 --- a/hasura/migrations/1619475274396_update_permission_user_public_table_bodyshops/down.yaml +++ /dev/null @@ -1,75 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_ccc_rates - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1619475274396_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1619475274396_update_permission_user_public_table_bodyshops/up.yaml deleted file mode 100644 index 91bc87fe2..000000000 --- a/hasura/migrations/1619475274396_update_permission_user_public_table_bodyshops/up.yaml +++ /dev/null @@ -1,76 +0,0 @@ -- args: - role: user - table: - name: bodyshops - schema: public - type: drop_update_permission -- args: - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - enforce_referral - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_ccc_rates - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: bodyshops - schema: public - type: create_update_permission diff --git a/hasura/migrations/1619540860369_run_sql_migration/down.yaml b/hasura/migrations/1619540860369_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619540860369_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619540860369_run_sql_migration/up.yaml b/hasura/migrations/1619540860369_run_sql_migration/up.yaml deleted file mode 100644 index d343558ea..000000000 --- a/hasura/migrations/1619540860369_run_sql_migration/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function search_phonebook;\nCREATE OR REPLACE FUNCTION public.search_phonebook(search - text)\n RETURNS SETOF phonebook\n LANGUAGE plpgsql\n STABLE\nAS $function$\nBEGIN\n\tIF - search = '' THEN\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\tphonebook;\n\tELSE\n\t\tRETURN - query\n\t\tSELECT\n\t\t\tphonebook.*\n\t\tFROM\n\t\t\tphonebook\n\t\tWHERE firstname - ILIKE '%' || search || '%'\n\t\t\tOR lastname ILIKE '%' || search || '%'\n\t\t\tOR - company ILIKE '%' || search || '%'\n\t\t\tOR address1 ILIKE '%' || search || - '%'\n\t\t\tOR phone1 ILIKE '%' || search || '%'\n\t\t\tOR phone2 ILIKE '%' || - search || '%'\n\t\t\tOR email ILIKE '%' || search || '%'\n\t\t\tOR category - ILIKE '%' || search || '%'\n\t\tORDER BY\n\t\t\n\t\t\tfirstname ILIKE '%' || - search || '%'\n\t\t\tOR NULL,\n\t\t\tlastname ILIKE '%' || search || '%'\n\t\t\tOR - NULL,\n\t\t\tcompany ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\taddress1 - ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\tphone1 ILIKE '%' || search - || '%'\n\t\t\tOR NULL,\n\t\t\tphone2 ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\temail - ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\tcategory ILIKE '%' || search - || '%'\n\t\t\tOR NULL,\n\t\t\townr_addr1 ILIKE '%' || search || '%'\n\t\t\tOR - NULL,\n\t\t\townr_addr1 ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\townr_addr1 - ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\townr_addr1 ILIKE '%' || search - || '%'\n\t\t\tOR NULL;\n\tEND IF;\nEND\n$function$;" - type: run_sql -- args: - name: search_phonebook - schema: public - type: track_function diff --git a/hasura/migrations/1619540900896_run_sql_migration/down.yaml b/hasura/migrations/1619540900896_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619540900896_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619540900896_run_sql_migration/up.yaml b/hasura/migrations/1619540900896_run_sql_migration/up.yaml deleted file mode 100644 index 91bfa0f12..000000000 --- a/hasura/migrations/1619540900896_run_sql_migration/up.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - cascade: false - read_only: false - sql: "drop function search_phonebook;\nCREATE OR REPLACE FUNCTION public.search_phonebook(search - text)\n RETURNS SETOF phonebook\n LANGUAGE plpgsql\n STABLE\nAS $function$\nBEGIN\n\tIF - search = '' THEN\n\t\tRETURN query\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\tphonebook;\n\tELSE\n\t\tRETURN - query\n\t\tSELECT\n\t\t\tphonebook.*\n\t\tFROM\n\t\t\tphonebook\n\t\tWHERE firstname - ILIKE '%' || search || '%'\n\t\t\tOR lastname ILIKE '%' || search || '%'\n\t\t\tOR - company ILIKE '%' || search || '%'\n\t\t\tOR address1 ILIKE '%' || search || - '%'\n\t\t\tOR phone1 ILIKE '%' || search || '%'\n\t\t\tOR phone2 ILIKE '%' || - search || '%'\n\t\t\tOR email ILIKE '%' || search || '%'\n\t\t\tOR category - ILIKE '%' || search || '%'\n\t\tORDER BY\n\t\t\n\t\t\tfirstname ILIKE '%' || - search || '%'\n\t\t\tOR NULL,\n\t\t\tlastname ILIKE '%' || search || '%'\n\t\t\tOR - NULL,\n\t\t\tcompany ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\taddress1 - ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\tphone1 ILIKE '%' || search - || '%'\n\t\t\tOR NULL,\n\t\t\tphone2 ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\temail - ILIKE '%' || search || '%'\n\t\t\tOR NULL,\n\t\t\tcategory ILIKE '%' || search - || '%'\n\t\t\tOR NULL;\n\tEND IF;\nEND\n$function$;" - type: run_sql -- args: - name: search_phonebook - schema: public - type: track_function diff --git a/hasura/migrations/1619620323182_update_permission_user_public_table_phonebook/down.yaml b/hasura/migrations/1619620323182_update_permission_user_public_table_phonebook/down.yaml deleted file mode 100644 index 5354aae8c..000000000 --- a/hasura/migrations/1619620323182_update_permission_user_public_table_phonebook/down.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - role: user - table: - name: phonebook - schema: public - type: drop_delete_permission diff --git a/hasura/migrations/1619620323182_update_permission_user_public_table_phonebook/up.yaml b/hasura/migrations/1619620323182_update_permission_user_public_table_phonebook/up.yaml deleted file mode 100644 index c6766a31b..000000000 --- a/hasura/migrations/1619620323182_update_permission_user_public_table_phonebook/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - permission: - backend_only: false - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: phonebook - schema: public - type: create_delete_permission diff --git a/hasura/migrations/1619823252812_run_sql_migration/down.yaml b/hasura/migrations/1619823252812_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619823252812_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619823252812_run_sql_migration/up.yaml b/hasura/migrations/1619823252812_run_sql_migration/up.yaml deleted file mode 100644 index a84ea9e03..000000000 --- a/hasura/migrations/1619823252812_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: create index vendor_idx_name on vendors(name); - type: run_sql diff --git a/hasura/migrations/1619823272875_run_sql_migration/down.yaml b/hasura/migrations/1619823272875_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619823272875_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619823272875_run_sql_migration/up.yaml b/hasura/migrations/1619823272875_run_sql_migration/up.yaml deleted file mode 100644 index b69b0783c..000000000 --- a/hasura/migrations/1619823272875_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: create index vendor_idx_active on vendors(active); - type: run_sql diff --git a/hasura/migrations/1619823657628_run_sql_migration/down.yaml b/hasura/migrations/1619823657628_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619823657628_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619823657628_run_sql_migration/up.yaml b/hasura/migrations/1619823657628_run_sql_migration/up.yaml deleted file mode 100644 index 8ca3169c0..000000000 --- a/hasura/migrations/1619823657628_run_sql_migration/up.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - create index bills_idx_date on bills(date); - create index joblines_idx_removed on joblines(removed); - create index joblines_idx_mod_lbr_ty on joblines(mod_lbr_ty); - type: run_sql diff --git a/hasura/migrations/1619823749138_run_sql_migration/down.yaml b/hasura/migrations/1619823749138_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619823749138_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619823749138_run_sql_migration/up.yaml b/hasura/migrations/1619823749138_run_sql_migration/up.yaml deleted file mode 100644 index b7f6b91ad..000000000 --- a/hasura/migrations/1619823749138_run_sql_migration/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: create index joblines_idx_line_no on joblines(line_no, jobid); - type: run_sql diff --git a/hasura/migrations/1619824320231_run_sql_migration/down.yaml b/hasura/migrations/1619824320231_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619824320231_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619824320231_run_sql_migration/up.yaml b/hasura/migrations/1619824320231_run_sql_migration/up.yaml deleted file mode 100644 index 2df8fd5ff..000000000 --- a/hasura/migrations/1619824320231_run_sql_migration/up.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - create index jobs_idx_status on jobs (status); - - create index jobs_idx_ro_number on jobs ((lower(ro_number))); - create index jobs_idx_ownr_fn on jobs ((lower(ownr_fn))); - create index jobs_idx_ownr_ln on jobs ((lower(ownr_ln))); - - create index parts_orders_idx_order_date on parts_orders (order_date); - - create index cccontracts_idx_actual_return on cccontracts (actualreturn); - create index courtesycars_idx_fleet on courtesycars (fleetnumber); - - create index bills_idx_invoice_number on bills ((lower(invoice_number))); - type: run_sql diff --git a/hasura/migrations/1619824803848_run_sql_migration/down.yaml b/hasura/migrations/1619824803848_run_sql_migration/down.yaml deleted file mode 100644 index fe51488c7..000000000 --- a/hasura/migrations/1619824803848_run_sql_migration/down.yaml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/hasura/migrations/1619824803848_run_sql_migration/up.yaml b/hasura/migrations/1619824803848_run_sql_migration/up.yaml deleted file mode 100644 index 590acff82..000000000 --- a/hasura/migrations/1619824803848_run_sql_migration/up.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - create index conversations_idx_updated_at on conversations (updated_at); - create index messages_idx_created_at on messages (created_at); - create index conversations_idx_phone_num on conversations (phone_num); - - create index employees_idx_employee_number on employees (employee_number); - create index jobs_idx_date_exported on jobs (date_exported); - - create index owners_idx_ownr_fn on owners((lower(ownr_fn))); - create index owners_idx_ownr_ln on owners((lower(ownr_ln))); - create index owners_idx_ownr_co_nm on owners((lower(ownr_co_nm))); - - create index vehicles_idx_v_model_desc on vehicles((lower(v_model_desc))); - create index vehicles_idx_v_make_desc on vehicles((lower(v_make_desc))); - type: run_sql diff --git a/hasura/migrations/1620066724099_alter_table_public_jobs_add_column_ca_customer_gst/down.yaml b/hasura/migrations/1620066724099_alter_table_public_jobs_add_column_ca_customer_gst/down.yaml deleted file mode 100644 index b9730b3cb..000000000 --- a/hasura/migrations/1620066724099_alter_table_public_jobs_add_column_ca_customer_gst/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "ca_customer_gst"; - type: run_sql diff --git a/hasura/migrations/1620066724099_alter_table_public_jobs_add_column_ca_customer_gst/up.yaml b/hasura/migrations/1620066724099_alter_table_public_jobs_add_column_ca_customer_gst/up.yaml deleted file mode 100644 index 543a74068..000000000 --- a/hasura/migrations/1620066724099_alter_table_public_jobs_add_column_ca_customer_gst/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "ca_customer_gst" numeric NULL DEFAULT - 0; - type: run_sql diff --git a/hasura/migrations/1620066736411_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1620066736411_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 5b060e4ad..000000000 --- a/hasura/migrations/1620066736411_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,266 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1620066736411_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1620066736411_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 1710da406..000000000 --- a/hasura/migrations/1620066736411_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,267 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1620066749181_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1620066749181_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 787406311..000000000 --- a/hasura/migrations/1620066749181_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,267 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1620066749181_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1620066749181_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 211f64230..000000000 --- a/hasura/migrations/1620066749181_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,268 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1620066758022_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1620066758022_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 967533024..000000000 --- a/hasura/migrations/1620066758022_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,266 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1620066758022_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1620066758022_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index feed2e0f9..000000000 --- a/hasura/migrations/1620066758022_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,267 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1620083105072_alter_table_public_associations_add_column_default_prod_list_view/down.yaml b/hasura/migrations/1620083105072_alter_table_public_associations_add_column_default_prod_list_view/down.yaml deleted file mode 100644 index 0d0e75aa4..000000000 --- a/hasura/migrations/1620083105072_alter_table_public_associations_add_column_default_prod_list_view/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."associations" DROP COLUMN "default_prod_list_view"; - type: run_sql diff --git a/hasura/migrations/1620083105072_alter_table_public_associations_add_column_default_prod_list_view/up.yaml b/hasura/migrations/1620083105072_alter_table_public_associations_add_column_default_prod_list_view/up.yaml deleted file mode 100644 index 03f394ff2..000000000 --- a/hasura/migrations/1620083105072_alter_table_public_associations_add_column_default_prod_list_view/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."associations" ADD COLUMN "default_prod_list_view" text - NULL; - type: run_sql diff --git a/hasura/migrations/1620083115002_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1620083115002_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index 015c4e179..000000000 --- a/hasura/migrations/1620083115002_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,25 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - authlevel - - id - - shopid - - useremail - computed_fields: [] - filter: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1620083115002_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1620083115002_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index ff0e61c7e..000000000 --- a/hasura/migrations/1620083115002_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -1,26 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - active - - authlevel - - default_prod_list_view - - id - - shopid - - useremail - computed_fields: [] - filter: - user: - authid: - _eq: X-Hasura-User-Id - role: user - table: - name: associations - schema: public - type: create_select_permission diff --git a/hasura/migrations/1620083126422_update_permission_user_public_table_associations/down.yaml b/hasura/migrations/1620083126422_update_permission_user_public_table_associations/down.yaml deleted file mode 100644 index 8ac8d69eb..000000000 --- a/hasura/migrations/1620083126422_update_permission_user_public_table_associations/down.yaml +++ /dev/null @@ -1,23 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - authlevel - filter: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: associations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1620083126422_update_permission_user_public_table_associations/up.yaml b/hasura/migrations/1620083126422_update_permission_user_public_table_associations/up.yaml deleted file mode 100644 index b5bbb9670..000000000 --- a/hasura/migrations/1620083126422_update_permission_user_public_table_associations/up.yaml +++ /dev/null @@ -1,24 +0,0 @@ -- args: - role: user - table: - name: associations - schema: public - type: drop_update_permission -- args: - permission: - columns: - - active - - authlevel - - default_prod_list_view - filter: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - set: {} - role: user - table: - name: associations - schema: public - type: create_update_permission diff --git a/hasura/migrations/1620336278872_alter_table_public_users_add_column_validemail/down.yaml b/hasura/migrations/1620336278872_alter_table_public_users_add_column_validemail/down.yaml deleted file mode 100644 index f8e7fdd5e..000000000 --- a/hasura/migrations/1620336278872_alter_table_public_users_add_column_validemail/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."users" DROP COLUMN "validemail"; - type: run_sql diff --git a/hasura/migrations/1620336278872_alter_table_public_users_add_column_validemail/up.yaml b/hasura/migrations/1620336278872_alter_table_public_users_add_column_validemail/up.yaml deleted file mode 100644 index f21de375b..000000000 --- a/hasura/migrations/1620336278872_alter_table_public_users_add_column_validemail/up.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."users" ADD COLUMN "validemail" boolean NOT NULL DEFAULT - true; - type: run_sql diff --git a/hasura/migrations/1620336525583_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1620336525583_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 61e3ce752..000000000 --- a/hasura/migrations/1620336525583_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,19 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_insert_permission -- args: - permission: - check: {} - columns: - - authid - - email - - fcmtokens - set: {} - role: user - table: - name: users - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1620336525583_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1620336525583_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 59ecec0bd..000000000 --- a/hasura/migrations/1620336525583_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_insert_permission -- args: - permission: - check: {} - columns: - - authid - - email - - fcmtokens - - validemail - set: {} - role: user - table: - name: users - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1620336532828_update_permission_user_public_table_users/down.yaml b/hasura/migrations/1620336532828_update_permission_user_public_table_users/down.yaml deleted file mode 100644 index 6fdc8d980..000000000 --- a/hasura/migrations/1620336532828_update_permission_user_public_table_users/down.yaml +++ /dev/null @@ -1,28 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - authid - - created_at - - dashboardlayout - - email - - fcmtokens - - updated_at - computed_fields: [] - filter: - associations: - bodyshop: - associations: - active: - _eq: true - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1620336532828_update_permission_user_public_table_users/up.yaml b/hasura/migrations/1620336532828_update_permission_user_public_table_users/up.yaml deleted file mode 100644 index 78ad2df7a..000000000 --- a/hasura/migrations/1620336532828_update_permission_user_public_table_users/up.yaml +++ /dev/null @@ -1,29 +0,0 @@ -- args: - role: user - table: - name: users - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: false - columns: - - authid - - created_at - - dashboardlayout - - email - - fcmtokens - - updated_at - - validemail - computed_fields: [] - filter: - associations: - bodyshop: - associations: - active: - _eq: true - role: user - table: - name: users - schema: public - type: create_select_permission diff --git a/hasura/migrations/1620339418293_alter_table_public_jobs_add_column_employee_csr/down.yaml b/hasura/migrations/1620339418293_alter_table_public_jobs_add_column_employee_csr/down.yaml deleted file mode 100644 index bf81838a6..000000000 --- a/hasura/migrations/1620339418293_alter_table_public_jobs_add_column_employee_csr/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "employee_csr"; - type: run_sql diff --git a/hasura/migrations/1620339418293_alter_table_public_jobs_add_column_employee_csr/up.yaml b/hasura/migrations/1620339418293_alter_table_public_jobs_add_column_employee_csr/up.yaml deleted file mode 100644 index 56b5f03d5..000000000 --- a/hasura/migrations/1620339418293_alter_table_public_jobs_add_column_employee_csr/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "employee_csr" uuid NULL; - type: run_sql diff --git a/hasura/migrations/1620339439683_set_fk_public_jobs_employee_csr/down.yaml b/hasura/migrations/1620339439683_set_fk_public_jobs_employee_csr/down.yaml deleted file mode 100644 index 0bfbf1ab3..000000000 --- a/hasura/migrations/1620339439683_set_fk_public_jobs_employee_csr/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: alter table "public"."jobs" drop constraint "jobs_employee_csr_fkey"; - type: run_sql diff --git a/hasura/migrations/1620339439683_set_fk_public_jobs_employee_csr/up.yaml b/hasura/migrations/1620339439683_set_fk_public_jobs_employee_csr/up.yaml deleted file mode 100644 index 0629c9977..000000000 --- a/hasura/migrations/1620339439683_set_fk_public_jobs_employee_csr/up.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: |- - alter table "public"."jobs" - add constraint "jobs_employee_csr_fkey" - foreign key ("employee_csr") - references "public"."employees" - ("id") on update restrict on delete restrict; - type: run_sql diff --git a/hasura/migrations/1620339458298_track_all_relationships/down.yaml b/hasura/migrations/1620339458298_track_all_relationships/down.yaml deleted file mode 100644 index c14530894..000000000 --- a/hasura/migrations/1620339458298_track_all_relationships/down.yaml +++ /dev/null @@ -1,12 +0,0 @@ -- args: - relationship: employee - table: - name: jobs - schema: public - type: drop_relationship -- args: - relationship: jobsByEmployeeCsr - table: - name: employees - schema: public - type: drop_relationship diff --git a/hasura/migrations/1620339458298_track_all_relationships/up.yaml b/hasura/migrations/1620339458298_track_all_relationships/up.yaml deleted file mode 100644 index f83554491..000000000 --- a/hasura/migrations/1620339458298_track_all_relationships/up.yaml +++ /dev/null @@ -1,20 +0,0 @@ -- args: - name: employee - table: - name: jobs - schema: public - using: - foreign_key_constraint_on: employee_csr - type: create_object_relationship -- args: - name: jobsByEmployeeCsr - table: - name: employees - schema: public - using: - foreign_key_constraint_on: - column: employee_csr - table: - name: jobs - schema: public - type: create_array_relationship diff --git a/hasura/migrations/1620339475544_rename_relationship_employee_to_employee_csr_rel_schema_public_table_jobs/down.yaml b/hasura/migrations/1620339475544_rename_relationship_employee_to_employee_csr_rel_schema_public_table_jobs/down.yaml deleted file mode 100644 index a201ccfd8..000000000 --- a/hasura/migrations/1620339475544_rename_relationship_employee_to_employee_csr_rel_schema_public_table_jobs/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: employee_csr_rel - new_name: employee - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1620339475544_rename_relationship_employee_to_employee_csr_rel_schema_public_table_jobs/up.yaml b/hasura/migrations/1620339475544_rename_relationship_employee_to_employee_csr_rel_schema_public_table_jobs/up.yaml deleted file mode 100644 index 2c694c033..000000000 --- a/hasura/migrations/1620339475544_rename_relationship_employee_to_employee_csr_rel_schema_public_table_jobs/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: employee - new_name: employee_csr_rel - table: - name: jobs - schema: public - type: rename_relationship diff --git a/hasura/migrations/1620339507878_rename_relationship_jobs_to_jobsByEmployeeBody_schema_public_table_employees/down.yaml b/hasura/migrations/1620339507878_rename_relationship_jobs_to_jobsByEmployeeBody_schema_public_table_employees/down.yaml deleted file mode 100644 index 57f49ec3e..000000000 --- a/hasura/migrations/1620339507878_rename_relationship_jobs_to_jobsByEmployeeBody_schema_public_table_employees/down.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: jobsByEmployeeBody - new_name: jobs - table: - name: employees - schema: public - type: rename_relationship diff --git a/hasura/migrations/1620339507878_rename_relationship_jobs_to_jobsByEmployeeBody_schema_public_table_employees/up.yaml b/hasura/migrations/1620339507878_rename_relationship_jobs_to_jobsByEmployeeBody_schema_public_table_employees/up.yaml deleted file mode 100644 index b51b73d94..000000000 --- a/hasura/migrations/1620339507878_rename_relationship_jobs_to_jobsByEmployeeBody_schema_public_table_employees/up.yaml +++ /dev/null @@ -1,7 +0,0 @@ -- args: - name: jobs - new_name: jobsByEmployeeBody - table: - name: employees - schema: public - type: rename_relationship diff --git a/hasura/migrations/1620339722083_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1620339722083_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 1710da406..000000000 --- a/hasura/migrations/1620339722083_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,267 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1620339722083_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1620339722083_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index aa120c299..000000000 --- a/hasura/migrations/1620339722083_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,267 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_insert_permission -- args: - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_csr - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - set: {} - role: user - table: - name: jobs - schema: public - type: create_insert_permission diff --git a/hasura/migrations/1620339734806_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1620339734806_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index 211f64230..000000000 --- a/hasura/migrations/1620339734806_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,268 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1620339734806_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1620339734806_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index 2358b2b3c..000000000 --- a/hasura/migrations/1620339734806_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,268 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_select_permission -- args: - permission: - allow_aggregations: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_csr - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - computed_fields: [] - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - role: user - table: - name: jobs - schema: public - type: create_select_permission diff --git a/hasura/migrations/1620339746168_update_permission_user_public_table_jobs/down.yaml b/hasura/migrations/1620339746168_update_permission_user_public_table_jobs/down.yaml deleted file mode 100644 index feed2e0f9..000000000 --- a/hasura/migrations/1620339746168_update_permission_user_public_table_jobs/down.yaml +++ /dev/null @@ -1,267 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - csr - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1620339746168_update_permission_user_public_table_jobs/up.yaml b/hasura/migrations/1620339746168_update_permission_user_public_table_jobs/up.yaml deleted file mode 100644 index e9db7d0e7..000000000 --- a/hasura/migrations/1620339746168_update_permission_user_public_table_jobs/up.yaml +++ /dev/null @@ -1,267 +0,0 @@ -- args: - role: user - table: - name: jobs - schema: public - type: drop_update_permission -- args: - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_csr - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - set: {} - role: user - table: - name: jobs - schema: public - type: create_update_permission diff --git a/hasura/migrations/1620339757814_alter_table_public_jobs_drop_column_csr/down.yaml b/hasura/migrations/1620339757814_alter_table_public_jobs_drop_column_csr/down.yaml deleted file mode 100644 index 45b7e688e..000000000 --- a/hasura/migrations/1620339757814_alter_table_public_jobs_drop_column_csr/down.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ADD COLUMN "csr" text; - type: run_sql -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" ALTER COLUMN "csr" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/1620339757814_alter_table_public_jobs_drop_column_csr/up.yaml b/hasura/migrations/1620339757814_alter_table_public_jobs_drop_column_csr/up.yaml deleted file mode 100644 index b4f196cf1..000000000 --- a/hasura/migrations/1620339757814_alter_table_public_jobs_drop_column_csr/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."jobs" DROP COLUMN "csr" CASCADE; - type: run_sql diff --git a/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/down.yaml b/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/down.yaml deleted file mode 100644 index 2fb7052df..000000000 --- a/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/down.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "cost_center" SET NOT NULL; - type: run_sql diff --git a/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/up.yaml b/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/up.yaml deleted file mode 100644 index 43263e363..000000000 --- a/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/up.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- args: - cascade: false - read_only: false - sql: ALTER TABLE "public"."vendors" ALTER COLUMN "cost_center" DROP NOT NULL; - type: run_sql diff --git a/hasura/migrations/metadata.yaml b/hasura/migrations/metadata.yaml deleted file mode 100644 index bc7da1736..000000000 --- a/hasura/migrations/metadata.yaml +++ /dev/null @@ -1,4495 +0,0 @@ -version: 2 -tables: -- table: - schema: public - name: allocations - object_relationships: - - name: employee - using: - foreign_key_constraint_on: employeeid - - name: jobline - using: - foreign_key_constraint_on: joblineid - insert_permissions: - - role: user - permission: - check: - jobline: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - hours - - created_at - - updated_at - - employeeid - - id - - joblineid - select_permissions: - - role: user - permission: - columns: - - hours - - created_at - - updated_at - - employeeid - - id - - joblineid - filter: - jobline: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - update_permissions: - - role: user - permission: - columns: [] - filter: - jobline: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - jobline: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: appointments - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - - name: job - using: - foreign_key_constraint_on: jobid - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - select_permissions: - - role: user - permission: - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - arrived - - block - - bodyshopid - - canceled - - color - - created_at - - end - - id - - isintake - - jobid - - start - - title - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: associations - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: shopid - - name: user - using: - foreign_key_constraint_on: useremail - select_permissions: - - role: user - permission: - columns: - - active - - authlevel - - default_prod_list_view - - id - - shopid - - useremail - filter: - user: - authid: - _eq: X-Hasura-User-Id - update_permissions: - - role: user - permission: - columns: - - active - - authlevel - - default_prod_list_view - filter: - bodyshop: - associations: - user: - authid: - _eq: X-Hasura-User-Id - check: null -- table: - schema: public - name: audit_trail - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - - name: user - using: - foreign_key_constraint_on: useremail - select_permissions: - - role: user - permission: - columns: - - id - - new_val - - old_val - - operation - - schemaname - - tabname - - useremail - - created - - bodyshopid - - recordid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: available_jobs - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - - name: job - using: - foreign_key_constraint_on: jobid - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - cieca_id - - clm_amt - - clm_no - - created_at - - est_data - - id - - ins_co_nm - - issupplement - - jobid - - ownr_name - - source_system - - supplement_number - - updated_at - - uploaded_by - - vehicle_info - select_permissions: - - role: user - permission: - columns: - - bodyshopid - - cieca_id - - clm_amt - - clm_no - - created_at - - est_data - - id - - ins_co_nm - - issupplement - - jobid - - ownr_name - - source_system - - supplement_number - - updated_at - - uploaded_by - - vehicle_info - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - update_permissions: - - role: user - permission: - columns: - - cieca_id - - clm_amt - - est_data - - ins_co_nm - - issupplement - - ownr_name - - source_system - - supplement_number - - uploaded_by - - vehicle_info - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: billlines - object_relationships: - - name: bill - using: - foreign_key_constraint_on: billid - - name: jobline - using: - foreign_key_constraint_on: joblineid - insert_permissions: - - role: user - permission: - check: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - lbr_adjustment - - line_desc - - quantity - - updated_at - select_permissions: - - role: user - permission: - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - lbr_adjustment - - line_desc - - quantity - - updated_at - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - actual_cost - - actual_price - - applicable_taxes - - billid - - cost_center - - created_at - - deductedfromlbr - - id - - joblineid - - lbr_adjustment - - line_desc - - quantity - - updated_at - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - bill: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: bills - object_relationships: - - name: job - using: - foreign_key_constraint_on: jobid - - name: vendor - using: - foreign_key_constraint_on: vendorid - array_relationships: - - name: billlines - using: - foreign_key_constraint_on: - column: billid - table: - schema: public - name: billlines - - name: documents - using: - foreign_key_constraint_on: - column: billid - table: - schema: public - name: documents - - name: exportlogs - using: - foreign_key_constraint_on: - column: billid - table: - schema: public - name: exportlog - - name: parts_orders - using: - foreign_key_constraint_on: - column: returnfrombill - table: - schema: public - name: parts_orders - insert_permissions: - - role: user - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - isinhouse - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - select_permissions: - - role: user - permission: - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - isinhouse - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - created_at - - date - - due_date - - exported - - exported_at - - federal_tax_rate - - id - - invoice_number - - is_credit_memo - - isinhouse - - jobid - - local_tax_rate - - state_tax_rate - - total - - updated_at - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - _and: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - exported: - _eq: false -- table: - schema: public - name: bodyshops - array_relationships: - - name: appointments - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: appointments - - name: associations - using: - foreign_key_constraint_on: - column: shopid - table: - schema: public - name: associations - - name: audit_trails - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: audit_trail - - name: available_jobs - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: available_jobs - - name: conversations - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: conversations - - name: counters - using: - foreign_key_constraint_on: - column: shopid - table: - schema: public - name: counters - - name: courtesycars - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: courtesycars - - name: csiinvites - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: csi - - name: csiquestions - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: csiquestions - - name: documents - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: documents - - name: employees - using: - foreign_key_constraint_on: - column: shopid - table: - schema: public - name: employees - - name: exportlogs - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: exportlog - - name: jobs - using: - foreign_key_constraint_on: - column: shopid - table: - schema: public - name: jobs - - name: owners - using: - foreign_key_constraint_on: - column: shopid - table: - schema: public - name: owners - - name: phonebooks - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: phonebook - - name: timetickets - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: timetickets - - name: vehicles - using: - foreign_key_constraint_on: - column: shopid - table: - schema: public - name: vehicles - - name: vendors - using: - foreign_key_constraint_on: - column: bodyshopid - table: - schema: public - name: vendors - select_permissions: - - role: user - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - enforce_referral - - federal_tax_id - - id - - imexshopid - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - jobsizelimit - - logo_img_path - - md_categories - - md_ccc_rates - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - messagingservicesid - - phone - - prodtargethrs - - production_config - - region_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - stripe_acct_id - - sub_status - - target_touchtime - - template_header - - textid - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - user: - authid: - _eq: X-Hasura-User-Id - update_permissions: - - role: user - permission: - columns: - - accountingconfig - - address1 - - address2 - - appt_alt_transport - - appt_colors - - appt_length - - bill_tax_rates - - city - - country - - created_at - - default_adjustment_rate - - deliverchecklist - - email - - enforce_class - - enforce_referral - - federal_tax_id - - id - - inhousevendorid - - insurance_vendor_id - - intakechecklist - - logo_img_path - - md_categories - - md_ccc_rates - - md_classes - - md_hour_split - - md_ins_cos - - md_labor_rates - - md_messaging_presets - - md_notes_presets - - md_order_statuses - - md_parts_locations - - md_payment_types - - md_rbac - - md_referral_sources - - md_responsibility_centers - - md_ro_statuses - - phone - - prodtargethrs - - production_config - - schedule_end_time - - schedule_start_time - - scoreboard_target - - shopname - - shoprates - - speedprint - - ssbuckets - - state - - state_tax_id - - target_touchtime - - updated_at - - use_fippa - - workingdays - - zip_post - filter: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null -- table: - schema: public - name: cccontracts - object_relationships: - - name: courtesycar - using: - foreign_key_constraint_on: courtesycarid - - name: job - using: - foreign_key_constraint_on: jobid - insert_permissions: - - role: user - permission: - check: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damage - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - select_permissions: - - role: user - permission: - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damage - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - actax - - actualreturn - - agreementnumber - - cleanupcharge - - contract_date - - courtesycarid - - coverage - - created_at - - dailyfreekm - - dailyrate - - damage - - damagewaiver - - driver_addr1 - - driver_addr2 - - driver_city - - driver_dlexpiry - - driver_dlnumber - - driver_dlst - - driver_dob - - driver_fn - - driver_ln - - driver_ph1 - - driver_state - - driver_zip - - excesskmrate - - federaltax - - fuelin - - fuelout - - id - - jobid - - kmend - - kmstart - - localtax - - refuelcharge - - scheduledreturn - - start - - statetax - - status - - updated_at - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - courtesycar: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: conversations - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - array_relationships: - - name: job_conversations - using: - foreign_key_constraint_on: - column: conversationid - table: - schema: public - name: job_conversations - - name: messages - using: - foreign_key_constraint_on: - column: conversationid - table: - schema: public - name: messages - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - bodyshopid - - phone_num - select_permissions: - - role: user - permission: - columns: - - phone_num - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - phone_num - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null -- table: - schema: public - name: counters - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: shopid -- table: - schema: public - name: courtesycars - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - array_relationships: - - name: cccontracts - using: - foreign_key_constraint_on: - column: courtesycarid - table: - schema: public - name: cccontracts - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - bodyshopid - - make - - model - - year - - plate - - color - - vin - - fleetnumber - - purchasedate - - servicestartdate - - serviceenddate - - leaseenddate - - status - - nextservicekm - - nextservicedate - - damage - - notes - - fuel - - registrationexpires - - insuranceexpires - - dailycost - - mileage - select_permissions: - - role: user - permission: - columns: - - insuranceexpires - - leaseenddate - - nextservicedate - - purchasedate - - registrationexpires - - serviceenddate - - servicestartdate - - dailycost - - fuel - - mileage - - nextservicekm - - color - - damage - - fleetnumber - - make - - model - - notes - - plate - - status - - vin - - year - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - insuranceexpires - - leaseenddate - - nextservicedate - - purchasedate - - registrationexpires - - serviceenddate - - servicestartdate - - dailycost - - fuel - - mileage - - nextservicekm - - color - - damage - - fleetnumber - - make - - model - - notes - - plate - - status - - vin - - year - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: csi - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - - name: csiquestion - using: - foreign_key_constraint_on: questionset - - name: job - using: - foreign_key_constraint_on: jobid - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - bodyshopid - - created_at - - id - - jobid - - questionset - - relateddata - - updated_at - - valid - - validuntil - select_permissions: - - role: anonymous - permission: - columns: - - id - - relateddata - - valid - - validuntil - filter: - valid: - _eq: true - limit: 1 - - role: user - permission: - columns: - - bodyshopid - - completedon - - created_at - - id - - jobid - - questionset - - relateddata - - response - - updated_at - - valid - - validuntil - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: anonymous - permission: - columns: - - completedon - - response - - valid - filter: - valid: - _eq: true - check: null - - role: user - permission: - columns: - - bodyshopid - - completedon - - created_at - - id - - jobid - - relateddata - - updated_at - - valid - - validuntil - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null -- table: - schema: public - name: csiquestions - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - array_relationships: - - name: csis - using: - foreign_key_constraint_on: - column: questionset - table: - schema: public - name: csi - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - current - - config - - created_at - - updated_at - - bodyshopid - - id - select_permissions: - - role: anonymous - permission: - columns: - - config - - id - filter: {} - limit: 1 - - role: user - permission: - columns: - - current - - config - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - update_permissions: - - role: user - permission: - columns: - - current - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null -- table: - schema: public - name: documents - object_relationships: - - name: bill - using: - foreign_key_constraint_on: billid - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - - name: job - using: - foreign_key_constraint_on: jobid - insert_permissions: - - role: user - permission: - check: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - size - - type - - updated_at - - uploaded_by - select_permissions: - - role: user - permission: - columns: - - billid - - bodyshopid - - created_at - - extension - - id - - jobid - - key - - name - - size - - type - - updated_at - - uploaded_by - filter: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - extension - - key - - name - - type - - uploaded_by - - created_at - - updated_at - - billid - - bodyshopid - - id - - jobid - filter: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - _or: - - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: employees - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: shopid - - name: user - using: - foreign_key_constraint_on: user_email - array_relationships: - - name: allocations - using: - foreign_key_constraint_on: - column: employeeid - table: - schema: public - name: allocations - - name: jobsByEmployeeBody - using: - foreign_key_constraint_on: - column: employee_body - table: - schema: public - name: jobs - - name: jobsByEmployeeCsr - using: - foreign_key_constraint_on: - column: employee_csr - table: - schema: public - name: jobs - - name: jobsByEmployeePrep - using: - foreign_key_constraint_on: - column: employee_prep - table: - schema: public - name: jobs - - name: jobsByEmployeeRefinish - using: - foreign_key_constraint_on: - column: employee_refinish - table: - schema: public - name: jobs - - name: timetickets - using: - foreign_key_constraint_on: - column: employeeid - table: - schema: public - name: timetickets - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - active - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - rates - - shopid - - termination_date - - updated_at - - user_email - select_permissions: - - role: user - permission: - columns: - - active - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - rates - - shopid - - termination_date - - updated_at - - user_email - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - active - - created_at - - employee_number - - first_name - - flat_rate - - hire_date - - id - - last_name - - pin - - rates - - shopid - - termination_date - - updated_at - - user_email - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: exportlog - object_relationships: - - name: bill - using: - foreign_key_constraint_on: billid - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - - name: job - using: - foreign_key_constraint_on: jobid - - name: payment - using: - foreign_key_constraint_on: paymentid - - name: user - using: - foreign_key_constraint_on: useremail - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - jobid - - billid - - paymentid - - successful - - message - - bodyshopid - - useremail - backend_only: false - select_permissions: - - role: user - permission: - columns: - - successful - - message - - useremail - - created_at - - updated_at - - billid - - bodyshopid - - id - - jobid - - paymentid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true -- table: - schema: public - name: ioevents -- table: - schema: public - name: job_conversations - object_relationships: - - name: conversation - using: - foreign_key_constraint_on: conversationid - - name: job - using: - foreign_key_constraint_on: jobid - insert_permissions: - - role: user - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - conversationid - - id - - jobid - select_permissions: - - role: user - permission: - columns: - - conversationid - - id - - jobid - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - update_permissions: - - role: user - permission: - columns: - - conversationid - - jobid - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: joblines - object_relationships: - - name: job - using: - foreign_key_constraint_on: jobid - array_relationships: - - name: allocations - using: - foreign_key_constraint_on: - column: joblineid - table: - schema: public - name: allocations - - name: billlines - using: - foreign_key_constraint_on: - column: joblineid - table: - schema: public - name: billlines - - name: parts_order_lines - using: - foreign_key_constraint_on: - column: job_line_id - table: - schema: public - name: parts_order_lines - insert_permissions: - - role: user - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - manual_line - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - select_permissions: - - role: user - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - manual_line - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - act_price - - alt_co_id - - alt_overrd - - alt_part_i - - alt_partm - - alt_partno - - bett_amt - - bett_pctg - - bett_tax - - bett_type - - cert_part - - created_at - - db_hrs - - db_price - - db_ref - - est_seq - - glass_flag - - id - - jobid - - lbr_amt - - lbr_hrs_j - - lbr_inc - - lbr_op - - lbr_op_j - - lbr_tax - - lbr_typ_j - - line_desc - - line_ind - - line_no - - line_ref - - location - - manual_line - - misc_amt - - misc_sublt - - misc_tax - - mod_lb_hrs - - mod_lbr_ty - - notes - - oem_partno - - op_code_desc - - paint_stg - - paint_tone - - part_qty - - part_type - - price_inc - - price_j - - profitcenter_labor - - profitcenter_part - - prt_dsmk_m - - prt_dsmk_p - - removed - - status - - sublet_completed - - sublet_ignored - - tax_part - - unq_seq - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: joblines_status - object_relationships: - - name: job - using: - manual_configuration: - remote_table: - schema: public - name: jobs - column_mapping: - jobid: id - select_permissions: - - role: user - permission: - columns: - - jobid - - status - - count - - part_type - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: jobs - object_relationships: - - name: bill - using: - manual_configuration: - remote_table: - schema: public - name: bills - column_mapping: - id: jobid - - name: bodyshop - using: - foreign_key_constraint_on: shopid - - name: employee_body_rel - using: - foreign_key_constraint_on: employee_body - - name: employee_csr_rel - using: - foreign_key_constraint_on: employee_csr - - name: employee_prep_rel - using: - foreign_key_constraint_on: employee_prep - - name: employee_refinish_rel - using: - foreign_key_constraint_on: employee_refinish - - name: owner - using: - foreign_key_constraint_on: ownerid - - name: vehicle - using: - foreign_key_constraint_on: vehicleid - array_relationships: - - name: appointments - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: appointments - - name: available_jobs - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: available_jobs - - name: bills - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: bills - - name: cccontracts - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: cccontracts - - name: csiinvites - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: csi - - name: documents - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: documents - - name: exportlogs - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: exportlog - - name: job_conversations - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: job_conversations - - name: joblines - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: joblines - - name: joblines_status - using: - manual_configuration: - remote_table: - schema: public - name: joblines_status - column_mapping: - id: jobid - - name: notes - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: notes - - name: parts_orders - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: parts_orders - - name: payments - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: payments - - name: scoreboards - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: scoreboard - - name: timetickets - using: - foreign_key_constraint_on: - column: jobid - table: - schema: public - name: timetickets - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_csr - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - select_permissions: - - role: user - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_csr - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - actual_completion - - actual_delivery - - actual_in - - adj_g_disc - - adj_strdis - - adj_towdis - - adjustment_bottom_line - - agt_addr1 - - agt_addr2 - - agt_city - - agt_co_id - - agt_co_nm - - agt_ct_fn - - agt_ct_ln - - agt_ct_ph - - agt_ct_phx - - agt_ctry - - agt_ea - - agt_fax - - agt_faxx - - agt_lic_no - - agt_ph1 - - agt_ph1x - - agt_ph2 - - agt_ph2x - - agt_st - - agt_zip - - alt_transport - - area_of_damage - - asgn_date - - asgn_no - - asgn_type - - ca_bc_pvrt - - ca_customer_gst - - ca_gst_registrant - - cat_no - - category - - cieca_stl - - cieca_ttl - - ciecaid - - class - - clm_addr1 - - clm_addr2 - - clm_city - - clm_ct_fn - - clm_ct_ln - - clm_ct_ph - - clm_ct_phx - - clm_ctry - - clm_ea - - clm_fax - - clm_faxx - - clm_no - - clm_ofc_id - - clm_ofc_nm - - clm_ph1 - - clm_ph1x - - clm_ph2 - - clm_ph2x - - clm_st - - clm_title - - clm_total - - clm_zip - - converted - - created_at - - cust_pr - - date_estimated - - date_exported - - date_invoiced - - date_open - - date_scheduled - - ded_amt - - ded_status - - deliverchecklist - - depreciation_taxes - - driveable - - employee_body - - employee_csr - - employee_prep - - employee_refinish - - est_addr1 - - est_addr2 - - est_city - - est_co_nm - - est_ct_fn - - est_ct_ln - - est_ctry - - est_ea - - est_ph1 - - est_st - - est_zip - - federal_tax_rate - - g_bett_amt - - id - - inproduction - - ins_addr1 - - ins_addr2 - - ins_city - - ins_co_id - - ins_co_nm - - ins_ct_fn - - ins_ct_ln - - ins_ct_ph - - ins_ct_phx - - ins_ctry - - ins_ea - - ins_fax - - ins_faxx - - ins_memo - - ins_ph1 - - ins_ph1x - - ins_ph2 - - ins_ph2x - - ins_st - - ins_title - - ins_zip - - insd_addr1 - - insd_addr2 - - insd_city - - insd_co_nm - - insd_ctry - - insd_ea - - insd_fax - - insd_faxx - - insd_fn - - insd_ln - - insd_ph1 - - insd_ph1x - - insd_ph2 - - insd_ph2x - - insd_st - - insd_title - - insd_zip - - intakechecklist - - invoice_allocation - - invoice_date - - job_totals - - kanbanparent - - kmin - - kmout - - labor_rate_desc - - labor_rate_id - - lbr_adjustments - - local_tax_rate - - loss_cat - - loss_date - - loss_desc - - loss_type - - other_amount_payable - - owner_owing - - ownerid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fax - - ownr_faxx - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph1x - - ownr_ph2 - - ownr_ph2x - - ownr_st - - ownr_title - - ownr_zip - - parts_tax_rates - - pay_amt - - pay_chknm - - pay_date - - pay_type - - payee_nms - - plate_no - - plate_st - - po_number - - policy_no - - production_vars - - queued_for_parts - - rate_la1 - - rate_la2 - - rate_la3 - - rate_la4 - - rate_laa - - rate_lab - - rate_lad - - rate_lae - - rate_laf - - rate_lag - - rate_lam - - rate_lar - - rate_las - - rate_lau - - rate_ma2s - - rate_ma2t - - rate_ma3s - - rate_mabl - - rate_macs - - rate_mahw - - rate_mapa - - rate_mash - - rate_matd - - referral_source - - regie_number - - ro_number - - scheduled_completion - - scheduled_delivery - - scheduled_in - - selling_dealer - - selling_dealer_contact - - servicing_dealer - - servicing_dealer_contact - - shopid - - special_coverage_policy - - state_tax_rate - - status - - storage_payable - - tax_lbr_rt - - tax_levies_rt - - tax_paint_mat_rt - - tax_predis - - tax_prethr - - tax_pstthr - - tax_registration_number - - tax_shop_mat_rt - - tax_str_rt - - tax_sub_rt - - tax_thramt - - tax_tow_rt - - theft_ind - - tlos_ind - - towin - - towing_payable - - unit_number - - updated_at - - v_color - - v_make_desc - - v_model_desc - - v_model_yr - - v_vin - - vehicleid - - voided - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: masterdata - select_permissions: - - role: anonymous - permission: - columns: - - key - - value - filter: {} - - role: user - permission: - columns: - - key - - value - filter: {} -- table: - schema: public - name: messages - object_relationships: - - name: conversation - using: - foreign_key_constraint_on: conversationid - - name: user - using: - foreign_key_constraint_on: userid - insert_permissions: - - role: user - permission: - check: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - select_permissions: - - role: user - permission: - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - read - - status - - text - - updated_at - - userid - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - conversationid - - created_at - - id - - image - - image_path - - isoutbound - - msid - - read - - status - - text - - updated_at - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - conversation: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: notes - object_relationships: - - name: job - using: - foreign_key_constraint_on: jobid - - name: user - using: - foreign_key_constraint_on: created_by - insert_permissions: - - role: user - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - audit - - created_at - - created_by - - critical - - id - - jobid - - private - - text - - updated_at - select_permissions: - - role: user - permission: - columns: - - audit - - created_at - - created_by - - critical - - id - - jobid - - private - - text - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - update_permissions: - - role: user - permission: - columns: - - audit - - created_at - - created_by - - critical - - id - - jobid - - private - - text - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: owners - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: shopid - array_relationships: - - name: jobs - using: - foreign_key_constraint_on: - column: ownerid - table: - schema: public - name: jobs - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - ownr_fn - - ownr_ln - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_st - - ownr_zip - - ownr_ctry - - ownr_ea - - ownr_ph1 - - preferred_contact - - allow_text_message - - shopid - - ownr_ph2 - - ownr_co_nm - - ownr_title - - accountingid - select_permissions: - - role: user - permission: - columns: - - allow_text_message - - accountingid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - allow_text_message - - accountingid - - ownr_addr1 - - ownr_addr2 - - ownr_city - - ownr_co_nm - - ownr_ctry - - ownr_ea - - ownr_fn - - ownr_ln - - ownr_ph1 - - ownr_ph2 - - ownr_st - - ownr_title - - ownr_zip - - preferred_contact - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: parts_order_lines - object_relationships: - - name: jobline - using: - foreign_key_constraint_on: job_line_id - - name: parts_order - using: - foreign_key_constraint_on: orderid - insert_permissions: - - role: user - permission: - check: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - act_price - - backordered_eta - - backordered_on - - cost - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - select_permissions: - - role: user - permission: - columns: - - act_price - - backordered_eta - - backordered_on - - cost - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - update_permissions: - - role: user - permission: - columns: - - act_price - - backordered_eta - - backordered_on - - cost - - created_at - - db_price - - id - - job_line_id - - line_desc - - line_remarks - - oem_partno - - orderid - - part_type - - quantity - - status - - updated_at - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - parts_order: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: parts_orders - object_relationships: - - name: bill - using: - foreign_key_constraint_on: returnfrombill - - name: job - using: - foreign_key_constraint_on: jobid - - name: user - using: - foreign_key_constraint_on: user_email - - name: vendor - using: - foreign_key_constraint_on: vendorid - array_relationships: - - name: parts_order_lines - using: - foreign_key_constraint_on: - column: orderid - table: - schema: public - name: parts_order_lines - insert_permissions: - - role: user - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - order_number - - return - - returnfrombill - - status - - updated_at - - user_email - - vendorid - select_permissions: - - role: user - permission: - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - order_number - - return - - returnfrombill - - status - - updated_at - - user_email - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - update_permissions: - - role: user - permission: - columns: - - created_at - - deliver_by - - id - - jobid - - order_date - - order_number - - returnfrombill - - status - - updated_at - - user_email - - vendorid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: payments - object_relationships: - - name: job - using: - foreign_key_constraint_on: jobid - array_relationships: - - name: exportlogs - using: - foreign_key_constraint_on: - column: paymentid - table: - schema: public - name: exportlog - insert_permissions: - - role: user - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - amount - - created_at - - date - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - select_permissions: - - role: user - permission: - columns: - - amount - - created_at - - date - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - amount - - created_at - - date - - exportedat - - id - - jobid - - memo - - payer - - paymentnum - - stripeid - - transactionid - - type - - updated_at - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: phonebook - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - bodyshopid - - firstname - - lastname - - phone1 - - email - - address1 - - address2 - - city - - state - - zip - - country - - company - - phone2 - - fax - - category - backend_only: false - select_permissions: - - role: user - permission: - columns: - - address1 - - address2 - - category - - city - - company - - country - - email - - fax - - firstname - - lastname - - phone1 - - phone2 - - state - - zip - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - address1 - - address2 - - category - - city - - company - - country - - email - - fax - - firstname - - lastname - - phone1 - - phone2 - - state - - zip - - created_at - - updated_at - - bodyshopid - - id - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: scoreboard - object_relationships: - - name: job - using: - foreign_key_constraint_on: jobid - insert_permissions: - - role: user - permission: - check: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - jobid - - painthrs - - bodyhrs - - date - backend_only: false - select_permissions: - - role: user - permission: - columns: - - date - - bodyhrs - - painthrs - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - date - - bodyhrs - - painthrs - - id - - jobid - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - job: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: timetickets - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - - name: employee - using: - foreign_key_constraint_on: employeeid - - name: job - using: - foreign_key_constraint_on: jobid - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - memo - - productivehrs - - rate - - updated_at - select_permissions: - - role: user - permission: - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - memo - - productivehrs - - rate - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - update_permissions: - - role: user - permission: - columns: - - actualhrs - - bodyshopid - - ciecacode - - clockoff - - clockon - - cost_center - - created_at - - date - - employeeid - - id - - jobid - - memo - - productivehrs - - rate - - updated_at - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: users - object_relationships: - - name: employee - using: - manual_configuration: - remote_table: - schema: public - name: employees - column_mapping: - email: user_email - array_relationships: - - name: associations - using: - foreign_key_constraint_on: - column: useremail - table: - schema: public - name: associations - - name: audit_trails - using: - foreign_key_constraint_on: - column: useremail - table: - schema: public - name: audit_trail - - name: exportlogs - using: - foreign_key_constraint_on: - column: useremail - table: - schema: public - name: exportlog - - name: messages - using: - foreign_key_constraint_on: - column: userid - table: - schema: public - name: messages - - name: notes - using: - foreign_key_constraint_on: - column: created_by - table: - schema: public - name: notes - - name: parts_orders - using: - foreign_key_constraint_on: - column: user_email - table: - schema: public - name: parts_orders - insert_permissions: - - role: user - permission: - check: {} - columns: - - authid - - email - - fcmtokens - - validemail - select_permissions: - - role: user - permission: - columns: - - authid - - created_at - - dashboardlayout - - email - - fcmtokens - - updated_at - - validemail - filter: - associations: - bodyshop: - associations: - active: - _eq: true - update_permissions: - - role: user - permission: - columns: - - authid - - dashboardlayout - - email - - fcmtokens - filter: - authid: - _eq: X-Hasura-User-Id - check: null -- table: - schema: public - name: vehicles - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: shopid - array_relationships: - - name: jobs - using: - foreign_key_constraint_on: - column: vehicleid - table: - schema: public - name: jobs - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - id - - created_at - - updated_at - - v_vin - - v_make_desc - - v_model_desc - - v_model_yr - - v_color - - v_paint_codes - - v_bstyle - - v_engine - - shopid - - db_v_code - - plate_no - - plate_st - - v_cond - - v_prod_dt - - v_type - - v_trimcode - - trim_color - - v_mldgcode - - v_options - - v_tone - - v_stage - - v_makecode - select_permissions: - - role: user - permission: - columns: - - v_paint_codes - - db_v_code - - plate_no - - plate_st - - trim_color - - v_bstyle - - v_color - - v_cond - - v_engine - - v_makecode - - v_make_desc - - v_mldgcode - - v_model_desc - - v_model_yr - - v_options - - v_prod_dt - - v_stage - - v_tone - - v_trimcode - - v_type - - v_vin - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - v_paint_codes - - db_v_code - - plate_no - - plate_st - - trim_color - - v_bstyle - - v_color - - v_cond - - v_engine - - v_makecode - - v_make_desc - - v_mldgcode - - v_model_desc - - v_model_yr - - v_options - - v_prod_dt - - v_stage - - v_tone - - v_trimcode - - v_type - - v_vin - - created_at - - updated_at - - id - - shopid - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -- table: - schema: public - name: vendors - object_relationships: - - name: bodyshop - using: - foreign_key_constraint_on: bodyshopid - array_relationships: - - name: invoices - using: - foreign_key_constraint_on: - column: vendorid - table: - schema: public - name: bills - - name: parts_orders - using: - foreign_key_constraint_on: - column: vendorid - table: - schema: public - name: parts_orders - insert_permissions: - - role: user - permission: - check: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - columns: - - active - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - select_permissions: - - role: user - permission: - columns: - - active - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - allow_aggregations: true - update_permissions: - - role: user - permission: - columns: - - active - - bodyshopid - - city - - cost_center - - country - - created_at - - discount - - due_date - - email - - favorite - - id - - name - - phone - - state - - street1 - - street2 - - updated_at - - zip - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true - check: null - delete_permissions: - - role: user - permission: - filter: - bodyshop: - associations: - _and: - - user: - authid: - _eq: X-Hasura-User-Id - - active: - _eq: true -functions: -- function: - schema: public - name: search_bills -- function: - schema: public - name: search_cccontracts -- function: - schema: public - name: search_exportlog -- function: - schema: public - name: search_jobs -- function: - schema: public - name: search_owners -- function: - schema: public - name: search_payments -- function: - schema: public - name: search_phonebook -- function: - schema: public - name: search_vehicles