mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-03 17:26:23 +01:00
Limit max version of database
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user