mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-25 00:13:11 +03:00
1e1a36a192
I'm trying to shore up the Python integration tests to make them more reliable. In doing so, I noticed this. --- Rather than hard-coding hostnames and ports, we can (and already do) inject these into the HGE process using environment variables. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5255 GitOrigin-RevId: 6bb593999ece42cedef6619f31f9d9b2e39f30ef
38 lines
898 B
YAML
38 lines
898 B
YAML
type: bulk
|
|
args:
|
|
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
CREATE TABLE hge_tests.measurement (
|
|
city_id int not null,
|
|
logdate date not null,
|
|
peaktemp int,
|
|
unitsales int
|
|
) PARTITION BY RANGE (logdate);
|
|
|
|
CREATE TABLE hge_tests.measurement_y2006m02 PARTITION OF hge_tests.measurement
|
|
FOR VALUES FROM ('2006-02-01') TO ('2006-03-01');
|
|
|
|
CREATE TABLE hge_tests.measurement_y2006m03 PARTITION OF hge_tests.measurement
|
|
FOR VALUES FROM ('2006-03-01') TO ('2006-04-01');
|
|
|
|
- type: track_table
|
|
args:
|
|
schema: hge_tests
|
|
name: measurement
|
|
|
|
- type: create_event_trigger
|
|
args:
|
|
name: measurement_all
|
|
table:
|
|
schema: hge_tests
|
|
name: measurement
|
|
insert:
|
|
columns: "*"
|
|
update:
|
|
columns: "*"
|
|
delete:
|
|
columns: "*"
|
|
webhook: "{{EVENT_WEBHOOK_HANDLER}}"
|