mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 10:49:22 +02:00
Limit max version of database
This commit is contained in:
parent
92de3950a1
commit
81d0acecf6
@ -27,7 +27,7 @@ class MigrateToCommand extends Command
|
||||
|
||||
$versionDest = $input->getArgument('version');
|
||||
|
||||
if (!$versionDest) {
|
||||
if (!$versionDest || $versionDest > DATABASE_VERSION) {
|
||||
$io->error('Please enter a valid version number');
|
||||
return Command::FAILURE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user