Skip to content

Commit

Permalink
Add support for com.mandrill/message_delayed/jsonschema/1-0-1 (closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
BenFradet committed Apr 10, 2018
1 parent 6f52370 commit 49cb4a3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsonpaths/com.mandrill/message_delayed_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"$.data.msg.tags",
"$.data.msg.ts",
"$.data.msg.resends",
"$.data.msg.template"
"$.data.msg.template",
"$.data.msg.subaccount"
]
}
1 change: 1 addition & 0 deletions sql/com.mandrill/message_delayed_1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ CREATE TABLE atomic.com_mandrill_message_delayed_1 (
"msg.ts" timestamp encode raw,
"msg.resends" varchar(2048) encode runlength, -- Holds a JSON array
"msg.template" varchar(255) encode text32k,
"msg.subaccount" varchar(255) encode raw,
FOREIGN KEY(root_id) REFERENCES atomic.events(event_id)
)
DISTSTYLE KEY
Expand Down
14 changes: 14 additions & 0 deletions sql/com.mandrill/migrate_message_delayed_1_r0_to_r1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- WARNING: only apply this file to your database if the following SQL returns the expected:
--
-- SELECT pg_catalog.obj_description(c.oid) FROM pg_catalog.pg_class c WHERE c.relname = 'com_mandrill_message_delayed_1';
-- obj_description
-- -----------------
-- iglu:com.mandrill/message_delayed/jsonschema/1-0-0
-- (1 row)

BEGIN TRANSACTION;

ALTER TABLE atomic.com_mandrill_message_delayed_1
ADD COLUMN "msg.subaccount" VARCHAR(255) ENCODE raw;

END TRANSACTION;

0 comments on commit 49cb4a3

Please sign in to comment.