Skip to content

Commit

Permalink
feat(hasura): add database and event trigger on votepeloclima
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos committed Aug 6, 2024
1 parent e4ecb60 commit aa8b995
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions migrations/metadata/databases/databases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@
max_connections: 50
tables: "!include default/tables/tables.yaml"
functions: "!include default/functions/functions.yaml"
- name: votepeloclima
kind: postgres
configuration:
connection_info:
use_prepared_statements: false
database_url:
from_env: HASURA_GRAPHQL_VOTEPELOCLIMA_DATABASE_URL
isolation_level: read-committed
tables: "!include votepeloclima/tables/tables.yaml"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
table:
schema: public
name: candidature_candidatureflow
event_triggers:
- name: votepeloclima-validacao-cadastro
definition:
enable_manual: false
update:
columns:
- status
retry_conf:
num_retries: 0
interval_sec: 10
timeout_sec: 60
webhook: '{{N8N_WEBHOOK_URL}}/votepeloclima/validacao/cadastro/'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- "!include public_candidature_candidatureflow.yaml"

0 comments on commit aa8b995

Please sign in to comment.