From 61c75d3f70836837b576139b2a5d69f68024d004 Mon Sep 17 00:00:00 2001
From: Andrew Yates <ayates@ebi.ac.uk>
Date: Wed, 11 Jan 2012 11:14:43 +0000
Subject: [PATCH] Apparently elements were a hash and not a string

---
 misc-scripts/schema_patcher.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/misc-scripts/schema_patcher.pl b/misc-scripts/schema_patcher.pl
index d918b87d32..05f94c81d6 100755
--- a/misc-scripts/schema_patcher.pl
+++ b/misc-scripts/schema_patcher.pl
@@ -422,11 +422,11 @@ while ( $sth->fetch() ) {
       printf("Skipping database %s (type: %s | version: %d)\n", $database, ($schema_type||'-'), ($schema_version || 0));
       if( $schema_type_ok && $schema_type eq $opt_type && $schema_version_ok && $schema_version == $opt_release) {
         
-        my $release_patches = join(q{,}, sort @{$patches{$schema_type}{$schema_version}});
+        my $release_patches = join(q{, }, sort map { $_->{patch} } @{$patches{$schema_type}{$schema_version}});
         my $db_patches = join(q{,}, sort keys %{$dbpatches{$schema_version}});
         
         if($release_patches ne $db_patches) {
-          printf("\t%s patches [%s] are not the same as release %i patches [%s]; if you need to patch then rerun with --fix and --dryrun\n", 
+          printf("\t%s patches [%s] are not the same as release %i patches [%s]; rerun with --fix and --dryrun\n", 
             $database, $db_patches, $opt_release, $release_patches);
         }
       }
-- 
GitLab