Skip to content
Snippets Groups Projects
Commit 61c75d3f authored by Andy Yates's avatar Andy Yates
Browse files

Apparently elements were a hash and not a string

parent be81a8c7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment