mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 21:12:09 +03:00
2325755954
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4259 Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com> Co-authored-by: Brandon Simmons <210815+jberryman@users.noreply.github.com> Co-authored-by: paritosh-08 <85472423+paritosh-08@users.noreply.github.com> GitOrigin-RevId: 4d1b4ec3c01f3a839f4392d3b77950fc3ab30236
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
|