mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-05 14:27:59 +03:00
40 lines
698 B
YAML
40 lines
698 B
YAML
|
type: bulk
|
||
|
args:
|
||
|
|
||
|
- type: run_sql
|
||
|
args:
|
||
|
sql: |
|
||
|
create table hge_tests.test_t2(
|
||
|
c1 int,
|
||
|
c2 text,
|
||
|
created_at timestamptz default now()
|
||
|
);
|
||
|
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: test_t2
|
||
|
- 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
|