diff --git a/misc-scripts/schema_patcher.pl b/misc-scripts/schema_patcher.pl index d64157fb3e194898e13994bfbf315fecc0b68dce..40f798fe8a9ab4ad67a56133e6309328421a8c4d 100755 --- a/misc-scripts/schema_patcher.pl +++ b/misc-scripts/schema_patcher.pl @@ -421,7 +421,14 @@ while ( $sth->fetch() ) { if($opt_verbose) { 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) { - printf("\tDB version was equal to latest release; if you need to patch then rerun with --fix and --dryrun\n"); + + my $release_patches = join(q{,}, sort @{$patches{$schema_type}{$schema_version}}); + my $db_patches = join(q{,}, sort @{$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", + $database, $db_patches, $opt_release, $release_patches); + } } } next;