Resolved duplicate vehicles uniqueness constraint on initial import BOD-397

This commit is contained in:
Patrick Fic
2020-10-05 14:15:41 -07:00
parent 7d9b02bb22
commit f188e9512b
13 changed files with 336 additions and 73 deletions

View File

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

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: ALTER TABLE "public"."available_jobs" ADD COLUMN "ins_co_nm" text NULL;
type: run_sql

View File

@@ -0,0 +1,39 @@
- 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

View File

@@ -0,0 +1,40 @@
- 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

View File

@@ -0,0 +1,40 @@
- 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

View File

@@ -0,0 +1,41 @@
- 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

View File

@@ -0,0 +1,33 @@
- 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

View File

@@ -0,0 +1,34 @@
- 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

View File

@@ -276,40 +276,42 @@ tables:
- active:
_eq: true
columns:
- id
- created_at
- updated_at
- uploaded_by
- cieca_id
- bodyshopid
- est_data
- issupplement
- jobid
- supplement_number
- ownr_name
- vehicle_info
- 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:
- issupplement
- supplement_number
- est_data
- clm_amt
- 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
- created_at
- updated_at
- bodyshopid
- id
- jobid
filter:
bodyshop:
associations:
@@ -326,6 +328,7 @@ tables:
- cieca_id
- clm_amt
- est_data
- ins_co_nm
- issupplement
- ownr_name
- source_system