-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcbioportal-20191114-drop.sql
58 lines (58 loc) · 4.6 KB
/
cbioportal-20191114-drop.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
if OBJECT_ID('info') IS NOT NULL DROP EXTERNAL TABLE info;
if OBJECT_ID('clinical_event_data') IS NOT NULL DROP EXTERNAL TABLE clinical_event_data;
if OBJECT_ID('clinical_event') IS NOT NULL DROP EXTERNAL TABLE clinical_event;
if OBJECT_ID('pdb_uniprot_residue_mapping') IS NOT NULL DROP EXTERNAL TABLE pdb_uniprot_residue_mapping;
if OBJECT_ID('pdb_uniprot_alignment') IS NOT NULL DROP EXTERNAL TABLE pdb_uniprot_alignment;
if OBJECT_ID('cosmic_mutation') IS NOT NULL DROP EXTERNAL TABLE cosmic_mutation;
if OBJECT_ID('copy_number_seg_file') IS NOT NULL DROP EXTERNAL TABLE copy_number_seg_file;
if OBJECT_ID('copy_number_seg') IS NOT NULL DROP EXTERNAL TABLE copy_number_seg;
if OBJECT_ID('sample_cna_event') IS NOT NULL DROP EXTERNAL TABLE sample_cna_event;
if OBJECT_ID('cna_event') IS NOT NULL DROP EXTERNAL TABLE cna_event;
if OBJECT_ID('drug_interaction') IS NOT NULL DROP EXTERNAL TABLE drug_interaction;
if OBJECT_ID('drug') IS NOT NULL DROP EXTERNAL TABLE drug;
if OBJECT_ID('pfam_graphics') IS NOT NULL DROP EXTERNAL TABLE pfam_graphics;
if OBJECT_ID('text_cache') IS NOT NULL DROP EXTERNAL TABLE text_cache;
if OBJECT_ID('gistic_to_gene') IS NOT NULL DROP EXTERNAL TABLE gistic_to_gene;
if OBJECT_ID('gistic') IS NOT NULL DROP EXTERNAL TABLE gistic;
if OBJECT_ID('sanger_cancer_census') IS NOT NULL DROP EXTERNAL TABLE sanger_cancer_census;
if OBJECT_ID('protein_array_cancer_study') IS NOT NULL DROP EXTERNAL TABLE protein_array_cancer_study;
if OBJECT_ID('protein_array_data') IS NOT NULL DROP EXTERNAL TABLE protein_array_data;
if OBJECT_ID('protein_array_target') IS NOT NULL DROP EXTERNAL TABLE protein_array_target;
if OBJECT_ID('protein_array_info') IS NOT NULL DROP EXTERNAL TABLE protein_array_info;
if OBJECT_ID('mut_sig') IS NOT NULL DROP EXTERNAL TABLE mut_sig;
if OBJECT_ID('interaction') IS NOT NULL DROP EXTERNAL TABLE interaction;
if OBJECT_ID('clinical_attribute_meta') IS NOT NULL DROP EXTERNAL TABLE clinical_attribute_meta;
if OBJECT_ID('clinical_sample') IS NOT NULL DROP EXTERNAL TABLE clinical_sample;
if OBJECT_ID('clinical_patient') IS NOT NULL DROP EXTERNAL TABLE clinical_patient;
if OBJECT_ID('mutation_count_by_keyword') IS NOT NULL DROP EXTERNAL TABLE mutation_count_by_keyword;
if OBJECT_ID('mutation') IS NOT NULL DROP EXTERNAL TABLE mutation;
if OBJECT_ID('mutation_event') IS NOT NULL DROP EXTERNAL TABLE mutation_event;
if OBJECT_ID('structural_variant') IS NOT NULL DROP EXTERNAL TABLE structural_variant;
if OBJECT_ID('sample_profile') IS NOT NULL DROP EXTERNAL TABLE sample_profile;
if OBJECT_ID('gene_panel_list') IS NOT NULL DROP EXTERNAL TABLE gene_panel_list;
if OBJECT_ID('gene_panel') IS NOT NULL DROP EXTERNAL TABLE gene_panel;
if OBJECT_ID('genetic_profile_samples') IS NOT NULL DROP EXTERNAL TABLE genetic_profile_samples;
if OBJECT_ID('genetic_alteration') IS NOT NULL DROP EXTERNAL TABLE genetic_alteration;
if OBJECT_ID('genetic_profile_link') IS NOT NULL DROP EXTERNAL TABLE genetic_profile_link;
if OBJECT_ID('genetic_profile') IS NOT NULL DROP EXTERNAL TABLE genetic_profile;
if OBJECT_ID('uniprot_id_mapping') IS NOT NULL DROP EXTERNAL TABLE uniprot_id_mapping;
if OBJECT_ID('gene_alias') IS NOT NULL DROP EXTERNAL TABLE gene_alias;
if OBJECT_ID('geneset_gene') IS NOT NULL DROP EXTERNAL TABLE geneset_gene;
if OBJECT_ID('reference_genome_gene') IS NOT NULL DROP EXTERNAL TABLE reference_genome_gene;
if OBJECT_ID('gene') IS NOT NULL DROP EXTERNAL TABLE gene;
if OBJECT_ID('sample_list_list') IS NOT NULL DROP EXTERNAL TABLE sample_list_list;
if OBJECT_ID('sample_list') IS NOT NULL DROP EXTERNAL TABLE sample_list;
if OBJECT_ID('sample') IS NOT NULL DROP EXTERNAL TABLE sample;
if OBJECT_ID('patient') IS NOT NULL DROP EXTERNAL TABLE patient;
if OBJECT_ID('authorities') IS NOT NULL DROP EXTERNAL TABLE authorities;
if OBJECT_ID('data_access_tokens') IS NOT NULL DROP EXTERNAL TABLE data_access_tokens;
if OBJECT_ID('users') IS NOT NULL DROP EXTERNAL TABLE users;
if OBJECT_ID('cancer_study_tags') IS NOT NULL DROP EXTERNAL TABLE cancer_study_tags;
if OBJECT_ID('cancer_study') IS NOT NULL DROP EXTERNAL TABLE cancer_study;
if OBJECT_ID('type_of_cancer') IS NOT NULL DROP EXTERNAL TABLE type_of_cancer;
if OBJECT_ID('geneset_hierarchy_leaf') IS NOT NULL DROP EXTERNAL TABLE geneset_hierarchy_leaf;
if OBJECT_ID('geneset_hierarchy_node') IS NOT NULL DROP EXTERNAL TABLE geneset_hierarchy_node;
if OBJECT_ID('geneset') IS NOT NULL DROP EXTERNAL TABLE geneset;
if OBJECT_ID('treatment') IS NOT NULL DROP EXTERNAL TABLE treatment;
if OBJECT_ID('genetic_entity') IS NOT NULL DROP EXTERNAL TABLE genetic_entity;
if OBJECT_ID('reference_genome') IS NOT NULL DROP EXTERNAL TABLE reference_genome;