bsc-models/macros/create_sps.sql
drethereum a6add45fd7
AN-2421/update-udf-sp-bsc (#19)
* added project level variable and associated IF statements to on-run-start macros to default UDF/SP updates to False

* deleted unnecessary file
2022-11-14 14:26:10 -05:00

9 lines
254 B
SQL

{% macro create_sps() %}
{% if var("UPDATE_UDFS_AND_SPS") %}
{% if target.database == 'BSC' %}
CREATE schema IF NOT EXISTS _internal;
{{ sp_create_prod_clone('_internal') }};
{% endif %}
{% endif %}
{% endmacro %}