database: has-current-schema: check IRIS version

This commit is contained in:
Daniel Friesel 2022-12-12 20:13:07 +01:00
parent 5879d66714
commit 54c46ac9f0
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -1465,7 +1465,10 @@ sub run {
migrate_db($db);
}
elsif ( $command eq 'has-current-schema' ) {
if ( get_schema_version($db) == @migrations ) {
if ( get_schema_version($db) == @migrations
and get_schema_version( $db, 'iris' ) eq
$Travel::Status::DE::IRIS::Stations::VERSION )
{
say "yes";
}
else {