mirror of
				https://github.com/slawkens/myaac.git
				synced 2025-11-04 01:36:23 +01:00 
			
		
		
		
	Don't allow minus number
This commit is contained in:
		@@ -27,7 +27,7 @@ class MigrateToCommand extends Command
 | 
			
		||||
 | 
			
		||||
		$versionDest = $input->getArgument('version');
 | 
			
		||||
 | 
			
		||||
		if (!$versionDest || $versionDest > DATABASE_VERSION) {
 | 
			
		||||
		if (!$versionDest || $versionDest > DATABASE_VERSION || $versionDest < 1) {
 | 
			
		||||
			$io->error('Please enter a valid version number');
 | 
			
		||||
			return Command::FAILURE;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user