graphql-engine/server/tests-py/queries/graphql_validation/setup.yaml
Samir Talwar a0176c215f server/tests-py: Set up postgis extensions using a fixture.
Let's put it in one place.

This is a precursor to moving database provisioning into the Python
integration tests.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5453
GitOrigin-RevId: 5920b0b1177d94496485fcb4e178b946534ee4eb
2022-08-15 14:30:42 +00:00

41 lines
660 B
YAML

type: bulk
args:
- type: run_sql
args:
sql: |
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