Skip to content

Commit

Permalink
try to fix unique key
Browse files Browse the repository at this point in the history
  • Loading branch information
lequangphu committed Nov 24, 2024
1 parent 06ccc49 commit e78574c
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
schema = 'lifi',
alias = 'transfers',
materialized = 'incremental',
unique_key = ['evt_block_time', 'evt_tx_hash', 'evt_index']
unique_key = ['evt_tx_hash', 'evt_index', 'source_chain']
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{ config(
schema = 'lifi_arbitrum',
alias = 'transfers',
materialized = 'view'
materialized = 'view',
unique_key = ['evt_tx_hash', 'evt_index']
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{ config(
schema = 'lifi_avalanche',
alias = 'transfers',
materialized = 'view'
materialized = 'view',
unique_key = ['evt_tx_hash', 'evt_index']
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{ config(
schema = 'lifi_bnb',
alias = 'transfers',
materialized = 'view'
materialized = 'view',
unique_key = ['evt_tx_hash', 'evt_index']
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{ config(
schema = 'lifi_ethereum',
alias = 'transfers',
materialized = 'view'
materialized = 'view',
unique_key = ['evt_tx_hash', 'evt_index']
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{ config(
schema = 'lifi_fantom',
alias = 'transfers',
materialized = 'view'
materialized = 'view',
unique_key = ['evt_tx_hash', 'evt_index']
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{ config(
schema = 'lifi_gnosis',
alias = 'transfers',
materialized = 'view'
materialized = 'view',
unique_key = ['evt_tx_hash', 'evt_index']
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{ config(
schema = 'lifi_zksync',
alias = 'transfers',
materialized = 'view'
materialized = 'view',
unique_key = ['evt_tx_hash', 'evt_index']
)
}}

Expand Down

0 comments on commit e78574c

Please sign in to comment.