Renamed some owner fields to follow CIECA standard. Work on Owner Select modal.

This commit is contained in:
Patrick Fic
2020-01-29 09:52:02 -08:00
parent 1cdedac0a8
commit 7d6969b186
49 changed files with 691 additions and 135 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,3 @@
- args:
sql: ALTER TABLE "public"."owners" DROP COLUMN "ownr_ph2";
type: run_sql

View File

@@ -0,0 +1,3 @@
- args:
sql: ALTER TABLE "public"."owners" ADD COLUMN "ownr_ph2" text NULL;
type: run_sql

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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