 );
 
 
-CREATE INDEX nodeid_idx                   on RudderSysEvents (nodeId);
-CREATE INDEX executionTimeStamp_idx       on RudderSysEvents (executionTimeStamp);
-CREATE INDEX composite_node_execution_idx on RudderSysEvents (nodeId, executionTimeStamp);
-CREATE INDEX component_idx                on RudderSysEvents (component);
-CREATE INDEX keyValue_idx                 on RudderSysEvents (keyValue);
-CREATE INDEX ruleId_idx                   on RudderSysEvents (ruleId);
+CREATE INDEX nodeid_idx                   ON RudderSysEvents (nodeId);
+CREATE INDEX executionTimeStamp_idx       ON RudderSysEvents (executionTimeStamp);
+CREATE INDEX composite_node_execution_idx ON RudderSysEvents (nodeId, executionTimeStamp);
+CREATE INDEX component_idx                ON RudderSysEvents (component);
+CREATE INDEX keyValue_idx                 ON RudderSysEvents (keyValue);
+CREATE INDEX ruleId_idx                   ON RudderSysEvents (ruleId);
 
 /*
  * The table used to store archived agent execution reports. 

, endTime         timestamp with time zone
);

CREATE INDEX nodes_id_start on Nodes (nodeId, startTime);
CREATE INDEX nodes_end on Nodes (endTime);

CREATE SEQUENCE MigrationEventLogId start 1;

/*
 *************************************************************************************

 */

CREATE SEQUENCE eventLogIdSeq START 1;

CREATE TABLE EventLog (
  id             integer PRIMARY KEY  DEFAULT nextval('eventLogIdSeq')
