diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2022-12-12 20:13:07 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2022-12-12 20:13:07 +0100 | 
| commit | 54c46ac9f0c8209f9b1e99c67619a3a82b82ff6a (patch) | |
| tree | b02c9789271acd72cfe998f7865915f1b261e5f3 | |
| parent | 5879d6671417dae85f8a54b30566a2368689ae27 (diff) | |
database: has-current-schema: check IRIS version
| -rw-r--r-- | lib/Travelynx/Command/database.pm | 5 | 
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 { | 
