Skip to content
Snippets Groups Projects
Commit dedb250e authored by Alessandro Vullo's avatar Alessandro Vullo
Browse files

[ENSCORESW-461]. Changed logic for -oldest option.

parent d2d354f6
No related branches found
No related tags found
No related merge requests found
......@@ -499,11 +499,13 @@ while ( $sth->fetch() ) {
printf( "Considering '%s' [%s,%s,%d]\n",
$database, defined($species) ? $species : 'unknown',
$schema_type, $schema_version );
$opt_oldest = ($schema_version == $latest_release) ? $latest_release : $latest_release - 1;
if ($opt_fixlast) {
$opt_oldest = ($schema_version == $latest_release) ? $latest_release : $latest_release - 1;
next "Cannot use --fixlast with a schema release too far from the latest release; oldest allowed is $opt_oldest. Skipping $database" if $schema_version < ($opt_oldest);
printf("--fixlast is active. Will apply patches for version %d and up (if available)\n", $opt_oldest);
}
next "Cannot use --fixlast with a schema release too far from the latest release; oldest allowed is $opt_oldest. Skipping $database"
if $schema_version < ($opt_oldest);
printf("--fixlast is active. Will apply patches for version %d and up (if available)\n", $opt_oldest);
}
else {
if($opt_verbose) {
......
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