2018-09-20 04:46:03 +03:00
|
|
|
type: bulk
|
|
|
|
args:
|
|
|
|
- type: run_sql
|
|
|
|
args:
|
|
|
|
sql: |
|
|
|
|
create table hge_tests.test_t2(
|
|
|
|
c1 int,
|
|
|
|
c2 text
|
|
|
|
);
|
|
|
|
- type: track_table
|
|
|
|
args:
|
|
|
|
schema: hge_tests
|
|
|
|
name: test_t2
|
2020-11-03 11:15:22 +03:00
|
|
|
- type: run_sql
|
|
|
|
args:
|
|
|
|
sql: |
|
|
|
|
create table hge_tests.articles(
|
|
|
|
id serial primary key,
|
|
|
|
content text,
|
|
|
|
title text,
|
|
|
|
is_public bool default false
|
|
|
|
);
|
|
|
|
- type: track_table
|
|
|
|
args:
|
|
|
|
schema: hge_tests
|
|
|
|
name: articles
|
|
|
|
- type: create_select_permission
|
|
|
|
args:
|
|
|
|
table:
|
|
|
|
schema: hge_tests
|
|
|
|
name: articles
|
|
|
|
role: public
|
|
|
|
permission:
|
|
|
|
columns:
|
|
|
|
- title
|
|
|
|
- content
|
|
|
|
filter:
|
|
|
|
is_public: true
|