From a709872a3c81b3b17199ceb9fdef83f121210a8b Mon Sep 17 00:00:00 2001 From: ntran18 <108908370+ntran18@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:31:27 -0700 Subject: [PATCH] Remove testing schema that I forgot to delete --- database/network-database/schema.sql | 4 ++-- database/protein-protein-database/schema.sql | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/database/network-database/schema.sql b/database/network-database/schema.sql index 59a315ff..377f845b 100644 --- a/database/network-database/schema.sql +++ b/database/network-database/schema.sql @@ -20,6 +20,6 @@ CREATE TABLE gene_regulatory_network.network ( time_stamp TIMESTAMP WITH TIME ZONE, source VARCHAR, FOREIGN KEY (regulator_gene_id, taxon_id) REFERENCES gene_regulatory_network.gene(gene_id, taxon_id), - FOREIGN KEY (target_gene_id, taxon_id) REFERENCES gene_regulatory_network_testing.gene(gene_id, taxon_id), - FOREIGN KEY (time_stamp, source) REFERENCES gene_regulatory_network_testing.source(time_stamp, source) + FOREIGN KEY (target_gene_id, taxon_id) REFERENCES gene_regulatory_network.gene(gene_id, taxon_id), + FOREIGN KEY (time_stamp, source) REFERENCES gene_regulatory_network.source(time_stamp, source) ); \ No newline at end of file diff --git a/database/protein-protein-database/schema.sql b/database/protein-protein-database/schema.sql index 922bfac2..a2f43a94 100644 --- a/database/protein-protein-database/schema.sql +++ b/database/protein-protein-database/schema.sql @@ -20,7 +20,7 @@ CREATE TABLE protein_protein_interactions.protein ( molecular_weight FLOAT, PI FLOAT, taxon_id VARCHAR, - FOREIGN KEY (gene_systematic_name, taxon_id) REFERENCES protein_protein_interactions_testing.gene(gene_id, taxon_id) + FOREIGN KEY (gene_systematic_name, taxon_id) REFERENCES protein_protein_interactions.gene(gene_id, taxon_id) ); CREATE TABLE protein_protein_interactions.physical_interactions ( @@ -30,8 +30,8 @@ CREATE TABLE protein_protein_interactions.physical_interactions ( experiment_name VARCHAR, time_stamp TIMESTAMP WITH TIME ZONE, source VARCHAR, - FOREIGN KEY (protein1) REFERENCES protein_protein_interactions_testing.protein(standard_name), - FOREIGN KEY (protein2) REFERENCES protein_protein_interactions_testing.protein(standard_name), - FOREIGN KEY (time_stamp, source) REFERENCES protein_protein_interactions_testing.source(time_stamp, source), + FOREIGN KEY (protein1) REFERENCES protein_protein_interactions.protein(standard_name), + FOREIGN KEY (protein2) REFERENCES protein_protein_interactions.protein(standard_name), + FOREIGN KEY (time_stamp, source) REFERENCES protein_protein_interactions.source(time_stamp, source), CONSTRAINT unique_physical_interaction UNIQUE (protein1, protein2, interaction_detection_methods_identifier, experiment_name, time_stamp, source) );