mirror of
https://github.com/FlipsideCrypto/fsc-utils.git
synced 2026-02-06 10:56:49 +00:00
add copy grants
This commit is contained in:
parent
ff4cb23373
commit
683dbc3922
@ -138,7 +138,7 @@
|
||||
{%- do schema_ddl.append("CREATE SCHEMA IF NOT EXISTS __NEW__." ~ s ~ ";") -%}
|
||||
{%- endfor -%}
|
||||
{% for table in tables %}
|
||||
{%- do view_ddl.append("CREATE OR REPLACE VIEW __NEW__." ~ table ~ " AS SELECT * FROM " ~ "__SOURCE__." ~ table ~";") -%}
|
||||
{%- do view_ddl.append("CREATE OR REPLACE VIEW __NEW__." ~ table ~ " copy grants AS SELECT * FROM " ~ "__SOURCE__." ~ table ~";") -%}
|
||||
{%- endfor -%}
|
||||
{{- toyaml(schema_ddl + view_ddl) -}}
|
||||
{%- endmacro -%}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user