database: has-current-schema: check IRIS version
This commit is contained in:
parent
5879d66714
commit
54c46ac9f0
1 changed files with 4 additions and 1 deletions
|
@ -1465,7 +1465,10 @@ sub run {
|
||||||
migrate_db($db);
|
migrate_db($db);
|
||||||
}
|
}
|
||||||
elsif ( $command eq 'has-current-schema' ) {
|
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";
|
say "yes";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue