Skip to content

Commit

Permalink
Patch io.redash.webhooks/event/jsonschema/1-0-0 (close #484)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeemster authored and chuwy committed Nov 26, 2018
1 parent a9d679b commit 20d31af
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 30 deletions.
1 change: 0 additions & 1 deletion jsonpaths/io.redash.webhooks/event_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"$.hierarchy.refParent",
"$.data.action",
"$.data.created_at",
"$.data.id",
"$.data.org_id",
"$.data.additional_properties",
"$.data.object_id",
Expand Down
14 changes: 4 additions & 10 deletions schemas/io.redash.webhooks/event/jsonschema/1-0-0
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
},
"type": "object",
"properties": {
"id": {
"type": "integer",
"maximum" : 2147483647,
"minimum" : -2147483648
},
"user_id": {
"type": ["integer", "null"],
"maximum" : 2147483647,
Expand All @@ -28,22 +23,21 @@
"maxLength" : 255
},
"object_id": {
"type": ["string", "null"],
"type": ["string", "integer", "null"],
"maxLength" : 255
},
"additional_properties": {
"type": ["string", "null"]
"type": ["object", "null"]
},
"created_at": {
"type": "string",
"format" : "date-time"
"type": "string"
},
"org_id": {
"type": "integer",
"maximum" : 2147483647,
"minimum" : -2147483648
}
},
"required": ["id", "action", "object_id", "created_at", "org_id"],
"required": ["action", "object_id", "created_at", "org_id"],
"additionalProperties": true
}
37 changes: 18 additions & 19 deletions sql/io.redash.webhooks/event_1.sql
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
-- AUTO-GENERATED BY igluctl DO NOT EDIT
-- Generator: igluctl 0.2.0
-- Generated: 2017-01-26 15:10
-- Generator: igluctl 0.4.0
-- Generated: 2018-11-20 15:32 UTC

CREATE SCHEMA IF NOT EXISTS atomic;

CREATE TABLE IF NOT EXISTS atomic.io_redash_webhooks_event_1 (
"schema_vendor" VARCHAR(128) ENCODE RUNLENGTH NOT NULL,
"schema_name" VARCHAR(128) ENCODE RUNLENGTH NOT NULL,
"schema_format" VARCHAR(128) ENCODE RUNLENGTH NOT NULL,
"schema_version" VARCHAR(128) ENCODE RUNLENGTH NOT NULL,
"root_id" CHAR(36) ENCODE RAW NOT NULL,
"root_tstamp" TIMESTAMP ENCODE LZO NOT NULL,
"ref_root" VARCHAR(255) ENCODE RUNLENGTH NOT NULL,
"ref_tree" VARCHAR(1500) ENCODE RUNLENGTH NOT NULL,
"ref_parent" VARCHAR(255) ENCODE RUNLENGTH NOT NULL,
"action" VARCHAR(255) ENCODE LZO NOT NULL,
"created_at" TIMESTAMP ENCODE LZO NOT NULL,
"id" INT ENCODE LZO NOT NULL,
"org_id" INT ENCODE LZO NOT NULL,
"additional_properties" VARCHAR(4096) ENCODE LZO,
"object_id" VARCHAR(255) ENCODE LZO,
"object_type" VARCHAR(255) ENCODE LZO,
"user_id" INT ENCODE LZO,
"schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL,
"schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL,
"schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL,
"schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL,
"root_id" CHAR(36) ENCODE RAW NOT NULL,
"root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL,
"ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL,
"ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL,
"ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL,
"action" VARCHAR(255) ENCODE ZSTD NOT NULL,
"created_at" VARCHAR(4096) ENCODE ZSTD NOT NULL,
"org_id" INT ENCODE ZSTD NOT NULL,
"additional_properties" VARCHAR(4096) ENCODE ZSTD,
"object_id" VARCHAR(4096) ENCODE ZSTD,
"object_type" VARCHAR(255) ENCODE ZSTD,
"user_id" INT ENCODE ZSTD,
FOREIGN KEY (root_id) REFERENCES atomic.events(event_id)
)
DISTSTYLE KEY
Expand Down

0 comments on commit 20d31af

Please sign in to comment.