I have requirement where the DB Name in Schema.yml has to be derived.
database: ‘{{target.name~“_PRODUCT”}}’
But if need to add a if condition and set the value of database, as below
{% if target.name == ‘LOCAL_DEV’ %}
database: DEV_PRODUCT
{% else %}
database: ‘{{target.name~“_PRODUCT”}}’
{% endif %}
with the above coded added to schema.yml I see following error :
Raw Error:
------------------------------
while scanning for the next token
found character '%' that cannot start any token
in "<unicode string>", line 7, column 6: