OMOP/docs/inst/sql/sql_server/testCleanUp.sql

42 lines
1.9 KiB
MySQL
Raw Normal View History

2019-08-28 15:33:33 +00:00
DROP TABLE IF EXISTS @cdmDatabaseSchema.concept;
DROP TABLE IF EXISTS @cdmDatabaseSchema.vocabulary;
DROP TABLE IF EXISTS @cdmDatabaseSchema.domain;
DROP TABLE IF EXISTS @cdmDatabaseSchema.concept_class;
DROP TABLE IF EXISTS @cdmDatabaseSchema.concept_relationship;
DROP TABLE IF EXISTS @cdmDatabaseSchema.relationship;
DROP TABLE IF EXISTS @cdmDatabaseSchema.concept_synonym;
DROP TABLE IF EXISTS @cdmDatabaseSchema.concept_ancestor;
DROP TABLE IF EXISTS @cdmDatabaseSchema.source_to_concept_map;
DROP TABLE IF EXISTS @cdmDatabaseSchema.drug_strength;
DROP TABLE IF EXISTS @cdmDatabaseSchema.cdm_source;
DROP TABLE IF EXISTS @cdmDatabaseSchema.metadata;
DROP TABLE IF EXISTS @cdmDatabaseSchema.person;
DROP TABLE IF EXISTS @cdmDatabaseSchema.observation_period;
DROP TABLE IF EXISTS @cdmDatabaseSchema.specimen;
DROP TABLE IF EXISTS @cdmDatabaseSchema.visit_occurrence;
DROP TABLE IF EXISTS @cdmDatabaseSchema.visit_detail;
DROP TABLE IF EXISTS @cdmDatabaseSchema.procedure_occurrence;
DROP TABLE IF EXISTS @cdmDatabaseSchema.drug_exposure;
DROP TABLE IF EXISTS @cdmDatabaseSchema.device_exposure;
DROP TABLE IF EXISTS @cdmDatabaseSchema.condition_occurrence;
DROP TABLE IF EXISTS @cdmDatabaseSchema.measurement;
DROP TABLE IF EXISTS @cdmDatabaseSchema.note;
DROP TABLE IF EXISTS @cdmDatabaseSchema.note_nlp;
DROP TABLE IF EXISTS @cdmDatabaseSchema.observation;
DROP TABLE IF EXISTS @cdmDatabaseSchema.survey_conduct;
DROP TABLE IF EXISTS @cdmDatabaseSchema.fact_relationship;
DROP TABLE IF EXISTS @cdmDatabaseSchema.location;
DROP TABLE IF EXISTS @cdmDatabaseSchema.location_history;
DROP TABLE IF EXISTS @cdmDatabaseSchema.care_site;
DROP TABLE IF EXISTS @cdmDatabaseSchema.provider;
DROP TABLE IF EXISTS @cdmDatabaseSchema.payer_plan_period;
DROP TABLE IF EXISTS @cdmDatabaseSchema.cost;
DROP TABLE IF EXISTS @cdmDatabaseSchema.drug_era;
DROP TABLE IF EXISTS @cdmDatabaseSchema.dose_era;
DROP TABLE IF EXISTS @cdmDatabaseSchema.condition_era;