From 12a2fda4491f63158d51899ecb2f3450cd9844e9 Mon Sep 17 00:00:00 2001
From: Monika Komorowska <mk8@sanger.ac.uk>
Date: Tue, 31 Jul 2012 09:13:30 +0000
Subject: [PATCH] added tables display_xref_priority and gene_desc_priority -
 they are used in DisplayXrefs.pm
 http://www.ebi.ac.uk/panda/jira/browse/ENSCORESW-219

---
 misc-scripts/xref_mapping/sql/table.sql | 32 +++++++++++++++++++++----
 1 file changed, 28 insertions(+), 4 deletions(-)

diff --git a/misc-scripts/xref_mapping/sql/table.sql b/misc-scripts/xref_mapping/sql/table.sql
index eb46d8728d..b4a7c5eb3a 100755
--- a/misc-scripts/xref_mapping/sql/table.sql
+++ b/misc-scripts/xref_mapping/sql/table.sql
@@ -243,6 +243,7 @@ CREATE TABLE checksum_xref (
   INDEX checksum_idx(checksum(10))
 ) COLLATE=latin1_swedish_ci ENGINE=MyISAM;
 
+
 ################################################################################
 
 ################################################################################
@@ -305,10 +306,10 @@ CREATE TABLE havana_status (
 
 ) COLLATE=latin1_swedish_ci ENGINE=InnoDB;
 
-#
-# Try to keep the status in the correct order
-#   it will make it easier to see what is happening
-#
+
+-- Try to keep the status in the correct order
+--   it will make it easier to see what is happening
+
 
 CREATE TABLE process_status (
   id            INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
@@ -328,6 +329,29 @@ CREATE TABLE process_status (
 ) COLLATE=latin1_swedish_ci ENGINE=InnoDB;
 
 
+--This table is populated in DisplayXrefs.pm and is used to set the best xrefs as 
+--display xrefs for genes and transcripts
+
+
+
+CREATE TABLE display_xref_priority(
+    ensembl_object_type	VARCHAR(100),
+    source_id INT UNSIGNED NOT NULL,
+    priority  SMALLINT UNSIGNED NOT NULL,
+
+    PRIMARY KEY (ensembl_object_type, source_id)
+) COLLATE=latin1_swedish_ci ENGINE=InnoDB;
+
+
+--This table is populated in DisplayXrefs.pm and is used to set
+--gene descriptions
+
+CREATE TABLE gene_desc_priority(
+    source_id	   INT UNSIGNED NOT NULL,
+    priority       SMALLINT UNSIGNED NOT NULL,
+
+    PRIMARY KEY (source_id)
+) COLLATE=latin1_swedish_ci ENGINE=InnoDB;
                      
 
 ################################################################################
-- 
GitLab