From 7911e661810088016eaee826860ada6058dfd2a4 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 8 Jan 2021 09:27:30 -0800 Subject: [PATCH] Dropped templates table. IO-585 --- .../down.yaml | 1 + .../up.yaml | 5 + hasura/migrations/metadata.yaml | 99 ------------------- 3 files changed, 6 insertions(+), 99 deletions(-) create mode 100644 hasura/migrations/1610126817563_drop_table_public_templates/down.yaml create mode 100644 hasura/migrations/1610126817563_drop_table_public_templates/up.yaml diff --git a/hasura/migrations/1610126817563_drop_table_public_templates/down.yaml b/hasura/migrations/1610126817563_drop_table_public_templates/down.yaml new file mode 100644 index 000000000..fe51488c7 --- /dev/null +++ b/hasura/migrations/1610126817563_drop_table_public_templates/down.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura/migrations/1610126817563_drop_table_public_templates/up.yaml b/hasura/migrations/1610126817563_drop_table_public_templates/up.yaml new file mode 100644 index 000000000..0b0c18598 --- /dev/null +++ b/hasura/migrations/1610126817563_drop_table_public_templates/up.yaml @@ -0,0 +1,5 @@ +- args: + cascade: true + read_only: false + sql: DROP TABLE "public"."templates"; + type: run_sql diff --git a/hasura/migrations/metadata.yaml b/hasura/migrations/metadata.yaml index 1c36f0593..5fa5c5632 100644 --- a/hasura/migrations/metadata.yaml +++ b/hasura/migrations/metadata.yaml @@ -672,13 +672,6 @@ tables: 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: @@ -3616,98 +3609,6 @@ tables: _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