summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-12-12 20:13:07 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-12-12 20:13:07 +0100
commit54c46ac9f0c8209f9b1e99c67619a3a82b82ff6a (patch)
treeb02c9789271acd72cfe998f7865915f1b261e5f3 /lib
parent5879d6671417dae85f8a54b30566a2368689ae27 (diff)
database: has-current-schema: check IRIS version
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Command/database.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/database.pm b/lib/Travelynx/Command/database.pm
index 55b79e9..172d3c1 100644
--- a/lib/Travelynx/Command/database.pm
+++ b/lib/Travelynx/Command/database.pm
@@ -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 {