diff --git a/hasura/metadata/tables.yaml b/hasura/metadata/tables.yaml index f49d64de..73a0f612 100644 --- a/hasura/metadata/tables.yaml +++ b/hasura/metadata/tables.yaml @@ -114,7 +114,6 @@ - categoryId - id - name - backend_only: false select_permissions: - role: world permission: @@ -207,7 +206,6 @@ - botNotifications - name - picture - backend_only: false select_permissions: - role: world permission: @@ -246,7 +244,6 @@ userEmail: _eq: x-hasura-user-email columns: [] - backend_only: false select_permissions: - role: world permission: @@ -290,7 +287,6 @@ - userEmail - agency - created_at - backend_only: false select_permissions: - role: world permission: @@ -346,7 +342,6 @@ - skillId - skillLevel - userEmail - backend_only: false select_permissions: - role: world permission: @@ -408,7 +403,6 @@ - userEmail - topicId - created_at - backend_only: false select_permissions: - role: world permission: @@ -434,6 +428,7 @@ delete_permissions: - role: world permission: + backend_only: false filter: userEmail: _eq: x-hasura-user-email diff --git a/hasura/migrations/1660035263434_alter_table_public_User_add_column_active/down.sql b/hasura/migrations/1660035263434_alter_table_public_User_add_column_active/down.sql new file mode 100644 index 00000000..36ea8866 --- /dev/null +++ b/hasura/migrations/1660035263434_alter_table_public_User_add_column_active/down.sql @@ -0,0 +1,4 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- alter table "public"."User" add column "active" boolean +-- not null default 'true'; diff --git a/hasura/migrations/1660035263434_alter_table_public_User_add_column_active/up.sql b/hasura/migrations/1660035263434_alter_table_public_User_add_column_active/up.sql new file mode 100644 index 00000000..1a5557ca --- /dev/null +++ b/hasura/migrations/1660035263434_alter_table_public_User_add_column_active/up.sql @@ -0,0 +1,2 @@ +alter table "public"."User" add column "active" boolean + not null default 'true';