From fe22a71db73f868edb865b26bf2e66e05d9db435 Mon Sep 17 00:00:00 2001 From: Marc-Aurele Besner Date: Thu, 7 Nov 2024 19:40:21 -0500 Subject: [PATCH] fix events-extrinsics relation in hasura metadata --- .../db/metadata/databases/default/tables/consensus_events.yaml | 3 ++- .../databases/default/tables/consensus_extrinsics.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/indexers/db/metadata/databases/default/tables/consensus_events.yaml b/indexers/db/metadata/databases/default/tables/consensus_events.yaml index 9d13cf58..c1f41ab1 100644 --- a/indexers/db/metadata/databases/default/tables/consensus_events.yaml +++ b/indexers/db/metadata/databases/default/tables/consensus_events.yaml @@ -27,11 +27,12 @@ object_relationships: remote_table: name: event_modules schema: consensus +array_relationships: - name: extrinsic using: manual_configuration: column_mapping: - block_height: block_height + extrinsic_id: id insertion_order: null remote_table: name: extrinsics diff --git a/indexers/db/metadata/databases/default/tables/consensus_extrinsics.yaml b/indexers/db/metadata/databases/default/tables/consensus_extrinsics.yaml index c61f94aa..240ea197 100644 --- a/indexers/db/metadata/databases/default/tables/consensus_extrinsics.yaml +++ b/indexers/db/metadata/databases/default/tables/consensus_extrinsics.yaml @@ -32,7 +32,7 @@ array_relationships: using: manual_configuration: column_mapping: - block_height: block_height + id: extrinsic_id insertion_order: null remote_table: name: events