Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Commit

Permalink
Remove eventids collection
Browse files Browse the repository at this point in the history
This is the schema change for the following service-side change:
CatalystCode/project-fortis-services#92
  • Loading branch information
c-w committed Aug 8, 2017
1 parent 0d6e350 commit 0971f4b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ops/storage-ddls/cassandra-setup.cql
Original file line number Diff line number Diff line change
Expand Up @@ -175,27 +175,27 @@ CREATE TABLE popularplaces (

DROP TABLE IF EXISTS eventtopics;
CREATE TABLE eventtopics(
eventids set<text>,
eventid text,
topic text,
insertiontime timestamp,
eventtime timestamp,
pipelinekey text,
externalsourceid text,
PRIMARY KEY ((topic), pipelinekey, externalsourceid)
PRIMARY KEY ((topic), pipelinekey, externalsourceid, eventtime, eventid)
);

DROP TABLE IF EXISTS eventplaces;
CREATE TABLE eventplaces(
eventids set<text>,
eventid text,
conjunctiontopic1 text,
conjunctiontopic2 text,
conjunctiontopic3 text,
centroidlat double,
centroidlon double,
placeid text,
insertiontime timestamp,
eventtime timestamp,
pipelinekey text,
externalsourceid text,
PRIMARY KEY ((placeid), conjunctiontopic1, conjunctiontopic2, conjunctiontopic3, pipelinekey, externalsourceid, centroidlat, centroidlon)
PRIMARY KEY ((placeid, conjunctiontopic1, conjunctiontopic2, conjunctiontopic3), pipelinekey, externalsourceid, eventtime, eventid)
);

DROP TABLE IF EXISTS events;
Expand Down

0 comments on commit 0971f4b

Please sign in to comment.