diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2019-04-07 14:18:56 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-07 14:18:56 +0200 | 
| commit | 8096c33c00d6e49b4d261f2016403675accafce8 (patch) | |
| tree | 291fdd9ce2081c811a758a98993feeffdd6d11e4 /lib/Travelynx/Command | |
| parent | 216dd7c7ad71667737b38ca38479b10833077f93 (diff) | |
Add a note about updating travelynx
Diffstat (limited to 'lib/Travelynx/Command')
| -rw-r--r-- | lib/Travelynx/Command/database.pm | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/lib/Travelynx/Command/database.pm b/lib/Travelynx/Command/database.pm index e501e47..7a714b1 100644 --- a/lib/Travelynx/Command/database.pm +++ b/lib/Travelynx/Command/database.pm @@ -106,6 +106,14 @@ sub run {  			$dbh->commit;  		}  	} +	elsif ( $command eq 'has-current-schema' ) { +		if ( get_schema_version($dbh) == $#migrations ) { +			say "yes"; +		} +		else { +			say "no"; +		} +	}  	else {  		$self->help;  	} @@ -120,7 +128,7 @@ __END__  =head1 SYNOPSIS -  Usage: index.pl database <setup|migrate> +  Usage: index.pl database <setup|migrate|has-current-schema>    Upgrades the database layout to the latest schema. | 
