From 4e1c6cc9022110befae70435041a8c8f9528148f Mon Sep 17 00:00:00 2001
From: Monika Komorowska <mk8@sanger.ac.uk>
Date: Thu, 29 Mar 2012 10:35:51 +0000
Subject: [PATCH] name column changed to common_name in species table

---
 .../production_database/scripts/update_database_list.pl         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc-scripts/production_database/scripts/update_database_list.pl b/misc-scripts/production_database/scripts/update_database_list.pl
index 7036301993..d746833dab 100755
--- a/misc-scripts/production_database/scripts/update_database_list.pl
+++ b/misc-scripts/production_database/scripts/update_database_list.pl
@@ -257,7 +257,7 @@ SQL
       {}, $db_hash->{species_id}, $db_hash->{db_type}, $release);
       
     if($already_recorded[0]) {
-      my @name = $dbh->selectrow_array('select name from species where species_id =?', {}, $db_hash->{species_id});
+      my @name = $dbh->selectrow_array('select common_name from species where species_id =?', {}, $db_hash->{species_id});
       printf("Species '%s' has a database '%s' recorded for this release. Updating\n", $name[0], $database);
       
       $update_sth->bind_param( 1, 1,                          SQL_INTEGER );
-- 
GitLab