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 new file mode 100644 index 000000000..92c2567cf --- /dev/null +++ b/hasura/migrations/1590698750370_alter_table_public_owners_add_column_accountingid/down.yaml @@ -0,0 +1,5 @@ +- 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 new file mode 100644 index 000000000..7d129d044 --- /dev/null +++ b/hasura/migrations/1590698750370_alter_table_public_owners_add_column_accountingid/up.yaml @@ -0,0 +1,5 @@ +- 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 new file mode 100644 index 000000000..21addc58a --- /dev/null +++ b/hasura/migrations/1590698778968_update_permission_user_public_table_owners/down.yaml @@ -0,0 +1,46 @@ +- 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 new file mode 100644 index 000000000..60a6a7f0a --- /dev/null +++ b/hasura/migrations/1590698778968_update_permission_user_public_table_owners/up.yaml @@ -0,0 +1,47 @@ +- 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 new file mode 100644 index 000000000..85ab7c994 --- /dev/null +++ b/hasura/migrations/1590698784975_update_permission_user_public_table_owners/down.yaml @@ -0,0 +1,44 @@ +- 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 new file mode 100644 index 000000000..fea901502 --- /dev/null +++ b/hasura/migrations/1590698784975_update_permission_user_public_table_owners/up.yaml @@ -0,0 +1,45 @@ +- 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 new file mode 100644 index 000000000..9609517ec --- /dev/null +++ b/hasura/migrations/1590698791753_update_permission_user_public_table_owners/down.yaml @@ -0,0 +1,46 @@ +- 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 new file mode 100644 index 000000000..ed9944e65 --- /dev/null +++ b/hasura/migrations/1590698791753_update_permission_user_public_table_owners/up.yaml @@ -0,0 +1,47 @@ +- 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/metadata.yaml b/hasura/migrations/metadata.yaml index b5928c964..09a8b4d0f 100644 --- a/hasura/migrations/metadata.yaml +++ b/hasura/migrations/metadata.yaml @@ -2838,30 +2838,34 @@ tables: - active: _eq: true columns: - - id + - accountingid + - allow_text_message - created_at - - updated_at - - ownr_fn - - ownr_ln + - id - ownr_addr1 - ownr_addr2 - ownr_city - - ownr_st - - ownr_zip + - ownr_co_nm - ownr_ctry - ownr_ea + - ownr_fn + - ownr_ln - ownr_ph1 - - preferred_contact - - allow_text_message - - shopid - ownr_ph2 - - ownr_co_nm + - ownr_st - ownr_title + - ownr_zip + - preferred_contact + - shopid + - updated_at select_permissions: - role: user permission: columns: + - accountingid - allow_text_message + - created_at + - id - ownr_addr1 - ownr_addr2 - ownr_city @@ -2876,10 +2880,8 @@ tables: - ownr_title - ownr_zip - preferred_contact - - created_at - - updated_at - - id - shopid + - updated_at filter: bodyshop: associations: @@ -2893,7 +2895,10 @@ tables: - role: user permission: columns: + - accountingid - allow_text_message + - created_at + - id - ownr_addr1 - ownr_addr2 - ownr_city @@ -2908,10 +2913,8 @@ tables: - ownr_title - ownr_zip - preferred_contact - - created_at - - updated_at - - id - shopid + - updated_at filter: bodyshop: associations: