Skip to content

Instantly share code, notes, and snippets.

@VinceMacBuche
Created October 28, 2014 16:51
Show Gist options
  • Save VinceMacBuche/a4fcbc2fd5451d4ece8e to your computer and use it in GitHub Desktop.
Save VinceMacBuche/a4fcbc2fd5451d4ece8e to your computer and use it in GitHub Desktop.
-- add the columns needed to store NodeConfigId:
-- - one in reportExectution, "nodeConfigId"
ALTER TABLE ReportsExecution ADD COLUMN nodeConfigId text;
-- - one in ExpectedReportsNode, "nodeConfigIds" (with 's')
ALTER TABLE expectedReportsNodes ADD COLUMN nodeConfigIds text[];
-- - the table for node config ids
CREATE TABLE nodes_info (
node_id text PRIMARY KEY CHECK (node_id <> '')
-- configs ids are a dump of json: [{"configId":"xxxx", "dateTime": "iso-date-time"} ]
, config_ids text
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment