Remove visibility tables from cadence schema
Visiblity schema is moved to its own namespace, but looks like we forgot
to remove the tables from base.cql of versioned definition of cadence
schema.
@@ -203,42 +203,3 @@ CREATE TABLE domains_by_name (
'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'
}
AND GC_GRACE_SECONDS = 172800;
\ No newline at end of file
-
-CREATE TABLE open_executions (
- domain_id uuid,
- domain_partition int,
- workflow_id text,
- run_id uuid,
- start_time timestamp,
- workflow_type_name text,
- PRIMARY KEY ((domain_id, domain_partition), start_time, run_id)
-) WITH CLUSTERING ORDER BY (start_time DESC)
- AND COMPACTION = {
- 'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'
- }
- AND GC_GRACE_SECONDS = 172800;
-
-
-CREATE INDEX open_by_workflow_id ON open_executions (workflow_id);
-CREATE INDEX open_by_type ON open_executions (workflow_type_name);
-
-CREATE TABLE closed_executions (
- domain_id uuid,
- domain_partition int,
- workflow_id text,
- run_id uuid,
- start_time timestamp,
- close_time timestamp,
- status int, -- enum WorkflowExecutionCloseStatus {COMPLETED, FAILED, CANCELED, TERMINATED, CONTINUED_AS_NEW, TIMED_OUT}
- workflow_type_name text,
- PRIMARY KEY ((domain_id, domain_partition), start_time, run_id)
-) WITH CLUSTERING ORDER BY (start_time DESC)
- AND COMPACTION = {
- 'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'
- }
- AND GC_GRACE_SECONDS = 172800;
-
-CREATE INDEX closed_by_workflow_id ON closed_executions (workflow_id);
-CREATE INDEX closed_by_close_time ON closed_executions (close_time);
-CREATE INDEX closed_by_type ON closed_executions (workflow_type_name);
-CREATE INDEX closed_by_status ON closed_executions (status);
\ No newline at end of file
