mirror of
https://github.com/FlipsideCrypto/aptos-models.git
synced 2026-02-06 13:22:04 +00:00
add macro
This commit is contained in:
parent
eaf0afb8ac
commit
1e5ce625f9
12
macros/unverify_tokens.sql
Normal file
12
macros/unverify_tokens.sql
Normal file
@ -0,0 +1,12 @@
|
||||
{% macro unverify_tokens() %}
|
||||
{% if var('HEAL_MODEL', false) and is_incremental() %}
|
||||
DELETE FROM {{ this }}
|
||||
WHERE LOWER(token_address) NOT IN (
|
||||
SELECT DISTINCT LOWER(token_address)
|
||||
FROM {{ ref('price__ez_prices_hourly') }}
|
||||
WHERE
|
||||
is_verified = TRUE
|
||||
AND token_address IS NOT NULL
|
||||
);
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
Loading…
Reference in New Issue
Block a user