From 2ebe6b3a04ea4ab9a5c4a4fd88d758f6116bd3e0 Mon Sep 17 00:00:00 2001
From: Leo Gordon <lg4@ebi.ac.uk>
Date: Wed, 10 Aug 2011 11:25:22 +0000
Subject: [PATCH] tables with same names exist in other schemas and may create
 collision

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

diff --git a/sql/table.sql b/sql/table.sql
index 9f233b21d3..65355bb127 100755
--- a/sql/table.sql
+++ b/sql/table.sql
@@ -462,7 +462,7 @@ The default species_id, and the only species_id value allowed in single-species
 */
 
 
-CREATE TABLE meta (
+CREATE TABLE IF NOT EXISTS meta (
 
   meta_id                     INT NOT NULL AUTO_INCREMENT,
   species_id                  INT UNSIGNED DEFAULT 1,
@@ -844,7 +844,7 @@ The module column tells the pipeline which Perl module does the whole analysis,
 
 */
 
-CREATE TABLE analysis (
+CREATE TABLE IF NOT EXISTS analysis (
 
   analysis_id                 SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
   created                     datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
@@ -880,7 +880,7 @@ CREATE TABLE analysis (
 @see analysis
 
 */
-CREATE TABLE analysis_description (
+CREATE TABLE IF NOT EXISTS analysis_description (
 
   analysis_id                  SMALLINT UNSIGNED NOT NULL,
   description                  TEXT,
-- 
GitLab