Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix: consecutive blocks trigger existence check (#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostman authored Sep 29, 2023
1 parent 74a31e0 commit 3afad10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/fuel-indexer-database/postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,7 @@ pub async fn create_ensure_block_height_consecutive_trigger(
SELECT 1
FROM pg_trigger
WHERE tgname = 'trigger_ensure_block_height_consecutive'
AND tgrelid = '{namespace}_{identifier}.indexmetadataentity'::regclass
) THEN
CREATE TRIGGER trigger_ensure_block_height_consecutive
BEFORE INSERT OR UPDATE ON {namespace}_{identifier}.indexmetadataentity
Expand Down

0 comments on commit 3afad10

Please sign in to comment.