mirror of
https://github.com/FlipsideCrypto/cosmos-models.git
synced 2026-02-06 11:01:45 +00:00
* Create PROD Clone * Add UPDATE_UDFS_AND_SPS Variable * Remove on start * Add start hooks
9 lines
253 B
SQL
9 lines
253 B
SQL
{% macro create_sps() %}
|
|
{% if var("UPDATE_UDFS_AND_SPS") %}
|
|
{% if target.database == 'COSMOS' %}
|
|
CREATE schema IF NOT EXISTS _internal;
|
|
{{ sp_create_prod_clone('_internal') }};
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endmacro %}
|