eclipse-models/macros/create_sps.sql

12 lines
442 B
MySQL
Raw Permalink Normal View History

2024-08-28 13:46:04 +00:00
{% macro create_sps() %}
{% if target.database == 'ECLIPSE' %}
2024-08-28 13:46:04 +00:00
CREATE SCHEMA IF NOT EXISTS _internal;
{{ sp_create_prod_clone('_internal') }};
{% endif %}
{% endmacro %}
{% macro enable_search_optimization(schema_name, table_name, condition = '') %}
{% if target.database == 'ECLIPSE' %}
2024-08-28 13:46:04 +00:00
ALTER TABLE {{ schema_name }}.{{ table_name }} ADD SEARCH OPTIMIZATION {{ condition }}
{% endif %}
{% endmacro %}