Skip to content

Commit

Permalink
Add missing DROP TABLE statements (#11211)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheridancbio authored Nov 19, 2024
1 parent b94e39e commit 7295a27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/db-scripts/clickhouse/clickhouse.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ DROP TABLE IF EXISTS sample_derived;
DROP TABLE IF EXISTS genomic_event_derived;
DROP TABLE IF EXISTS clinical_data_derived;
DROP TABLE IF EXISTS clinical_event_derived;

DROP TABLE IF EXISTS genetic_alteration_derived;
DROP TABLE IF EXISTS generic_assay_data_derived;

CREATE TABLE sample_to_gene_panel_derived
(
Expand Down Expand Up @@ -60,7 +61,7 @@ CREATE TABLE sample_derived
patient_unique_id_base64 String,
patient_stable_id String,
cancer_study_identifier LowCardinality(String),
internal_id Int
internal_id Int
)
ENGINE = MergeTree
ORDER BY (cancer_study_identifier, sample_unique_id);
Expand All @@ -78,7 +79,6 @@ FROM sample
INNER JOIN patient AS p ON sample.patient_id = p.internal_id
INNER JOIN cancer_study AS cs ON p.cancer_study_id = cs.cancer_study_id;


CREATE TABLE IF NOT EXISTS genomic_event_derived
(
sample_unique_id String,
Expand Down

0 comments on commit 7295a27

Please sign in to comment.