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 changes:
CatalystCode/project-fortis-services#92
CatalystCode/project-fortis-services#94
  • Loading branch information
c-w committed Aug 10, 2017
1 parent 68b3d5d commit f8aa433
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ops/storage-ddls/cassandra-setup.cql
Expand Up @@ -192,26 +192,26 @@ CREATE TABLE popularplaces (
);

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)
);

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 ((conjunctiontopic1, conjunctiontopic2, conjunctiontopic3, pipelinekey, externalsourceid), centroidlat, centroidlon, eventtime, placeid)
);

CREATE TABLE events(
Expand Down

0 comments on commit f8aa433

Please sign in to comment.