mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-22 23:11:41 +03:00
5bc0355bdd
GitOrigin-RevId: abd7303aaf8e7a8739fd10574249aec450082ef8
42 lines
706 B
YAML
42 lines
706 B
YAML
type: bulk
|
|
args:
|
|
|
|
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
CREATE EXTENSION IF NOT EXISTS postgis;
|
|
create table author(
|
|
id SERIAL PRIMARY KEY,
|
|
name TEXT UNIQUE,
|
|
location GEOGRAPHY(Point)
|
|
);
|
|
create table article(
|
|
id SERIAL PRIMARY KEY,
|
|
body JSONB
|
|
);
|
|
create table misgivings(
|
|
i INTEGER,
|
|
f REAL
|
|
);
|
|
insert into misgivings values (43, 102);
|
|
|
|
- type: track_table
|
|
args:
|
|
schema: public
|
|
name: author
|
|
|
|
|
|
# Article table
|
|
- type: track_table
|
|
args:
|
|
schema: public
|
|
name: article
|
|
|
|
|
|
# Some other table
|
|
- type: track_table
|
|
args:
|
|
schema: public
|
|
name: misgivings
|