From faf7a63eb08652b99adfbf385a21a546dc0a0a89 Mon Sep 17 00:00:00 2001
From: Andrew Yates <ayates@ebi.ac.uk>
Date: Wed, 30 May 2012 10:50:57 +0000
Subject: [PATCH] Adding the xref schema changes from core. I've done a cursory
 glance through the xref code. Looks like all inserts should be ok

---
 misc-scripts/xref_mapping/sql/table.sql | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/misc-scripts/xref_mapping/sql/table.sql b/misc-scripts/xref_mapping/sql/table.sql
index 1e1db59df3..b38fd06b15 100755
--- a/misc-scripts/xref_mapping/sql/table.sql
+++ b/misc-scripts/xref_mapping/sql/table.sql
@@ -14,12 +14,12 @@ CREATE TABLE xref (
   description                 text,
   source_id                   int unsigned not null,
   species_id                  int unsigned not null,
-  info_type                   ENUM( 'PROJECTION', 'MISC', 'DEPENDENT',
+  info_type                   ENUM( 'NONE', 'PROJECTION', 'MISC', 'DEPENDENT',
                                     'DIRECT', 'SEQUENCE_MATCH',
                                     'INFERRED_PAIR', 'PROBE',
                                     'UNMAPPED', 'COORDINATE_OVERLAP',
-                                    'CHECKSUM'),
-  info_text	              VARCHAR(255),
+                                    'CHECKSUM') DEFAULT 'NONE' NOT NULL,
+  info_text	              VARCHAR(255) DEFAULT '' NOT NULL,
   dumped                      ENUM( 'MAPPED', 'NO_DUMP_ANOTHER_PRIORITY', 'UNMAPPED_NO_MAPPING',
                                     'UNMAPPED_NO_MASTER', 'UNMAPPED_MASTER_FAILED', 
                                     'UNMAPPED_NO_STABLE_ID', 'UNMAPPED_INTERPRO') DEFAULT null,
-- 
GitLab